summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-08-16 17:52:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-08-16 17:52:00 -0300
commitc787dccd9b5c3e55547a2c4bb598c0276de65034 (patch)
treec4cdf2f7319fee48e048472a2044119f541e8da2 /lstate.c
parentb44e35b773bcaa9891d80a117392911ab5f656e5 (diff)
downloadlua-c787dccd9b5c3e55547a2c4bb598c0276de65034.tar.gz
lua-c787dccd9b5c3e55547a2c4bb598c0276de65034.tar.bz2
lua-c787dccd9b5c3e55547a2c4bb598c0276de65034.zip
"const" !!!
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lstate.c b/lstate.c
index 1a7fe22e..e5ad27bd 100644
--- a/lstate.c
+++ b/lstate.c
@@ -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 @@
20lua_State *lua_state = NULL; 20lua_State *lua_state = NULL;
21 21
22 22
23void lua_open (void) 23void 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
61void lua_close (void) 60void 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 */