diff options
author | Lua Team <team@lua.org> | 2005-09-09 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2005-09-09 12:00:00 +0000 |
commit | bd80c4ee9b6d9464cf9f3ff4ee41890d8b3ca9e6 (patch) | |
tree | e1d7c1b341ccb9a3a1fb044ac6e67b5a5e0259b7 /src/lstate.c | |
parent | bf6b5550cdfbc0c4a3a4577776ad76628d80718e (diff) | |
download | lua-github-5.1-alpha.tar.gz |
Lua 5.1-alpha5.1-alpha
Diffstat (limited to 'src/lstate.c')
-rw-r--r-- | src/lstate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lstate.c b/src/lstate.c index 41162dac..2a4ace12 100644 --- a/src/lstate.c +++ b/src/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.31 2005/05/05 15:34:03 roberto Exp $ +** $Id: lstate.c,v 2.33 2005/08/25 15:39:16 roberto Exp $ ** Global State ** See Copyright Notice in lua.h */ @@ -72,7 +72,6 @@ static void f_luaopen (lua_State *L, void *ud) { UNUSED(ud); stack_init(L, L); /* init stack */ sethvalue(L, gt(L), luaH_new(L, 0, 20)); /* table of globals */ - hvalue(gt(L))->metatable = luaH_new(L, 0, 0); /* globals metatable */ sethvalue(L, registry(L), luaH_new(L, 6, 20)); /* registry */ luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ luaT_init(L); @@ -83,7 +82,7 @@ static void f_luaopen (lua_State *L, void *ud) { static void preinit_state (lua_State *L, global_State *g) { - L->l_G = g; + G(L) = g; L->stack = NULL; L->stacksize = 0; L->errorJmp = NULL; |