diff options
author | Karl Williamson <khw@cpan.org> | 2014-09-11 22:45:06 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2014-09-29 11:07:38 -0600 |
commit | a3b51d37a1c354a57994f7ada55bd0a05849903d (patch) | |
tree | dfed8ee8392fa009d824c5421d74ae2cfbcf81f2 /regexp.h | |
parent | ba474e876da44d462e1da4f95365622b59a8d402 (diff) | |
download | perl-a3b51d37a1c354a57994f7ada55bd0a05849903d.tar.gz |
regexp.h: Move regex flag bit positions.
This moves three bits to create a block of unused bits at the beginning.
The first bit had to be moved to make space for other uses that are
coming in future commits. This breaks binary compatibility, so might as
well move the other two bits so that all the unused bits are
consolidated at the beginning.
This pool of unused bits is the boundary between the bits that are
common to op.h and regexp.h (and in op_reg_common.h) and those that are
separate. It's best to have all the unused bits there, so when we need
to use one, it can be taken from either side, as needed, without us
being trapped into having an available bit, but of the wrong kind.
Diffstat (limited to 'regexp.h')
-rw-r--r-- | regexp.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -355,8 +355,7 @@ and check for NULL. # error "RXf_SPLIT does not match RXf_PMf_SPLIT" #endif -/* Do we have some sort of anchor? */ -#define RXf_IS_ANCHORED (1<<(RXf_BASE_SHIFT+0)) +#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)) @@ -364,9 +363,8 @@ and check for NULL. #define RXf_UNUSED5 (1<<(RXf_BASE_SHIFT+5)) /* What we have seen */ -#define RXf_NO_INPLACE_SUBST (1<<(RXf_BASE_SHIFT+6)) -#define RXf_EVAL_SEEN (1<<(RXf_BASE_SHIFT+7)) -#define RXf_UNUSED8 (1<<(RXf_BASE_SHIFT+8)) +#define RXf_NO_INPLACE_SUBST (1<<(RXf_BASE_SHIFT+7)) +#define RXf_EVAL_SEEN (1<<(RXf_BASE_SHIFT+8)) /* Special */ #define RXf_UNBOUNDED_QUANTIFIER_SEEN (1<<(RXf_BASE_SHIFT+9)) @@ -381,6 +379,9 @@ and check for NULL. #define RXf_INTUIT_TAIL (1<<(RXf_BASE_SHIFT+14)) #define RXf_USE_INTUIT (RXf_USE_INTUIT_NOML|RXf_USE_INTUIT_ML) +/* Do we have some sort of anchor? */ +#define RXf_IS_ANCHORED (1<<(RXf_BASE_SHIFT+15)) + /* Copy and tainted info */ #define RXf_COPY_DONE (1<<(RXf_BASE_SHIFT+16)) |