diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-12-19 11:21:08 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-12-19 11:21:08 -0200 |
| commit | 754c6307544f751d870c7b6636196e4405cab0b6 (patch) | |
| tree | 5f6f53c6de0036d7b7622784bdeed31313aed357 | |
| parent | dd8edecae19251a3b89502416a2e7f8e75b2bd20 (diff) | |
| download | lua-754c6307544f751d870c7b6636196e4405cab0b6.tar.gz lua-754c6307544f751d870c7b6636196e4405cab0b6.tar.bz2 lua-754c6307544f751d870c7b6636196e4405cab0b6.zip | |
details
| -rw-r--r-- | lstate.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.c,v 1.116 2002/11/22 17:16:52 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.117 2002/12/04 17:38:31 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 | */ |
| @@ -182,6 +182,8 @@ LUA_API lua_State *lua_open (void) { | |||
| 182 | lua_State *L = mallocstate(NULL); | 182 | lua_State *L = mallocstate(NULL); |
| 183 | if (L) { /* allocation OK? */ | 183 | if (L) { /* allocation OK? */ |
| 184 | L->tt = LUA_TTHREAD; | 184 | L->tt = LUA_TTHREAD; |
| 185 | L->marked = 0; | ||
| 186 | L->next = L->gclist = NULL; | ||
| 185 | preinit_state(L); | 187 | preinit_state(L); |
| 186 | L->l_G = NULL; | 188 | L->l_G = NULL; |
| 187 | if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) { | 189 | if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) { |
