summaryrefslogtreecommitdiff
path: root/regcomp.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 /regcomp.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 'regcomp.h')
-rw-r--r--regcomp.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/regcomp.h b/regcomp.h
index a5f04fa8f8..7a430ebc54 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -137,9 +137,16 @@
/* these used to be extflags, but are now intflags */
#define PREGf_NOSCAN 0x00000040
#define PREGf_CANY_SEEN 0x00000080
-#define PREGf_GPOS_SEEN 0x00000100
-#define PREGf_GPOS_FLOAT 0x00000200
+#define PREGf_GPOS_SEEN 0x00000100
+#define PREGf_GPOS_FLOAT 0x00000200
+#define PREGf_ANCH_BOL 0x00000400
+#define PREGf_ANCH_MBOL 0x00000800
+#define PREGf_ANCH_SBOL 0x00001000
+#define PREGf_ANCH_GPOS 0x00002000
+
+#define PREGf_ANCH_SINGLE ( PREGf_ANCH_SBOL | PREGf_ANCH_GPOS )
+#define PREGf_ANCH ( PREGf_ANCH_SINGLE | PREGf_ANCH_MBOL | PREGf_ANCH_BOL )
/* this is where the old regcomp.h started */