diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-11 15:57:19 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-11 15:57:19 -0300 |
commit | b803c0600eb20f3d4e47fd7a9ceecb096abcd3c6 (patch) | |
tree | e2cb54f144b403cea94d5775bc322bcc9feb7d7d /lgc.c | |
parent | 8ac0bbf64b93a672c6f29c2d96d22d727035e9ed (diff) | |
download | lua-b803c0600eb20f3d4e47fd7a9ceecb096abcd3c6.tar.gz lua-b803c0600eb20f3d4e47fd7a9ceecb096abcd3c6.tar.bz2 lua-b803c0600eb20f3d4e47fd7a9ceecb096abcd3c6.zip |
details
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 1.48 2000/05/08 19:32:53 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 1.49 2000/05/10 16:33:20 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 | */ |
@@ -62,7 +62,7 @@ static void closuremark (lua_State *L, Closure *f) { | |||
62 | } | 62 | } |
63 | 63 | ||
64 | 64 | ||
65 | static void hashmark (lua_State *L, Hash *h) { | 65 | static void tablemark (lua_State *L, Hash *h) { |
66 | if (!h->marked) { | 66 | if (!h->marked) { |
67 | int i; | 67 | int i; |
68 | h->marked = 1; | 68 | h->marked = 1; |
@@ -99,7 +99,7 @@ static int markobject (lua_State *L, TObject *o) { | |||
99 | strmark(L, tsvalue(o)); | 99 | strmark(L, tsvalue(o)); |
100 | break; | 100 | break; |
101 | case TAG_TABLE: | 101 | case TAG_TABLE: |
102 | hashmark(L, avalue(o)); | 102 | tablemark(L, avalue(o)); |
103 | break; | 103 | break; |
104 | case TAG_LCLOSURE: case TAG_LMARK: | 104 | case TAG_LCLOSURE: case TAG_LMARK: |
105 | protomark(L, clvalue(o)->f.l); | 105 | protomark(L, clvalue(o)->f.l); |
@@ -206,7 +206,7 @@ static void collectstring (lua_State *L, int limit) { | |||
206 | 206 | ||
207 | static void markall (lua_State *L) { | 207 | static void markall (lua_State *L) { |
208 | travstack(L); /* mark stack objects */ | 208 | travstack(L); /* mark stack objects */ |
209 | hashmark(L, L->gt); /* mark global variable values and names */ | 209 | tablemark(L, L->gt); /* mark global variable values and names */ |
210 | travlock(L); /* mark locked objects */ | 210 | travlock(L); /* mark locked objects */ |
211 | luaT_travtagmethods(L, markobject); /* mark tag methods */ | 211 | luaT_travtagmethods(L, markobject); /* mark tag methods */ |
212 | } | 212 | } |