diff options
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 1.8 1997/11/19 17:29:23 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 1.9 1997/11/27 15:59:25 roberto Exp roberto $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -108,7 +108,7 @@ static void invalidaterefs (void) | |||
108 | 108 | ||
109 | 109 | ||
110 | 110 | ||
111 | static void hashcallIM (Hash *l) | 111 | void luaC_hashcallIM (Hash *l) |
112 | { | 112 | { |
113 | TObject t; | 113 | TObject t; |
114 | ttype(&t) = LUA_T_ARRAY; | 114 | ttype(&t) = LUA_T_ARRAY; |
@@ -119,7 +119,7 @@ static void hashcallIM (Hash *l) | |||
119 | } | 119 | } |
120 | 120 | ||
121 | 121 | ||
122 | static void strcallIM (TaggedString *l) | 122 | void luaC_strcallIM (TaggedString *l) |
123 | { | 123 | { |
124 | TObject o; | 124 | TObject o; |
125 | ttype(&o) = LUA_T_USERDATA; | 125 | ttype(&o) = LUA_T_USERDATA; |
@@ -259,8 +259,8 @@ long lua_collectgarbage (long limit) | |||
259 | freefunc = (TProtoFunc *)listcollect(&(L->rootproto)); | 259 | freefunc = (TProtoFunc *)listcollect(&(L->rootproto)); |
260 | freeclos = (Closure *)listcollect(&(L->rootcl)); | 260 | freeclos = (Closure *)listcollect(&(L->rootcl)); |
261 | L->GCthreshold *= 4; /* to avoid GC during GC */ | 261 | L->GCthreshold *= 4; /* to avoid GC during GC */ |
262 | hashcallIM(freetable); /* GC tag methods for tables */ | 262 | luaC_hashcallIM(freetable); /* GC tag methods for tables */ |
263 | strcallIM(freestr); /* GC tag methods for userdata */ | 263 | luaC_strcallIM(freestr); /* GC tag methods for userdata */ |
264 | luaD_gcIM(&luaO_nilobject); /* GC tag method for nil (signal end of GC) */ | 264 | luaD_gcIM(&luaO_nilobject); /* GC tag method for nil (signal end of GC) */ |
265 | luaH_free(freetable); | 265 | luaH_free(freetable); |
266 | luaS_free(freestr); | 266 | luaS_free(freestr); |