From 5e8dd555748f0f5ef8c7afb5bcc9aa42decc8c81 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 31 Oct 2007 13:41:19 -0200 Subject: first implementation of ephemerons --- lstate.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index 109f3f3f..4b4b50a3 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.40 2006/10/10 17:40:17 roberto Exp roberto $ +** $Id: lstate.c,v 2.41 2007/10/29 16:51:20 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -182,9 +182,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { g->sweepgc = &g->rootgc; g->gray = NULL; g->grayagain = NULL; - g->weakvalue = NULL; - g->weakkey = NULL; - g->weakkeyvalue = NULL; + g->weak = g->ephemeron = g->allweak = NULL; g->tmudata = NULL; g->totalbytes = sizeof(LG); g->gcpause = LUAI_GCPAUSE; -- cgit v1.2.3-55-g6feb