diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-06-12 11:21:44 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-06-12 11:21:44 -0300 |
commit | 73ec04fcf3e3f7017786fbaf0a83291b22bec5c4 (patch) | |
tree | b2870a1e832fa3e013b67209592db32b611f8e5f /lstate.h | |
parent | d13a3fb070fd0ec9ec3b85f88e0fcd914aa666d3 (diff) | |
download | lua-73ec04fcf3e3f7017786fbaf0a83291b22bec5c4.tar.gz lua-73ec04fcf3e3f7017786fbaf0a83291b22bec5c4.tar.bz2 lua-73ec04fcf3e3f7017786fbaf0a83291b22bec5c4.zip |
no more 'DEADKEY'. Table traversals do not need to consider dead keys;
if the key is dead, it cannot be given to 'next'. Instead, we now
use a 'table' tag without the collectable bit, which makes it
a unique tag good enough to reserve space.
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.141 2017/05/13 13:54:47 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.142 2017/05/26 19:14:29 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -247,8 +247,7 @@ union GCUnion { | |||
247 | 247 | ||
248 | 248 | ||
249 | /* macro to convert a Lua object into a GCObject */ | 249 | /* macro to convert a Lua object into a GCObject */ |
250 | #define obj2gco(v) \ | 250 | #define obj2gco(v) (&(cast_u(v)->gc)) |
251 | check_exp(novariant((v)->tt) < LUA_TDEADKEY, (&(cast_u(v)->gc))) | ||
252 | 251 | ||
253 | 252 | ||
254 | /* actual number of total bytes allocated */ | 253 | /* actual number of total bytes allocated */ |