1
0
mirror of https://github.com/lua/lua.git synced 2025-01-28 06:03:00 +08:00
This commit is contained in:
Roberto Ierusalimschy 2001-02-05 17:08:01 -02:00
parent d1fc6244f0
commit a894499566
2 changed files with 10 additions and 12 deletions

10
lmem.c
View File

@ -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 ** Interface to Memory Manager
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -42,10 +42,10 @@
#define blocksize(b) ((size_t *)((char *)(b) - HEADER)) #define blocksize(b) ((size_t *)((char *)(b) - HEADER))
mem_int memdebug_numblocks = 0; unsigned long memdebug_numblocks = 0;
mem_int memdebug_total = 0; unsigned long memdebug_total = 0;
mem_int memdebug_maxmem = 0; unsigned long memdebug_maxmem = 0;
mem_int memdebug_memlimit = LONG_MAX; unsigned long memdebug_memlimit = ULONG_MAX;
static void *checkblock (void *block) { static void *checkblock (void *block) {

View File

@ -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 ** Internal Header for Debugging of the Lua Implementation
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -8,8 +8,6 @@
#define ltests_h #define ltests_h
#include "llimits.h"
#define LUA_DEBUG #define LUA_DEBUG
@ -23,10 +21,10 @@
/* memory allocator control variables */ /* memory allocator control variables */
extern mem_int memdebug_numblocks; extern unsigned long memdebug_numblocks;
extern mem_int memdebug_total; extern unsigned long memdebug_total;
extern mem_int memdebug_maxmem; extern unsigned long memdebug_maxmem;
extern mem_int memdebug_memlimit; extern unsigned long memdebug_memlimit;
/* test for lock/unlock */ /* test for lock/unlock */