mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
macros "growvector" and "reallocvector" more compact
This commit is contained in:
parent
ba57f7d946
commit
72d675aba7
6 changed files with 24 additions and 30 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue