From ae800656c9f82b54f6fae1497022d3484ad0c920 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 21 Aug 2013 16:21:16 -0300 Subject: change in string table: string table is now independent of GC lists; all strings live in 'normal' GC lists --- lstate.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index a9c321d5..7753568d 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.101 2013/08/07 12:18:11 roberto Exp roberto $ +** $Id: lstate.c,v 2.102 2013/08/16 18:55:49 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -280,8 +280,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { g->seed = makeseed(L); g->gcrunning = 0; /* no GC while building state */ g->GCestimate = 0; - g->strt.size = 0; - g->strt.nuse = 0; + g->strt.size = g->strt.nuse = g->strt.empty = 0; g->strt.hash = NULL; setnilvalue(&g->l_registry); luaZ_initbuffer(L, &g->buff); -- cgit v1.2.3-55-g6feb