diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-03-14 12:55:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-03-14 12:55:49 -0300 |
commit | 7236df875aa62e3e217e676365738ae5a0308a9b (patch) | |
tree | 433387dc47bc099b32cb79e36f032862d7a47bc8 /luamem.h | |
parent | 675e608325ace43e4350bcde8cfb6ec93b46788f (diff) | |
download | lua-7236df875aa62e3e217e676365738ae5a0308a9b.tar.gz lua-7236df875aa62e3e217e676365738ae5a0308a9b.tar.bz2 lua-7236df875aa62e3e217e676365738ae5a0308a9b.zip |
new function "luaI_buffer".
Diffstat (limited to 'luamem.h')
-rw-r--r-- | luamem.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | ** mem.c | 2 | ** mem.c |
3 | ** memory manager for lua | 3 | ** memory manager for lua |
4 | ** $Id: mem.h,v 1.2 1995/01/13 22:11:12 roberto Exp roberto $ | 4 | ** $Id: mem.h,v 1.3 1996/02/22 20:34:33 roberto Exp roberto $ |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #ifndef mem_h | 7 | #ifndef mem_h |
@@ -14,6 +14,7 @@ | |||
14 | void luaI_free (void *block); | 14 | void luaI_free (void *block); |
15 | void *luaI_malloc (unsigned long size); | 15 | void *luaI_malloc (unsigned long size); |
16 | void *luaI_realloc (void *oldblock, unsigned long size); | 16 | void *luaI_realloc (void *oldblock, unsigned long size); |
17 | void* luaI_buffer (unsigned long size); | ||
17 | 18 | ||
18 | #define new(s) ((s *)luaI_malloc(sizeof(s))) | 19 | #define new(s) ((s *)luaI_malloc(sizeof(s))) |
19 | #define newvector(n,s) ((s *)luaI_malloc((n)*sizeof(s))) | 20 | #define newvector(n,s) ((s *)luaI_malloc((n)*sizeof(s))) |