diff options
author | Yves Orton <yves.orton@booking.com> | 2014-01-31 04:43:06 +0800 |
---|---|---|
committer | Yves Orton <yves.orton@booking.com> | 2014-01-31 04:43:06 +0800 |
commit | 8e1490eec69ee19f7e1c851a5082c201cda30448 (patch) | |
tree | 17cf727a805df769db5c26787d098cc304bbf0e8 /regcomp.h | |
parent | 5e11cd6399d690478e46778b19191fe65f8cf871 (diff) | |
download | perl-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.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 */ |