diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-08 15:27:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-08 15:27:13 -0300 |
commit | 8ca9534d048782af13141874e0d2fec0d0f806af (patch) | |
tree | d58ab47be12ff9d5910ffaf6222cf94bd0dff0f6 /lref.c | |
parent | 8bcf6228765e56be19feb90c8805cc2fb2223188 (diff) | |
download | lua-8ca9534d048782af13141874e0d2fec0d0f806af.tar.gz lua-8ca9534d048782af13141874e0d2fec0d0f806af.tar.bz2 lua-8ca9534d048782af13141874e0d2fec0d0f806af.zip |
access to `values' in TObject always through macros
Diffstat (limited to 'lref.c')
-rw-r--r-- | lref.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lref.c,v 1.11 2000/03/29 20:19:20 roberto Exp roberto $ | 2 | ** $Id: lref.c,v 1.12 2000/05/24 13:54:49 roberto Exp roberto $ |
3 | ** reference mechanism | 3 | ** reference mechanism |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -84,11 +84,11 @@ static int ismarked (const TObject *o) { | |||
84 | /* valid only for locked objects */ | 84 | /* valid only for locked objects */ |
85 | switch (o->ttype) { | 85 | switch (o->ttype) { |
86 | case TAG_STRING: case TAG_USERDATA: | 86 | case TAG_STRING: case TAG_USERDATA: |
87 | return o->value.ts->marked; | 87 | return tsvalue(o)->marked; |
88 | case TAG_TABLE: | 88 | case TAG_TABLE: |
89 | return o->value.a->marked; | 89 | return hvalue(o)->marked; |
90 | case TAG_LCLOSURE: case TAG_CCLOSURE: | 90 | case TAG_LCLOSURE: case TAG_CCLOSURE: |
91 | return o->value.cl->marked; | 91 | return clvalue(o)->marked; |
92 | default: /* number */ | 92 | default: /* number */ |
93 | return 1; | 93 | return 1; |
94 | } | 94 | } |