aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index 9725bed5..5360d343 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 1.89 2002/04/16 17:08:28 roberto Exp roberto $ 2** $Id: lstate.c,v 1.90 2002/04/22 14:40:23 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*/
@@ -69,6 +69,9 @@ static void f_luaopen (lua_State *L, void *ud) {
69 G(L)->rootupval = NULL; 69 G(L)->rootupval = NULL;
70 G(L)->rootudata = NULL; 70 G(L)->rootudata = NULL;
71 G(L)->tmudata = NULL; 71 G(L)->tmudata = NULL;
72 setnilvalue(key(G(L)->dummynode));
73 setnilvalue(val(G(L)->dummynode));
74 G(L)->dummynode->next = NULL;
72 G(L)->nblocks = sizeof(lua_State) + sizeof(global_State); 75 G(L)->nblocks = sizeof(lua_State) + sizeof(global_State);
73 stack_init(L, L); /* init stack */ 76 stack_init(L, L); /* init stack */
74 /* create default meta table with a dummy table, and then close the loop */ 77 /* create default meta table with a dummy table, and then close the loop */