From: Nicholas Clark Date: Sat, 29 Dec 2007 11:49:09 +0000 (+0000) Subject: Note to future self about moving the regexp flag bits around. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a1cf41cd41cfa3d3c737acde06e0d3bbd02dd08d;p=p5sagit%2Fp5-mst-13.2.git Note to future self about moving the regexp flag bits around. p4raw-id: //depot/perl@32759 --- diff --git a/op.h b/op.h index 9dda22f..bab04ca 100644 --- a/op.h +++ b/op.h @@ -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 */ diff --git a/regexp.h b/regexp.h index 623a4bb..60606a5 100644 --- a/regexp.h +++ b/regexp.h @@ -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 */