diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-02 17:37:04 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-06-02 17:37:04 -0300 |
commit | 02a6891939895129bc968364a5beda73331005e7 (patch) | |
tree | 61417ec2d6e1eb38542e04fba31c482c6284280b /lbuffer.c | |
parent | 741c6f50067bfb0f351967c321da56805191f302 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||
23 | static void Openspace (int size) | 23 | static 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? */ |