From ed1751bc32bd295e27881e9d6f6bb17019d59c3e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 29 May 2000 11:48:03 -0300 Subject: [PATCH] details --- lmem.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lmem.c b/lmem.c index 8f6b110b..cc52ab6d 100644 --- a/lmem.c +++ b/lmem.c @@ -1,5 +1,5 @@ /* -** $Id: lmem.c,v 1.29 2000/03/16 20:35:07 roberto Exp roberto $ +** $Id: lmem.c,v 1.30 2000/05/24 13:54:49 roberto Exp roberto $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ @@ -16,8 +16,8 @@ /* -** Number ANSI systems do not need these tests; -** but some systems (Sun OS) are not that ANSI... +** Real ISO (ANSI) systems do not need these tests; +** but some systems (Sun OS) are not that ISO... */ #ifdef OLD_ANSI #define realloc(b,s) ((b) == NULL ? malloc(s) : (realloc)(b, s)) @@ -37,7 +37,9 @@ #include #include - +#undef realloc +#undef malloc +#undef free #define realloc(b, s) debug_realloc(b, s) #define malloc(b) debug_realloc(NULL, 0) #define free(b) debug_realloc(b, 0)