From c6eac44a9420a26a2f8907dcd5266a6aecdb18ea Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 3 Dec 2003 18:03:07 -0200 Subject: two different white flags (to distinguish dead elements from new ones) --- lstate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index ceaaab81..99aeabdb 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 1.130 2003/12/01 18:22:56 roberto Exp roberto $ +** $Id: lstate.c,v 1.131 2003/12/03 12:30:41 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -167,6 +167,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { g->panic = NULL; g->gcstate = 0; g->rootgc = NULL; + g->currentwhite = bitmask(WHITE0BIT); g->firstudata = NULL; g->gray = NULL; g->weak = NULL; -- cgit v1.2.3-55-g6feb