summaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-11 13:26:12 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-11 13:26:12 -0300
commit6b8cdc9cdd545508af85d1de2013ea0fc64792b0 (patch)
tree11a82496526f13e7937230fcc86775ed7eac56a0 /ltests.h
parent000d081fd0966ba8f39178186d30319df37d631f (diff)
downloadlua-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.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/ltests.h b/ltests.h
index 28604c60..6aef3984 100644
--- a/ltests.h
+++ b/ltests.h
@@ -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;
32extern unsigned long memdebug_memlimit; 32extern 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
39void *debug_realloc (void *block, size_t oldsize, size_t size); 37void *debug_realloc (void *block, size_t oldsize, size_t size);
40 38