diff --git a/lmem.c b/lmem.c index a631f4b1..bce76029 100644 --- a/lmem.c +++ b/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) { diff --git a/ltests.h b/ltests.h index 1cba13e4..9dda1c65 100644 --- a/ltests.h +++ b/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 */