summaryrefslogtreecommitdiff
path: root/lstate.c
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.c
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.c')
-rw-r--r--lstate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index ceaaab81..99aeabdb 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 1.130 2003/12/01 18:22:56 roberto Exp roberto $ 2** $Id: lstate.c,v 1.131 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*/
@@ -167,6 +167,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
167 g->panic = NULL; 167 g->panic = NULL;
168 g->gcstate = 0; 168 g->gcstate = 0;
169 g->rootgc = NULL; 169 g->rootgc = NULL;
170 g->currentwhite = bitmask(WHITE0BIT);
170 g->firstudata = NULL; 171 g->firstudata = NULL;
171 g->gray = NULL; 172 g->gray = NULL;
172 g->weak = NULL; 173 g->weak = NULL;