summaryrefslogtreecommitdiff
path: root/regnodes.h
diff options
context:
space:
mode:
authorYves Orton <yves.orton@booking.com>2014-01-31 04:43:06 +0800
committerYves Orton <yves.orton@booking.com>2014-01-31 04:43:06 +0800
commit8e1490eec69ee19f7e1c851a5082c201cda30448 (patch)
tree17cf727a805df769db5c26787d098cc304bbf0e8 /regnodes.h
parent5e11cd6399d690478e46778b19191fe65f8cf871 (diff)
downloadperl-8e1490eec69ee19f7e1c851a5082c201cda30448.tar.gz
Move the RXf_ANCH flags to intflags as PREGf_ANCH_xxx and add RXf_IS_ANCHORED as a replacement
The only requirement outside of the regex engine is to identify that there is an anchor involved at all. So we move the 4 anchor flags to intflags and replace it with a single aggregate flag RXf_IS_ANCHORED in extflags. This frees up another 3 bits in extflags.
Diffstat (limited to 'regnodes.h')
-rw-r--r--regnodes.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/regnodes.h b/regnodes.h
index 9e17e88feb..088e5a6bee 100644
--- a/regnodes.h
+++ b/regnodes.h
@@ -650,16 +650,16 @@ EXTCONST char * const PL_reg_extflags_name[] = {
"CHARSET1", /* 0x00000040 : "CHARSET" - 0x000000e0 */
"CHARSET2", /* 0x00000080 : "CHARSET" - 0x000000e0 */
"SPLIT", /* 0x00000100 */
- "ANCH_BOL", /* 0x00000200 */
- "ANCH_MBOL", /* 0x00000400 */
- "ANCH_SBOL", /* 0x00000800 */
- "ANCH_GPOS", /* 0x00001000 */
- "UNUSED1", /* 0x00002000 */
- "UNUSED2", /* 0x00004000 */
+ "IS_ANCHORED", /* 0x00000200 */
+ "UNUSED1", /* 0x00000400 */
+ "UNUSED2", /* 0x00000800 */
+ "UNUSED3", /* 0x00001000 */
+ "UNUSED4", /* 0x00002000 */
+ "UNUSED5", /* 0x00004000 */
"NO_INPLACE_SUBST", /* 0x00008000 */
"EVAL_SEEN", /* 0x00010000 */
- "UNUSED3", /* 0x00020000 */
- "UNUSED4", /* 0x00040000 */
+ "UNUSED8", /* 0x00020000 */
+ "UNUSED9", /* 0x00040000 */
"CHECK_ALL", /* 0x00080000 */
"MATCH_UTF8", /* 0x00100000 */
"USE_INTUIT_NOML", /* 0x00200000 */
@@ -692,6 +692,10 @@ EXTCONST char * const PL_reg_intflags_name[] = {
"CANY_SEEN", /* 0x00000080 - PREGf_CANY_SEEN */
"GPOS_SEEN", /* 0x00000100 - PREGf_GPOS_SEEN */
"GPOS_FLOAT", /* 0x00000200 - PREGf_GPOS_FLOAT */
+ "ANCH_BOL", /* 0x00000400 - PREGf_ANCH_BOL */
+ "ANCH_MBOL", /* 0x00000800 - PREGf_ANCH_MBOL */
+ "ANCH_SBOL", /* 0x00001000 - PREGf_ANCH_SBOL */
+ "ANCH_GPOS", /* 0x00002000 - PREGf_ANCH_GPOS */
};
#endif /* DOINIT */