summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-09-05 16:31:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-09-05 16:31:49 -0300
commitd3bbb34c24cfe3e5296c6a5d3faacf6c8679fe70 (patch)
treeb245be2289ab4fdbb558a0f52a81dd5631871ee3 /lstate.c
parent0ad15fc10041f59b5466fe902637b1a2fb64565d (diff)
downloadlua-d3bbb34c24cfe3e5296c6a5d3faacf6c8679fe70.tar.gz
lua-d3bbb34c24cfe3e5296c6a5d3faacf6c8679fe70.tar.bz2
lua-d3bbb34c24cfe3e5296c6a5d3faacf6c8679fe70.zip
back to open hashing for the string table (but with a different
'hnext' field, to strings are still collected like all other objects)
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index e81d968d..3c79eb6c 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.109 2013/08/30 19:14:26 roberto Exp roberto $ 2** $Id: lstate.c,v 2.110 2013/09/03 15:37:10 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*/
@@ -289,7 +289,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
289 g->gcrunning = 0; /* no GC while building state */ 289 g->gcrunning = 0; /* no GC while building state */
290 g->GCestimate = 0; 290 g->GCestimate = 0;
291 g->GCthreshold = 10000; 291 g->GCthreshold = 10000;
292 g->strt.size = g->strt.nuse = g->strt.empty = 0; 292 g->strt.size = g->strt.nuse = 0;
293 g->strt.hash = NULL; 293 g->strt.hash = NULL;
294 setnilvalue(&g->l_registry); 294 setnilvalue(&g->l_registry);
295 luaZ_initbuffer(L, &g->buff); 295 luaZ_initbuffer(L, &g->buff);