From 6abde1b05a3e7eeb45fc9c0bb77dc660a01497a5 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 5 Apr 2010 13:35:37 -0300 Subject: no need to keep "_ENV" name in global state (can be kept in lex state) --- lstate.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index aad526c2..51272622 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.75 2010/03/26 20:58:11 roberto Exp roberto $ +** $Id: lstate.c,v 2.76 2010/03/29 17:43:14 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -157,8 +157,6 @@ static void f_luaopen (lua_State *L, void *ud) { luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ luaT_init(L); luaX_init(L); - g->envn = luaS_new(L, "_ENV"); - luaS_fix(g->envn); /* never collect this name */ luaS_fix(luaS_newliteral(L, MEMERRMSG)); g->GCthreshold = 4*g->totalbytes; } -- cgit v1.2.3-55-g6feb