summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index 2fc282e7..9685f2a5 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.67 2009/12/17 12:26:09 roberto Exp roberto $ 2** $Id: lstate.c,v 2.68 2009/12/22 15:32:50 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*/
@@ -161,6 +161,8 @@ static void f_luaopen (lua_State *L, void *ud) {
161 luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ 161 luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */
162 luaT_init(L); 162 luaT_init(L);
163 luaX_init(L); 163 luaX_init(L);
164 g->envn = luaS_new(L, "_ENV");
165 luaS_fix(g->envn); /* never collect this name */
164 luaS_fix(luaS_newliteral(L, MEMERRMSG)); 166 luaS_fix(luaS_newliteral(L, MEMERRMSG));
165 g->GCthreshold = 4*g->totalbytes; 167 g->GCthreshold = 4*g->totalbytes;
166} 168}