diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-10-08 15:45:07 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-10-08 15:45:07 -0300 |
commit | 02afc892d5ce5d85e88faac443d7294589ee697a (patch) | |
tree | 2875c957c65249f85ed8ec3b3408219e2ca91650 /ltests.h | |
parent | fa2f1ec7bae81d43e6edd1b29ecd610e24ebb301 (diff) | |
download | lua-02afc892d5ce5d85e88faac443d7294589ee697a.tar.gz lua-02afc892d5ce5d85e88faac443d7294589ee697a.tar.bz2 lua-02afc892d5ce5d85e88faac443d7294589ee697a.zip |
new ANSI C does not assure that realloc(p,0) == free(p)
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.h,v 1.14 2002/06/13 13:45:31 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 1.15 2002/07/17 16:25:13 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 | */ |
@@ -34,6 +34,7 @@ extern unsigned long memdebug_memlimit; | |||
34 | 34 | ||
35 | 35 | ||
36 | #define l_realloc(b, os, s) debug_realloc(b, os, s) | 36 | #define l_realloc(b, os, s) debug_realloc(b, os, s) |
37 | #define l_free(b, os) debug_realloc(b, os, 0) | ||
37 | 38 | ||
38 | void *debug_realloc (void *block, size_t oldsize, size_t size); | 39 | void *debug_realloc (void *block, size_t oldsize, size_t size); |
39 | 40 | ||