aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-08-25 12:39:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-08-25 12:39:16 -0300
commit39cdbce23edfd443699e396900a70de3fcff46c7 (patch)
tree821660333387a4afb34c699763f72832ef384804 /lstate.c
parent8974b59e4014dd1ca79dec6994d4c53ac226de5f (diff)
downloadlua-39cdbce23edfd443699e396900a70de3fcff46c7.tar.gz
lua-39cdbce23edfd443699e396900a70de3fcff46c7.tar.bz2
lua-39cdbce23edfd443699e396900a70de3fcff46c7.zip
no more '-w' option + new way to check module existence
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index 36f43ade..9b979036 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.31 2005/05/05 15:34:03 roberto Exp roberto $ 2** $Id: lstate.c,v 2.32 2005/06/03 20:15:58 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*/
@@ -72,7 +72,6 @@ static void f_luaopen (lua_State *L, void *ud) {
72 UNUSED(ud); 72 UNUSED(ud);
73 stack_init(L, L); /* init stack */ 73 stack_init(L, L); /* init stack */
74 sethvalue(L, gt(L), luaH_new(L, 0, 20)); /* table of globals */ 74 sethvalue(L, gt(L), luaH_new(L, 0, 20)); /* table of globals */
75 hvalue(gt(L))->metatable = luaH_new(L, 0, 0); /* globals metatable */
76 sethvalue(L, registry(L), luaH_new(L, 6, 20)); /* registry */ 75 sethvalue(L, registry(L), luaH_new(L, 6, 20)); /* registry */
77 luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ 76 luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */
78 luaT_init(L); 77 luaT_init(L);