summaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-08 15:46:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-08 15:46:08 -0300
commitb3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4 (patch)
tree746fc9900768dfaf1ddffca35cb4f6fd55903bbf /lstate.h
parent02afc892d5ce5d85e88faac443d7294589ee697a (diff)
downloadlua-b3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4.tar.gz
lua-b3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4.tar.bz2
lua-b3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4.zip
use of different buffers for scanner and concatenation
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstate.h b/lstate.h
index 618685c1..94af29ad 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.95 2002/08/30 19:09:21 roberto Exp roberto $ 2** $Id: lstate.h,v 1.96 2002/09/19 13:03:53 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -11,6 +11,7 @@
11 11
12#include "lobject.h" 12#include "lobject.h"
13#include "ltm.h" 13#include "ltm.h"
14#include "lzio.h"
14 15
15 16
16/* 17/*
@@ -124,8 +125,7 @@ typedef struct global_State {
124 GCObject *rootgc; /* list of (almost) all collectable objects */ 125 GCObject *rootgc; /* list of (almost) all collectable objects */
125 GCObject *rootudata; /* (separated) list of all userdata */ 126 GCObject *rootudata; /* (separated) list of all userdata */
126 GCObject *tmudata; /* list of userdata to be GC */ 127 GCObject *tmudata; /* list of userdata to be GC */
127 char *Mbuffer; /* global buffer */ 128 Mbuffer buff; /* temporary buffer for string concatentation */
128 size_t Mbuffsize; /* size of Mbuffer */
129 lu_mem GCthreshold; 129 lu_mem GCthreshold;
130 lu_mem nblocks; /* number of `bytes' currently allocated */ 130 lu_mem nblocks; /* number of `bytes' currently allocated */
131 lua_CFunction panic; /* to be called in unprotected errors */ 131 lua_CFunction panic; /* to be called in unprotected errors */