diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-29 11:49:09 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-12-29 11:49:09 +0000 |
commit | a1cf41cd41cfa3d3c737acde06e0d3bbd02dd08d (patch) | |
tree | d68ef962ad9f90c392193f167f6498bdb56bfe5f | |
parent | 866c78d1cf6feeffe34601c244c137d8b30ec2e4 (diff) | |
download | perl-a1cf41cd41cfa3d3c737acde06e0d3bbd02dd08d.tar.gz |
Note to future self about moving the regexp flag bits around.
p4raw-id: //depot/perl@32759
-rw-r--r-- | op.h | 3 | ||||
-rw-r--r-- | regexp.h | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -367,7 +367,8 @@ struct pmop { #define PMf_EVAL 0x0400 /* evaluating replacement as expr */ /* The following flags have exact equivalents in regcomp.h with the prefix RXf_ - * which are stored in the regexp->extflags member. + * which are stored in the regexp->extflags member. If you change them here, + * you have to change them there, and vice versa. */ #define PMf_LOCALE 0x00800 /* use locale for character types */ #define PMf_MULTILINE 0x01000 /* assume multiple lines */ @@ -245,7 +245,9 @@ and check for NULL. #define RXf_WHITE 0x00000400 /* Pattern is /\s+/ */ #define RXf_NULL 0x40000000 /* Pattern is // */ -/* 0x1F800 of extflags is used by (RXf_)PMf_COMPILETIME */ +/* 0x1F800 of extflags is used by (RXf_)PMf_COMPILETIME + * If you change these you need to change the equivalent flags in op.h, and + * vice versa. */ #define RXf_PMf_LOCALE 0x00000800 /* use locale */ #define RXf_PMf_MULTILINE 0x00001000 /* /m */ #define RXf_PMf_SINGLELINE 0x00002000 /* /s */ |