diff options
author | David Mitchell <davem@iabyn.com> | 2013-12-27 22:28:31 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2014-02-07 22:39:36 +0000 |
commit | fec6b98abcde89943ff4e8320a305e75c5824b0e (patch) | |
tree | 2e2db11d20f6f94c9ff8af9e8c5f600c157f4fbb /regcomp.c | |
parent | a5d12a4bb12ce71ab49cce848dc7c1ea4f3111f6 (diff) | |
download | perl-fec6b98abcde89943ff4e8320a305e75c5824b0e.tar.gz |
eliminate RXf_ANCH_SINGLE
This macro defines two flag bits:
#define PREGf_ANCH_SINGLE (PREGf_ANCH_SBOL|PREGf_ANCH_GPOS)
but is only used twice in core (and not on CPAN),
don't really add any value, but increases cognitive complexity.
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6957,7 +6957,7 @@ reStudy: r->check_substr = r->anchored_substr; r->check_utf8 = r->anchored_utf8; r->check_offset_min = r->check_offset_max = r->anchored_offset; - if (r->intflags & PREGf_ANCH_SINGLE) + if (r->intflags & (PREGf_ANCH_SBOL|PREGf_ANCH_GPOS)) r->intflags |= PREGf_NOSCAN; } else { |