diff options
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.21 1999/12/06 12:03:45 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.22 1999/12/07 11:42:54 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 | */ |
@@ -38,9 +38,6 @@ static lua_State *newstate_aux (int stacksize, int put_builtin) { | |||
38 | L->Mbuffnext = 0; | 38 | L->Mbuffnext = 0; |
39 | L->Cblocks = NULL; | 39 | L->Cblocks = NULL; |
40 | L->numCblocks = 0; | 40 | L->numCblocks = 0; |
41 | L->debug = 0; | ||
42 | L->callhook = NULL; | ||
43 | L->linehook = NULL; | ||
44 | L->rootproto = NULL; | 41 | L->rootproto = NULL; |
45 | L->rootcl = NULL; | 42 | L->rootcl = NULL; |
46 | L->rootglobal = NULL; | 43 | L->rootglobal = NULL; |
@@ -51,6 +48,10 @@ static lua_State *newstate_aux (int stacksize, int put_builtin) { | |||
51 | L->refFree = NONEXT; | 48 | L->refFree = NONEXT; |
52 | L->nblocks = 0; | 49 | L->nblocks = 0; |
53 | L->GCthreshold = MAX_INT; /* to avoid GC during pre-definitions */ | 50 | L->GCthreshold = MAX_INT; /* to avoid GC during pre-definitions */ |
51 | L->debug = 0; | ||
52 | L->callhook = NULL; | ||
53 | L->linehook = NULL; | ||
54 | L->allowhooks = 1; | ||
54 | luaD_init(L, stacksize); | 55 | luaD_init(L, stacksize); |
55 | luaS_init(L); | 56 | luaS_init(L); |
56 | luaX_init(L); | 57 | luaX_init(L); |