diff options
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 | } |