summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-12-27 22:28:31 +0000
committerDavid Mitchell <davem@iabyn.com>2014-02-07 22:39:36 +0000
commitfec6b98abcde89943ff4e8320a305e75c5824b0e (patch)
tree2e2db11d20f6f94c9ff8af9e8c5f600c157f4fbb /regcomp.c
parenta5d12a4bb12ce71ab49cce848dc7c1ea4f3111f6 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index cfc46b1d10..a6572523f8 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -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 {