diff options
author | Karl Williamson <khw@cpan.org> | 2014-09-12 13:59:13 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2014-09-29 11:07:39 -0600 |
commit | 32f62247ca81d31e1ed69dd4be73c90f5184ff47 (patch) | |
tree | 868f9e5930e8673a5dbc50554e6824920e553fcc /regexp.h | |
parent | 1d32d911228f87e28c3611f90fd3274717ee6b68 (diff) | |
download | perl-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.h | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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 */ |