diff options
author | Karl Williamson <khw@cpan.org> | 2014-09-12 14:40:03 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2014-09-29 11:07:39 -0600 |
commit | 1d32d911228f87e28c3611f90fd3274717ee6b68 (patch) | |
tree | 4f893c3218ad5fff5f945f22ad97d5b081017e54 | |
parent | a3b51d37a1c354a57994f7ada55bd0a05849903d (diff) | |
download | perl-1d32d911228f87e28c3611f90fd3274717ee6b68.tar.gz |
regexp.h Remove unused bit placeholders
We do not need a placeholder for unused flag bits. And removing them
makes the generated regnodes.h more accurate as to what bits are
available.
-rw-r--r-- | regexp.h | 7 | ||||
-rw-r--r-- | regnodes.h | 14 |
2 files changed, 8 insertions, 13 deletions
@@ -355,12 +355,7 @@ and check for NULL. # error "RXf_SPLIT does not match RXf_PMf_SPLIT" #endif -#define RXf_UNUSED0 (1<<(RXf_BASE_SHIFT+0)) -#define RXf_UNUSED1 (1<<(RXf_BASE_SHIFT+1)) -#define RXf_UNUSED2 (1<<(RXf_BASE_SHIFT+2)) -#define RXf_UNUSED3 (1<<(RXf_BASE_SHIFT+3)) -#define RXf_UNUSED4 (1<<(RXf_BASE_SHIFT+4)) -#define RXf_UNUSED5 (1<<(RXf_BASE_SHIFT+5)) +/* Unused +0 - +6 */ /* What we have seen */ #define RXf_NO_INPLACE_SUBST (1<<(RXf_BASE_SHIFT+7)) diff --git a/regnodes.h b/regnodes.h index 79eb829ee4..ccec4d6a7d 100644 --- a/regnodes.h +++ b/regnodes.h @@ -632,7 +632,7 @@ EXTCONST char * const PL_reg_name[] = { EXTCONST char * PL_reg_extflags_name[]; #else EXTCONST char * const PL_reg_extflags_name[] = { - /* Bits in extflags defined: 11111111111111110111111111111111 */ + /* Bits in extflags defined: 11111111111111110000000111111111 */ "MULTILINE", /* 0x00000001 */ "SINGLELINE", /* 0x00000002 */ "FOLD", /* 0x00000004 */ @@ -642,12 +642,12 @@ EXTCONST char * const PL_reg_extflags_name[] = { "CHARSET1", /* 0x00000040 : "CHARSET" - 0x000000e0 */ "CHARSET2", /* 0x00000080 : "CHARSET" - 0x000000e0 */ "SPLIT", /* 0x00000100 */ - "UNUSED0", /* 0x00000200 */ - "UNUSED1", /* 0x00000400 */ - "UNUSED2", /* 0x00000800 */ - "UNUSED3", /* 0x00001000 */ - "UNUSED4", /* 0x00002000 */ - "UNUSED5", /* 0x00004000 */ + "UNUSED_BIT_9", /* 0x00000200 */ + "UNUSED_BIT_10", /* 0x00000400 */ + "UNUSED_BIT_11", /* 0x00000800 */ + "UNUSED_BIT_12", /* 0x00001000 */ + "UNUSED_BIT_13", /* 0x00002000 */ + "UNUSED_BIT_14", /* 0x00004000 */ "UNUSED_BIT_15", /* 0x00008000 */ "NO_INPLACE_SUBST", /* 0x00010000 */ "EVAL_SEEN", /* 0x00020000 */ |