aboutsummaryrefslogtreecommitdiff
path: root/lbuffer.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-26 12:48:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-26 12:48:55 -0300
commit72d675aba78d59e22ebfadbe447f4f51ddab5a5c (patch)
tree2f43006cba58bcfc97f01ecdd6f00e35e92aa673 /lbuffer.c
parentba57f7d946bc0b600996f7a982b2fb644df76a98 (diff)
downloadlua-72d675aba78d59e22ebfadbe447f4f51ddab5a5c.tar.gz
lua-72d675aba78d59e22ebfadbe447f4f51ddab5a5c.tar.bz2
lua-72d675aba78d59e22ebfadbe447f4f51ddab5a5c.zip
macros "growvector" and "reallocvector" more compact
Diffstat (limited to 'lbuffer.c')
-rw-r--r--lbuffer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lbuffer.c b/lbuffer.c
index 5ad03a97..85568b3c 100644
--- a/lbuffer.c
+++ b/lbuffer.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbuffer.c,v 1.7 1999/02/25 19:13:56 roberto Exp roberto $ 2** $Id: lbuffer.c,v 1.8 1999/02/25 19:20:40 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -26,8 +26,7 @@ static void Openspace (int size) {
26 lua_State *l = L; /* to optimize */ 26 lua_State *l = L; /* to optimize */
27 size += EXTRABUFF; 27 size += EXTRABUFF;
28 l->Mbuffsize = l->Mbuffnext+size; 28 l->Mbuffsize = l->Mbuffnext+size;
29 l->Mbuffer = luaM_growvector(l->Mbuffer, l->Mbuffnext, size, char, 29 luaM_growvector(l->Mbuffer, l->Mbuffnext, size, char, arrEM, MAX_INT);
30 memEM, MAX_INT);
31} 30}
32 31
33 32