summaryrefslogtreecommitdiff
path: root/regcomp.h
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.h
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.h')
-rw-r--r--regcomp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/regcomp.h b/regcomp.h
index 832ed3e542..3c1e5f6cec 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -145,8 +145,8 @@
#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 )
+#define PREGf_ANCH (PREGf_ANCH_SBOL | PREGf_ANCH_GPOS | \
+ PREGf_ANCH_MBOL | PREGf_ANCH_BOL )
/* this is where the old regcomp.h started */