summaryrefslogtreecommitdiff
path: root/src/mem.h
diff options
context:
space:
mode:
authorLua Team <team@lua.org>1996-11-19 12:00:00 +0000
committerrepogen <>1996-11-19 12:00:00 +0000
commit47a298a24ad3a8202440051de5938618502302a0 (patch)
tree9be43568f1e90c9219d5e3860b58c8ac1db5f062 /src/mem.h
parent721542976ebc89f2f8d17d19be7e4426570b69be (diff)
downloadlua-github-47a298a24ad3a8202440051de5938618502302a0.tar.gz
Lua 2.52.5
Diffstat (limited to 'src/mem.h')
-rw-r--r--src/mem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem.h b/src/mem.h
index 6899c4c1..86f024fc 100644
--- a/src/mem.h
+++ b/src/mem.h
@@ -1,7 +1,7 @@
/*
** mem.c
** memory manager for lua
-** $Id: mem.h,v 1.7 1996/04/22 18:00:37 roberto Exp $
+** $Id: mem.h,v 1.8 1996/05/24 14:31:10 roberto Exp $
*/
#ifndef mem_h
@@ -24,12 +24,12 @@
void luaI_free (void *block);
-void *luaI_malloc (unsigned long size);
void *luaI_realloc (void *oldblock, unsigned long size);
void *luaI_buffer (unsigned long size);
int luaI_growvector (void **block, unsigned long nelems, int size,
char *errormsg, unsigned long limit);
+#define luaI_malloc(s) luaI_realloc(NULL, (s))
#define new(s) ((s *)luaI_malloc(sizeof(s)))
#define newvector(n,s) ((s *)luaI_malloc((n)*sizeof(s)))
#define growvector(old,n,s,e,l) \