API for functions to manipulate global state.

This commit is contained in:
Roberto Ierusalimschy
1998-06-02 17:37:04 -03:00
parent 741c6f5006
commit 02a6891939
5 changed files with 98 additions and 32 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lbuffer.c,v 1.1 1997/12/23 19:24:36 roberto Exp roberto $
** $Id: lbuffer.c,v 1.2 1998/03/06 16:54:42 roberto Exp roberto $
** Auxiliar functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@@ -22,7 +22,7 @@
static void Openspace (int size)
{
LState *l = L; /* to optimize */
lua_State *l = L; /* to optimize */
int base = l->Mbuffbase-l->Mbuffer;
l->Mbuffsize *= 2;
if (l->Mbuffnext+size > l->Mbuffsize) /* still not big enough? */