aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-29 11:48:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-29 11:48:03 -0300
commited1751bc32bd295e27881e9d6f6bb17019d59c3e (patch)
tree1e92f2366d6103390243c3afd451b51ec07268b0
parent8e617985fab860fcd045f6f345ef47b159446d3b (diff)
downloadlua-ed1751bc32bd295e27881e9d6f6bb17019d59c3e.tar.gz
lua-ed1751bc32bd295e27881e9d6f6bb17019d59c3e.tar.bz2
lua-ed1751bc32bd295e27881e9d6f6bb17019d59c3e.zip
details
-rw-r--r--lmem.c10
1 files 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 @@
1/* 1/*
2** $Id: lmem.c,v 1.29 2000/03/16 20:35:07 roberto Exp roberto $ 2** $Id: lmem.c,v 1.30 2000/05/24 13:54:49 roberto Exp roberto $
3** Interface to Memory Manager 3** Interface to Memory Manager
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -16,8 +16,8 @@
16 16
17 17
18/* 18/*
19** Number ANSI systems do not need these tests; 19** Real ISO (ANSI) systems do not need these tests;
20** but some systems (Sun OS) are not that ANSI... 20** but some systems (Sun OS) are not that ISO...
21*/ 21*/
22#ifdef OLD_ANSI 22#ifdef OLD_ANSI
23#define realloc(b,s) ((b) == NULL ? malloc(s) : (realloc)(b, s)) 23#define realloc(b,s) ((b) == NULL ? malloc(s) : (realloc)(b, s))
@@ -37,7 +37,9 @@
37#include <assert.h> 37#include <assert.h>
38#include <string.h> 38#include <string.h>
39 39
40 40#undef realloc
41#undef malloc
42#undef free
41#define realloc(b, s) debug_realloc(b, s) 43#define realloc(b, s) debug_realloc(b, s)
42#define malloc(b) debug_realloc(NULL, 0) 44#define malloc(b) debug_realloc(NULL, 0)
43#define free(b) debug_realloc(b, 0) 45#define free(b) debug_realloc(b, 0)