aboutsummaryrefslogtreecommitdiff
path: root/lbuffer.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-06-02 17:37:04 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-06-02 17:37:04 -0300
commit02a6891939895129bc968364a5beda73331005e7 (patch)
tree61417ec2d6e1eb38542e04fba31c482c6284280b /lbuffer.c
parent741c6f50067bfb0f351967c321da56805191f302 (diff)
downloadlua-02a6891939895129bc968364a5beda73331005e7.tar.gz
lua-02a6891939895129bc968364a5beda73331005e7.tar.bz2
lua-02a6891939895129bc968364a5beda73331005e7.zip
API for functions to manipulate global state.
Diffstat (limited to 'lbuffer.c')
-rw-r--r--lbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbuffer.c b/lbuffer.c
index d5aa8c98..fc20ce1a 100644
--- a/lbuffer.c
+++ b/lbuffer.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbuffer.c,v 1.1 1997/12/23 19:24:36 roberto Exp roberto $ 2** $Id: lbuffer.c,v 1.2 1998/03/06 16:54:42 roberto Exp roberto $
3** Auxiliar functions for building Lua libraries 3** Auxiliar functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -22,7 +22,7 @@
22 22
23static void Openspace (int size) 23static void Openspace (int size)
24{ 24{
25 LState *l = L; /* to optimize */ 25 lua_State *l = L; /* to optimize */
26 int base = l->Mbuffbase-l->Mbuffer; 26 int base = l->Mbuffbase-l->Mbuffer;
27 l->Mbuffsize *= 2; 27 l->Mbuffsize *= 2;
28 if (l->Mbuffnext+size > l->Mbuffsize) /* still not big enough? */ 28 if (l->Mbuffnext+size > l->Mbuffsize) /* still not big enough? */