aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-12-03 18:03:07 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-12-03 18:03:07 -0200
commitc6eac44a9420a26a2f8907dcd5266a6aecdb18ea (patch)
treeacbf11560fe8aee5dddf37ff52b9fcaa6e697ca6 /lstate.h
parent8878554b854009066eeccfe7b17e6e019c69758a (diff)
downloadlua-c6eac44a9420a26a2f8907dcd5266a6aecdb18ea.tar.gz
lua-c6eac44a9420a26a2f8907dcd5266a6aecdb18ea.tar.bz2
lua-c6eac44a9420a26a2f8907dcd5266a6aecdb18ea.zip
two different white flags (to distinguish dead elements from new ones)
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index a7a8d648..a0d49c65 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.115 2003/12/01 18:22:56 roberto Exp roberto $ 2** $Id: lstate.h,v 1.116 2003/12/03 12:30:41 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*/
@@ -97,6 +97,7 @@ typedef struct global_State {
97 stringtable strt; /* hash table for strings */ 97 stringtable strt; /* hash table for strings */
98 lua_Alloc realloc; /* function to reallocate memory */ 98 lua_Alloc realloc; /* function to reallocate memory */
99 void *ud; /* auxiliary data to `realloc' */ 99 void *ud; /* auxiliary data to `realloc' */
100 int currentwhite;
100 GCObject *rootgc; /* list of all collectable objects */ 101 GCObject *rootgc; /* list of all collectable objects */
101 GCObject *firstudata; /* udata go to the end of `rootgc' */ 102 GCObject *firstudata; /* udata go to the end of `rootgc' */
102 GCObject **sweepgc; /* position of sweep in `rootgc' */ 103 GCObject **sweepgc; /* position of sweep in `rootgc' */