macros "growvector" and "reallocvector" more compact
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user