use of different buffers for scanner and concatenation

This commit is contained in:
Roberto Ierusalimschy
2002-10-08 15:46:08 -03:00
parent 02afc892d5
commit b3d0682fb9
15 changed files with 136 additions and 110 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 1.95 2002/08/30 19:09:21 roberto Exp roberto $
** $Id: lstate.h,v 1.96 2002/09/19 13:03:53 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -11,6 +11,7 @@
#include "lobject.h"
#include "ltm.h"
#include "lzio.h"
/*
@@ -124,8 +125,7 @@ typedef struct global_State {
GCObject *rootgc; /* list of (almost) all collectable objects */
GCObject *rootudata; /* (separated) list of all userdata */
GCObject *tmudata; /* list of userdata to be GC */
char *Mbuffer; /* global buffer */
size_t Mbuffsize; /* size of Mbuffer */
Mbuffer buff; /* temporary buffer for string concatentation */
lu_mem GCthreshold;
lu_mem nblocks; /* number of `bytes' currently allocated */
lua_CFunction panic; /* to be called in unprotected errors */