aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index db4efa03..f8f3f148 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.7 2004/05/31 18:51:50 roberto Exp roberto $ 2** $Id: lstate.c,v 2.8 2004/06/02 19:09:36 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*/
@@ -87,6 +87,7 @@ static void f_luaopen (lua_State *L, void *ud) {
87 setbit(L->marked, FIXEDBIT); 87 setbit(L->marked, FIXEDBIT);
88 stack_init(L, L); /* init stack */ 88 stack_init(L, L); /* init stack */
89 sethvalue(L, gt(L), luaH_new(L, 0, 4)); /* table of globals */ 89 sethvalue(L, gt(L), luaH_new(L, 0, 4)); /* table of globals */
90 hvalue(gt(L))->metatable = luaH_new(L, 0, 0); /* globals metatable */
90 sethvalue(L, registry(L), luaH_new(L, 4, 4)); /* registry */ 91 sethvalue(L, registry(L), luaH_new(L, 4, 4)); /* registry */
91 luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ 92 luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */
92 luaT_init(L); 93 luaT_init(L);