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.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index a7a8d648..a0d49c65 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.115 2003/12/01 18:22:56 roberto Exp roberto $ +** $Id: lstate.h,v 1.116 2003/12/03 12:30:41 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -97,6 +97,7 @@ typedef struct global_State { stringtable strt; /* hash table for strings */ lua_Alloc realloc; /* function to reallocate memory */ void *ud; /* auxiliary data to `realloc' */ + int currentwhite; GCObject *rootgc; /* list of all collectable objects */ GCObject *firstudata; /* udata go to the end of `rootgc' */ GCObject **sweepgc; /* position of sweep in `rootgc' */ -- cgit v1.2.3-55-g6feb