diff options
-rw-r--r-- | lmem.h | 6 | ||||
-rw-r--r-- | lstate.c | 6 | ||||
-rw-r--r-- | ltests.c | 6 |
3 files changed, 9 insertions, 9 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmem.h,v 1.10 1999/11/22 13:12:07 roberto Exp roberto $ | 2 | ** $Id: lmem.h,v 1.11 1999/12/27 17:33:22 roberto Exp roberto $ |
3 | ** Interface to Memory Manager | 3 | ** Interface to Memory Manager |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -34,8 +34,8 @@ void *luaM_growaux (lua_State *L, void *block, unsigned long nelems, int inc, in | |||
34 | 34 | ||
35 | 35 | ||
36 | #ifdef DEBUG | 36 | #ifdef DEBUG |
37 | extern unsigned long numblocks; | 37 | extern unsigned long memdebug_numblocks; |
38 | extern unsigned long totalmem; | 38 | extern unsigned long memdebug_total; |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | 41 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.22 1999/12/07 11:42:54 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.23 1999/12/21 18:04:41 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -105,8 +105,8 @@ void lua_close (lua_State *L) { | |||
105 | LUA_ASSERT(L, L->Cstack.base == L->top, "C2Lua not empty"); | 105 | LUA_ASSERT(L, L->Cstack.base == L->top, "C2Lua not empty"); |
106 | luaM_free(L, L); | 106 | luaM_free(L, L); |
107 | if (L == lua_state) { | 107 | if (L == lua_state) { |
108 | LUA_ASSERT(L, numblocks == 0, "memory leak!"); | 108 | LUA_ASSERT(L, memdebug_numblocks == 0, "memory leak!"); |
109 | LUA_ASSERT(L, totalmem == 0,"memory leak!"); | 109 | LUA_ASSERT(L, memdebug_total == 0,"memory leak!"); |
110 | lua_state = NULL; | 110 | lua_state = NULL; |
111 | } | 111 | } |
112 | } | 112 | } |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 1.2 1999/12/23 18:19:57 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.3 1999/12/27 17:33:22 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -30,8 +30,8 @@ void luaB_opentests (lua_State *L); | |||
30 | 30 | ||
31 | 31 | ||
32 | static void mem_query (lua_State *L) { | 32 | static void mem_query (lua_State *L) { |
33 | lua_pushnumber(L, totalmem); | 33 | lua_pushnumber(L, memdebug_total); |
34 | lua_pushnumber(L, numblocks); | 34 | lua_pushnumber(L, memdebug_numblocks); |
35 | } | 35 | } |
36 | 36 | ||
37 | 37 | ||