From 2c580a0afb8dbaf7070a9819b7e81ebde5737ff9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 29 Jul 1997 17:38:45 -0300 Subject: new way to handle global state during compilation. --- luamem.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'luamem.h') diff --git a/luamem.h b/luamem.h index e338183d..8b88ee9b 100644 --- a/luamem.h +++ b/luamem.h @@ -1,7 +1,7 @@ /* ** mem.c ** memory manager for lua -** $Id: luamem.h,v 1.8 1996/05/24 14:31:10 roberto Exp roberto $ +** $Id: luamem.h,v 1.9 1997/03/31 14:10:11 roberto Exp roberto $ */ #ifndef luamem_h @@ -34,6 +34,7 @@ int luaI_growvector (void **block, unsigned long nelems, int size, #define newvector(n,s) ((s *)luaI_malloc((n)*sizeof(s))) #define growvector(old,n,s,e,l) \ (luaI_growvector((void**)old,n,sizeof(s),e,l)) +#define shrinkvector(v,n,t) ((t *)luaI_realloc(v,(n)*sizeof(t))) #endif -- cgit v1.2.3-55-g6feb