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.h | |
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.h')
-rw-r--r-- | regcomp.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |