aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/lstate.h b/lstate.h
index cee07969..d6b5afd1 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.57 2001/06/06 18:00:19 roberto Exp roberto $ 2** $Id: lstate.h,v 1.58 2001/06/15 19:16:41 roberto Exp $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -56,10 +56,6 @@ typedef struct stringtable {
56typedef struct global_State { 56typedef struct global_State {
57 void *Mbuffer; /* global buffer */ 57 void *Mbuffer; /* global buffer */
58 size_t Mbuffsize; /* size of Mbuffer */ 58 size_t Mbuffsize; /* size of Mbuffer */
59 Proto *rootproto; /* list of all prototypes */
60 Closure *rootcl; /* list of all closures */
61 Hash *roottable; /* list of all tables */
62 Udata *rootudata; /* list of all userdata */
63 stringtable strt; /* hash table for strings */ 59 stringtable strt; /* hash table for strings */
64 Hash *type2tag; /* hash table from type names to tags */ 60 Hash *type2tag; /* hash table from type names to tags */
65 Hash *registry; /* (strong) registry table */ 61 Hash *registry; /* (strong) registry table */
@@ -69,6 +65,11 @@ typedef struct global_State {
69 int ntag; /* number of tags in TMtable */ 65 int ntag; /* number of tags in TMtable */
70 lu_mem GCthreshold; 66 lu_mem GCthreshold;
71 lu_mem nblocks; /* number of `bytes' currently allocated */ 67 lu_mem nblocks; /* number of `bytes' currently allocated */
68 Proto *rootproto; /* list of all prototypes */
69 Closure *rootcl; /* list of all closed closures */
70 Hash *roottable; /* list of all tables */
71 Udata *rootudata; /* list of all userdata */
72 UpVal *rootupval; /* list of all up values */
72} global_State; 73} global_State;
73 74
74 75
@@ -88,6 +89,7 @@ struct lua_State {
88 lua_Hook linehook; 89 lua_Hook linehook;
89 int allowhooks; 90 int allowhooks;
90 struct lua_longjmp *errorJmp; /* current error recover point */ 91 struct lua_longjmp *errorJmp; /* current error recover point */
92 Closure *opencl; /* list of closures still pointing to this stack */
91 lua_State *next; /* circular double linked list of states */ 93 lua_State *next; /* circular double linked list of states */
92 lua_State *previous; 94 lua_State *previous;
93 CallInfo basefunc; 95 CallInfo basefunc;