diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-11 13:26:12 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-11 13:26:12 -0300 |
commit | 6b8cdc9cdd545508af85d1de2013ea0fc64792b0 (patch) | |
tree | 11a82496526f13e7937230fcc86775ed7eac56a0 /ltests.h | |
parent | 000d081fd0966ba8f39178186d30319df37d631f (diff) | |
download | lua-6b8cdc9cdd545508af85d1de2013ea0fc64792b0.tar.gz lua-6b8cdc9cdd545508af85d1de2013ea0fc64792b0.tar.bz2 lua-6b8cdc9cdd545508af85d1de2013ea0fc64792b0.zip |
Lua now uses only `realloc' for all its memory management
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.h,v 1.11 2002/01/11 20:23:57 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 1.12 2002/03/08 19:17:59 roberto Exp roberto $ |
3 | ** Internal Header for Debugging of the Lua Implementation | 3 | ** Internal Header for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -32,9 +32,7 @@ extern unsigned long memdebug_maxmem; | |||
32 | extern unsigned long memdebug_memlimit; | 32 | extern unsigned long memdebug_memlimit; |
33 | 33 | ||
34 | 34 | ||
35 | #define l_malloc(s) debug_realloc(NULL, 0, s) | ||
36 | #define l_realloc(b, os, s) debug_realloc(b, os, s) | 35 | #define l_realloc(b, os, s) debug_realloc(b, os, s) |
37 | #define l_free(b, s) debug_realloc(b, s, 0) | ||
38 | 36 | ||
39 | void *debug_realloc (void *block, size_t oldsize, size_t size); | 37 | void *debug_realloc (void *block, size_t oldsize, size_t size); |
40 | 38 | ||