summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-09-11 22:45:06 -0600
committerKarl Williamson <khw@cpan.org>2014-09-29 11:07:38 -0600
commita3b51d37a1c354a57994f7ada55bd0a05849903d (patch)
treedfed8ee8392fa009d824c5421d74ae2cfbcf81f2 /regexp.h
parentba474e876da44d462e1da4f95365622b59a8d402 (diff)
downloadperl-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.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/regexp.h b/regexp.h
index 54bae1227d..5468f95095 100644
--- a/regexp.h
+++ b/regexp.h
@@ -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))