mirror of https://github.com/rusefi/lua.git
details
This commit is contained in:
parent
d1fc6244f0
commit
a894499566
10
lmem.c
10
lmem.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lmem.c,v 1.43 2001/01/19 13:20:30 roberto Exp roberto $
|
||||
** $Id: lmem.c,v 1.44 2001/01/24 15:45:33 roberto Exp roberto $
|
||||
** Interface to Memory Manager
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
@ -42,10 +42,10 @@
|
|||
|
||||
#define blocksize(b) ((size_t *)((char *)(b) - HEADER))
|
||||
|
||||
mem_int memdebug_numblocks = 0;
|
||||
mem_int memdebug_total = 0;
|
||||
mem_int memdebug_maxmem = 0;
|
||||
mem_int memdebug_memlimit = LONG_MAX;
|
||||
unsigned long memdebug_numblocks = 0;
|
||||
unsigned long memdebug_total = 0;
|
||||
unsigned long memdebug_maxmem = 0;
|
||||
unsigned long memdebug_memlimit = ULONG_MAX;
|
||||
|
||||
|
||||
static void *checkblock (void *block) {
|
||||
|
|
12
ltests.h
12
ltests.h
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: $
|
||||
** $Id: ltests.h,v 1.1 2001/02/02 15:12:25 roberto Exp roberto $
|
||||
** Internal Header for Debugging of the Lua Implementation
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
@ -8,8 +8,6 @@
|
|||
#define ltests_h
|
||||
|
||||
|
||||
#include "llimits.h"
|
||||
|
||||
|
||||
#define LUA_DEBUG
|
||||
|
||||
|
@ -23,10 +21,10 @@
|
|||
|
||||
|
||||
/* memory allocator control variables */
|
||||
extern mem_int memdebug_numblocks;
|
||||
extern mem_int memdebug_total;
|
||||
extern mem_int memdebug_maxmem;
|
||||
extern mem_int memdebug_memlimit;
|
||||
extern unsigned long memdebug_numblocks;
|
||||
extern unsigned long memdebug_total;
|
||||
extern unsigned long memdebug_maxmem;
|
||||
extern unsigned long memdebug_memlimit;
|
||||
|
||||
|
||||
/* test for lock/unlock */
|
||||
|
|
Loading…
Reference in New Issue