diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-17 14:27:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-17 14:27:49 -0300 |
commit | 9aec500a2691d2b13c307d143868c8a4fab33220 (patch) | |
tree | e19555c9cf41f0d0b2e1d2d2de6571380a695d56 /lgc.h | |
parent | 5a9cc57a5ef75a28cd887715175a5a18db58616e (diff) | |
download | lua-9aec500a2691d2b13c307d143868c8a4fab33220.tar.gz lua-9aec500a2691d2b13c307d143868c8a4fab33220.tar.bz2 lua-9aec500a2691d2b13c307d143868c8a4fab33220.zip |
no need for field 'gch' anymore
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.h,v 2.81 2014/02/18 13:46:26 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 2.82 2014/03/19 18:51:16 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 | */ |
@@ -84,19 +84,19 @@ | |||
84 | #define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT) | 84 | #define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT) |
85 | 85 | ||
86 | 86 | ||
87 | #define iswhite(x) testbits((x)->gch.marked, WHITEBITS) | 87 | #define iswhite(x) testbits((x)->marked, WHITEBITS) |
88 | #define isblack(x) testbit((x)->gch.marked, BLACKBIT) | 88 | #define isblack(x) testbit((x)->marked, BLACKBIT) |
89 | #define isgray(x) /* neither white nor black */ \ | 89 | #define isgray(x) /* neither white nor black */ \ |
90 | (!testbits((x)->gch.marked, WHITEBITS | bitmask(BLACKBIT))) | 90 | (!testbits((x)->marked, WHITEBITS | bitmask(BLACKBIT))) |
91 | 91 | ||
92 | #define tofinalize(x) testbit((x)->gch.marked, FINALIZEDBIT) | 92 | #define tofinalize(x) testbit((x)->marked, FINALIZEDBIT) |
93 | 93 | ||
94 | #define otherwhite(g) ((g)->currentwhite ^ WHITEBITS) | 94 | #define otherwhite(g) ((g)->currentwhite ^ WHITEBITS) |
95 | #define isdeadm(ow,m) (!(((m) ^ WHITEBITS) & (ow))) | 95 | #define isdeadm(ow,m) (!(((m) ^ WHITEBITS) & (ow))) |
96 | #define isdead(g,v) isdeadm(otherwhite(g), (v)->gch.marked) | 96 | #define isdead(g,v) isdeadm(otherwhite(g), (v)->marked) |
97 | 97 | ||
98 | #define changewhite(x) ((x)->gch.marked ^= WHITEBITS) | 98 | #define changewhite(x) ((x)->marked ^= WHITEBITS) |
99 | #define gray2black(x) l_setbit((x)->gch.marked, BLACKBIT) | 99 | #define gray2black(x) l_setbit((x)->marked, BLACKBIT) |
100 | 100 | ||
101 | #define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) | 101 | #define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) |
102 | 102 | ||