diff options
Diffstat (limited to 'ltable.h')
| -rw-r--r-- | ltable.h | 14 |
1 files changed, 12 insertions, 2 deletions
| @@ -23,8 +23,18 @@ | |||
| 23 | #define invalidateTMcache(t) ((t)->flags &= ~maskflags) | 23 | #define invalidateTMcache(t) ((t)->flags &= ~maskflags) |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | /* true when 't' is using 'dummynode' as its hash part */ | 26 | /* |
| 27 | #define isdummy(t) ((t)->lastfree == NULL) | 27 | ** Bit BITDUMMY set in 'flags' means the table is using the dummy node |
| 28 | ** for its hash part. | ||
| 29 | */ | ||
| 30 | |||
| 31 | #define BITDUMMY (1 << 6) | ||
| 32 | #define NOTBITDUMMY cast_byte(~BITDUMMY) | ||
| 33 | #define isdummy(t) ((t)->flags & BITDUMMY) | ||
| 34 | |||
| 35 | #define setnodummy(t) ((t)->flags &= NOTBITDUMMY) | ||
| 36 | #define setdummy(t) ((t)->flags |= BITDUMMY) | ||
| 37 | |||
| 28 | 38 | ||
| 29 | 39 | ||
| 30 | /* allocated size for hash nodes */ | 40 | /* allocated size for hash nodes */ |
