diff options
author | Lua Team <team@lua.org> | 1996-11-19 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 1996-11-19 12:00:00 +0000 |
commit | 47a298a24ad3a8202440051de5938618502302a0 (patch) | |
tree | 9be43568f1e90c9219d5e3860b58c8ac1db5f062 /src/mem.h | |
parent | 721542976ebc89f2f8d17d19be7e4426570b69be (diff) | |
download | lua-github-47a298a24ad3a8202440051de5938618502302a0.tar.gz |
Lua 2.52.5
Diffstat (limited to 'src/mem.h')
-rw-r--r-- | src/mem.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) \ |