mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
move macro to internal.h for documentation.
13e84d5c0a
changes enum to macro, but the flags usage information
are lost in internal.h. It should be same place with other flags
information.
This commit is contained in:
parent
4979ba38fa
commit
312879693f
2 changed files with 4 additions and 1 deletions
1
hash.c
1
hash.c
|
@ -1317,7 +1317,6 @@ iter_lev_in_ivar_set(VALUE hash, int lev)
|
|||
rb_ivar_set_internal(hash, rb_intern("hash_iter_lev"), INT2FIX(lev));
|
||||
}
|
||||
|
||||
#define RHASH_LEV_MASK ((VALUE)RHASH_LEV_MAX << RHASH_LEV_SHIFT)
|
||||
static int
|
||||
iter_lev_in_flags(VALUE hash)
|
||||
{
|
||||
|
|
|
@ -823,6 +823,10 @@ enum ruby_rhash_flags {
|
|||
RHASH_AR_TABLE_BOUND_MASK = (FL_USER8|FL_USER9|FL_USER10|FL_USER11), /* FL 8..11 */
|
||||
RHASH_AR_TABLE_BOUND_SHIFT = (FL_USHIFT+8),
|
||||
|
||||
// we can not put it in "enum" because it can exceed "int" range.
|
||||
#define RHASH_LEV_MASK (FL_USER13 | FL_USER14 | FL_USER15 | /* FL 13..19 */ \
|
||||
FL_USER16 | FL_USER17 | FL_USER18 | FL_USER19)
|
||||
|
||||
#if USE_TRANSIENT_HEAP
|
||||
RHASH_TRANSIENT_FLAG = FL_USER12, /* FL 12 */
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue