aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-05 13:35:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-05 13:35:37 -0300
commit6abde1b05a3e7eeb45fc9c0bb77dc660a01497a5 (patch)
treed15e0540d52db8ae5de71a8be98b643ebbfdee98 /lstate.c
parentd394d5536aeccb937fb6fd8e7476b08d672bc892 (diff)
downloadlua-6abde1b05a3e7eeb45fc9c0bb77dc660a01497a5.tar.gz
lua-6abde1b05a3e7eeb45fc9c0bb77dc660a01497a5.tar.bz2
lua-6abde1b05a3e7eeb45fc9c0bb77dc660a01497a5.zip
no need to keep "_ENV" name in global state (can be kept in lex state)
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lstate.c b/lstate.c
index aad526c2..51272622 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.75 2010/03/26 20:58:11 roberto Exp roberto $ 2** $Id: lstate.c,v 2.76 2010/03/29 17:43:14 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*/
@@ -157,8 +157,6 @@ static void f_luaopen (lua_State *L, void *ud) {
157 luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ 157 luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */
158 luaT_init(L); 158 luaT_init(L);
159 luaX_init(L); 159 luaX_init(L);
160 g->envn = luaS_new(L, "_ENV");
161 luaS_fix(g->envn); /* never collect this name */
162 luaS_fix(luaS_newliteral(L, MEMERRMSG)); 160 luaS_fix(luaS_newliteral(L, MEMERRMSG));
163 g->GCthreshold = 4*g->totalbytes; 161 g->GCthreshold = 4*g->totalbytes;
164} 162}