macros "growvector" and "reallocvector" more compact

This commit is contained in:
Roberto Ierusalimschy
1999-02-26 12:48:55 -03:00
parent ba57f7d946
commit 72d675aba7
6 changed files with 24 additions and 30 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lbuffer.c,v 1.7 1999/02/25 19:13:56 roberto Exp roberto $
** $Id: lbuffer.c,v 1.8 1999/02/25 19:20:40 roberto Exp roberto $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@@ -26,8 +26,7 @@ static void Openspace (int size) {
lua_State *l = L; /* to optimize */
size += EXTRABUFF;
l->Mbuffsize = l->Mbuffnext+size;
l->Mbuffer = luaM_growvector(l->Mbuffer, l->Mbuffnext, size, char,
memEM, MAX_INT);
luaM_growvector(l->Mbuffer, l->Mbuffnext, size, char, arrEM, MAX_INT);
}