diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-12-03 18:03:07 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-12-03 18:03:07 -0200 |
commit | c6eac44a9420a26a2f8907dcd5266a6aecdb18ea (patch) | |
tree | acbf11560fe8aee5dddf37ff52b9fcaa6e697ca6 /lstate.h | |
parent | 8878554b854009066eeccfe7b17e6e019c69758a (diff) | |
download | lua-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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' */ |