diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-23 11:58:02 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-23 11:58:02 -0200 |
commit | e5743adb21c295e9903c394096c6f3737fb6dec4 (patch) | |
tree | e7eb7e12615bd9d4eba5c2b8956bc09f416cd361 /lgc.c | |
parent | 514783de9d6cd538d1a51aa8979b7763132730ac (diff) | |
download | lua-e5743adb21c295e9903c394096c6f3737fb6dec4.tar.gz lua-e5743adb21c295e9903c394096c6f3737fb6dec4.tar.bz2 lua-e5743adb21c295e9903c394096c6f3737fb6dec4.zip |
macros `key', `val', and `node' don't need the state
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 1.31 1999/11/10 15:40:46 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 1.32 1999/11/22 13:12:07 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 | */ |
@@ -54,8 +54,8 @@ static void hashmark (lua_State *L, Hash *h) { | |||
54 | int i; | 54 | int i; |
55 | h->marked = 1; | 55 | h->marked = 1; |
56 | for (i=h->size-1; i>=0; i--) { | 56 | for (i=h->size-1; i>=0; i--) { |
57 | Node *n = node(L, h,i); | 57 | Node *n = node(h,i); |
58 | if (ttype(key(L, n)) != LUA_T_NIL) { | 58 | if (ttype(key(n)) != LUA_T_NIL) { |
59 | markobject(L, &n->key); | 59 | markobject(L, &n->key); |
60 | markobject(L, &n->val); | 60 | markobject(L, &n->val); |
61 | } | 61 | } |