diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-07-29 17:38:45 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-07-29 17:38:45 -0300 |
commit | 2c580a0afb8dbaf7070a9819b7e81ebde5737ff9 (patch) | |
tree | 6fd261bb3bd89e2b851cd1adaa290c17a6dcad67 /luamem.h | |
parent | 05e8b0ae80bbeaf41ea849e9eff5d05074093560 (diff) | |
download | lua-2c580a0afb8dbaf7070a9819b7e81ebde5737ff9.tar.gz lua-2c580a0afb8dbaf7070a9819b7e81ebde5737ff9.tar.bz2 lua-2c580a0afb8dbaf7070a9819b7e81ebde5737ff9.zip |
new way to handle global state during compilation.
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: luamem.h,v 1.8 1996/05/24 14:31:10 roberto Exp roberto $ | 4 | ** $Id: luamem.h,v 1.9 1997/03/31 14:10:11 roberto Exp roberto $ |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #ifndef luamem_h | 7 | #ifndef luamem_h |
@@ -34,6 +34,7 @@ int luaI_growvector (void **block, unsigned long nelems, int size, | |||
34 | #define newvector(n,s) ((s *)luaI_malloc((n)*sizeof(s))) | 34 | #define newvector(n,s) ((s *)luaI_malloc((n)*sizeof(s))) |
35 | #define growvector(old,n,s,e,l) \ | 35 | #define growvector(old,n,s,e,l) \ |
36 | (luaI_growvector((void**)old,n,sizeof(s),e,l)) | 36 | (luaI_growvector((void**)old,n,sizeof(s),e,l)) |
37 | #define shrinkvector(v,n,t) ((t *)luaI_realloc(v,(n)*sizeof(t))) | ||
37 | 38 | ||
38 | #endif | 39 | #endif |
39 | 40 | ||