diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-29 15:11:04 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-12-29 15:11:04 +0000 |
commit | 14f3b9f2b06052c35a95062569fb2799771d1e2b (patch) | |
tree | efcd2f9d5d32c632dcef20f56a1e4dfc8d6d6e96 /regexp.h | |
parent | c0bacbefa7e93e425666c0c5f655c48e3ae97edf (diff) | |
download | perl-14f3b9f2b06052c35a95062569fb2799771d1e2b.tar.gz |
The position of the modifier flag bits is actually encoded by a right
shift 12 in two places, so replace that magic number with a macro
RXf_PMf_STD_PMMOD_SHIFT defined adjacent to the flags it interacts
with.
p4raw-id: //depot/perl@32774
Diffstat (limited to 'regexp.h')
-rw-r--r-- | regexp.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -255,6 +255,7 @@ and check for NULL. #define RXf_PMf_EXTENDED 0x00008000 /* /x */ #define RXf_PMf_KEEPCOPY 0x00010000 /* /p */ /* these flags are transfered from the PMOP->op_pmflags member during compilation */ +#define RXf_PMf_STD_PMMOD_SHIFT 12 #define RXf_PMf_STD_PMMOD (RXf_PMf_MULTILINE|RXf_PMf_SINGLELINE|RXf_PMf_FOLD|RXf_PMf_EXTENDED) #define RXf_PMf_COMPILETIME (RXf_PMf_MULTILINE|RXf_PMf_SINGLELINE|RXf_PMf_LOCALE|RXf_PMf_FOLD|RXf_PMf_EXTENDED|RXf_PMf_KEEPCOPY) |