diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-03-23 13:38:43 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-03-23 13:38:43 -0300 |
commit | 29a13b4128caccca1c7796a1252cb04d4e8a0569 (patch) | |
tree | 68aa1de39d47a40858fbad6693b004a6500167a6 /lstate.c | |
parent | ef8c0d7d904a40840d34e758007ae07ca87922d0 (diff) | |
download | lua-29a13b4128caccca1c7796a1252cb04d4e8a0569.tar.gz lua-29a13b4128caccca1c7796a1252cb04d4e8a0569.tar.bz2 lua-29a13b4128caccca1c7796a1252cb04d4e8a0569.zip |
detail
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.3 2004/02/16 19:09:52 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.4 2004/03/15 21:04:33 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 | */ |
@@ -82,6 +82,7 @@ static void f_luaopen (lua_State *L, void *ud) { | |||
82 | G(L)->firstudata = obj2gco(u); | 82 | G(L)->firstudata = obj2gco(u); |
83 | luaC_link(L, obj2gco(u), LUA_TUSERDATA); | 83 | luaC_link(L, obj2gco(u), LUA_TUSERDATA); |
84 | setbit(u->uv.marked, FIXEDBIT); | 84 | setbit(u->uv.marked, FIXEDBIT); |
85 | setbit(L->marked, FIXEDBIT); | ||
85 | stack_init(L, L); /* init stack */ | 86 | stack_init(L, L); /* init stack */ |
86 | sethvalue(L, gt(L), luaH_new(L, 0, 4)); /* table of globals */ | 87 | sethvalue(L, gt(L), luaH_new(L, 0, 4)); /* table of globals */ |
87 | sethvalue(L, registry(L), luaH_new(L, 4, 4)); /* registry */ | 88 | sethvalue(L, registry(L), luaH_new(L, 4, 4)); /* registry */ |