diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-08-16 17:52:00 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-08-16 17:52:00 -0300 |
commit | c787dccd9b5c3e55547a2c4bb598c0276de65034 (patch) | |
tree | c4cdf2f7319fee48e048472a2044119f541e8da2 /lstate.c | |
parent | b44e35b773bcaa9891d80a117392911ab5f656e5 (diff) | |
download | lua-c787dccd9b5c3e55547a2c4bb598c0276de65034.tar.gz lua-c787dccd9b5c3e55547a2c4bb598c0276de65034.tar.bz2 lua-c787dccd9b5c3e55547a2c4bb598c0276de65034.zip |
"const" !!!
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 */ |