diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-04-05 13:35:37 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-04-05 13:35:37 -0300 |
commit | 6abde1b05a3e7eeb45fc9c0bb77dc660a01497a5 (patch) | |
tree | d15e0540d52db8ae5de71a8be98b643ebbfdee98 /lstate.c | |
parent | d394d5536aeccb937fb6fd8e7476b08d672bc892 (diff) | |
download | lua-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 | } |