From 3c9d999424520c809e05bee11d81788b488434f6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 3 Mar 2000 11:58:26 -0300 Subject: many details (most by lhf). --- lbuffer.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lbuffer.c') diff --git a/lbuffer.c b/lbuffer.c index 2525ea02..f584936d 100644 --- a/lbuffer.c +++ b/lbuffer.c @@ -1,5 +1,5 @@ /* -** $Id: lbuffer.c,v 1.10 1999/11/10 15:40:46 roberto Exp roberto $ +** $Id: lbuffer.c,v 1.11 1999/11/22 13:12:07 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -19,10 +19,14 @@ -------------------------------------------------------*/ +/* +** amount of extra space (pre)allocated when buffer is reallocated +*/ #define EXTRABUFF 32 -#define openspace(L, size) if (L->Mbuffnext+(size) > L->Mbuffsize) Openspace(L, size) +#define openspace(L, size) if (L->Mbuffnext+(size) > L->Mbuffsize) \ + Openspace(L, size) static void Openspace (lua_State *L, int size) { L->Mbuffsize = (L->Mbuffnext+size+EXTRABUFF)*2; -- cgit v1.2.3-55-g6feb