diff options
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.11 1999/05/11 14:19:32 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.12 1999/05/11 20:08:20 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 | */ |
@@ -20,8 +20,7 @@ | |||
20 | lua_State *lua_state = NULL; | 20 | lua_State *lua_state = NULL; |
21 | 21 | ||
22 | 22 | ||
23 | void lua_open (void) | 23 | void lua_open (void) { |
24 | { | ||
25 | if (lua_state) return; | 24 | if (lua_state) return; |
26 | lua_state = luaM_new(lua_State); | 25 | lua_state = luaM_new(lua_State); |
27 | L->Cstack.base = 0; | 26 | L->Cstack.base = 0; |
@@ -58,8 +57,7 @@ void lua_open (void) | |||
58 | } | 57 | } |
59 | 58 | ||
60 | 59 | ||
61 | void lua_close (void) | 60 | void lua_close (void) { |
62 | { | ||
63 | TaggedString *alludata = luaS_collectudata(); | 61 | TaggedString *alludata = luaS_collectudata(); |
64 | L->GCthreshold = MAX_INT; /* to avoid GC during GC */ | 62 | L->GCthreshold = MAX_INT; /* to avoid GC during GC */ |
65 | luaC_hashcallIM((Hash *)L->roottable.next); /* GC t.methods for tables */ | 63 | luaC_hashcallIM((Hash *)L->roottable.next); /* GC t.methods for tables */ |