summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-09-12 13:59:13 -0600
committerKarl Williamson <khw@cpan.org>2014-09-29 11:07:39 -0600
commit32f62247ca81d31e1ed69dd4be73c90f5184ff47 (patch)
tree868f9e5930e8673a5dbc50554e6824920e553fcc /regexp.h
parent1d32d911228f87e28c3611f90fd3274717ee6b68 (diff)
downloadperl-32f62247ca81d31e1ed69dd4be73c90f5184ff47.tar.gz
regexp.h: Define flag bit directly, not indirectly
This #defined a symbol then did a compile time check that it was the same as another symbol. This commit simply defines it as the other symbol directly, and moves it to above the other definitions, which it no longer is part of. This prepares for the next commit.
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/regexp.h b/regexp.h
index cf21c39e71..9cb2a8d3c5 100644
--- a/regexp.h
+++ b/regexp.h
@@ -341,19 +341,16 @@ and check for NULL.
*
*/
-/* Leave some space, so future bit allocations can go either in the shared or
- * unshared area without affecting binary compatibility */
-#define RXf_BASE_SHIFT (_RXf_PMf_SHIFT_NEXT)
-
/*
Set in Perl_pmruntime if op_flags & OPf_SPECIAL, i.e. split. Will
be used by regex engines to check whether they should set
RXf_SKIPWHITE
*/
-#define RXf_SPLIT (1<<(RXf_BASE_SHIFT-1))
-#if RXf_SPLIT != RXf_PMf_SPLIT
-# error "RXf_SPLIT does not match RXf_PMf_SPLIT"
-#endif
+#define RXf_SPLIT RXf_PMf_SPLIT
+
+/* Leave some space, so future bit allocations can go either in the shared or
+ * unshared area without affecting binary compatibility */
+#define RXf_BASE_SHIFT (_RXf_PMf_SHIFT_NEXT)
/* Unused +0 - +6 */