aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lstate.h b/lstate.h
index 864e19c9..ed46fb1f 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.112 2003/10/02 20:31:17 roberto Exp roberto $ 2** $Id: lstate.h,v 1.113 2003/11/18 14:55:11 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*/
@@ -98,13 +98,16 @@ typedef struct CallInfo {
98*/ 98*/
99typedef struct global_State { 99typedef struct global_State {
100 stringtable strt; /* hash table for strings */ 100 stringtable strt; /* hash table for strings */
101 lua_Alloc realloc; /* function to reallocate memory */
102 void *ud; /* auxiliary data to `realloc' */
101 GCObject *rootgc; /* list of (almost) all collectable objects */ 103 GCObject *rootgc; /* list of (almost) all collectable objects */
102 GCObject *rootudata; /* (separated) list of all userdata */ 104 GCObject *rootudata; /* (separated) list of all userdata */
105 GCObject **sweepgc; /* position of sweep in `rootgc' */
106 GCObject **sweepudata; /* position of sweep in `rootudata' */
103 GCObject *gray; /* list of gray objects */ 107 GCObject *gray; /* list of gray objects */
104 GCObject *weak; /* list of weak tables (to be cleared) */ 108 GCObject *weak; /* list of weak tables (to be cleared) */
105 GCObject *tmudata; /* list of userdata to be GC */ 109 GCObject *tmudata; /* list of userdata to be GC */
106 lua_Alloc realloc; /* function to reallocate memory */ 110 int gcstate; /* state of garbage collector */
107 void *ud; /* auxiliary data to `realloc' */
108 Mbuffer buff; /* temporary buffer for string concatentation */ 111 Mbuffer buff; /* temporary buffer for string concatentation */
109 lu_mem GCthreshold; 112 lu_mem GCthreshold;
110 lu_mem nblocks; /* number of `bytes' currently allocated */ 113 lu_mem nblocks; /* number of `bytes' currently allocated */