summaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-08 15:45:07 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-08 15:45:07 -0300
commit02afc892d5ce5d85e88faac443d7294589ee697a (patch)
tree2875c957c65249f85ed8ec3b3408219e2ca91650 /ltests.h
parentfa2f1ec7bae81d43e6edd1b29ecd610e24ebb301 (diff)
downloadlua-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ltests.h b/ltests.h
index 821ce07c..12ad9dcf 100644
--- a/ltests.h
+++ b/ltests.h
@@ -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
38void *debug_realloc (void *block, size_t oldsize, size_t size); 39void *debug_realloc (void *block, size_t oldsize, size_t size);
39 40