diff options
author | Karl Williamson <khw@cpan.org> | 2018-09-20 22:21:44 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-10-20 00:09:54 -0600 |
commit | 791aaf541f8a702d973890e80d703c32899f0651 (patch) | |
tree | 31948cf1a0b815bffdee7e177244726a84689dcd /regcomp.h | |
parent | 88f063b47f3a613313ffa53c8f1981de2025d2db (diff) | |
download | perl-791aaf541f8a702d973890e80d703c32899f0651.tar.gz |
regcomp.h: Remove unused macros
I had kept these macros around for backwards compatibility. But now I
realize regcomp.h is only for core use, so no need to retain them.
Diffstat (limited to 'regcomp.h')
-rw-r--r-- | regcomp.h | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -652,16 +652,12 @@ struct regnode_ssc { #define ANYOF_BIT(c) (1U << ((c) & 7)) #define ANYOF_POSIXL_SET(p, c) (((regnode_charclass_posixl*) (p))->classflags |= (1U << (c))) -#define ANYOF_CLASS_SET(p, c) ANYOF_POSIXL_SET((p), (c)) #define ANYOF_POSIXL_CLEAR(p, c) (((regnode_charclass_posixl*) (p))->classflags &= ~ (1U <<(c))) -#define ANYOF_CLASS_CLEAR(p, c) ANYOF_POSIXL_CLEAR((p), (c)) #define ANYOF_POSIXL_TEST(p, c) (((regnode_charclass_posixl*) (p))->classflags & (1U << (c))) -#define ANYOF_CLASS_TEST(p, c) ANYOF_POSIXL_TEST((p), (c)) #define ANYOF_POSIXL_ZERO(ret) STMT_START { ((regnode_charclass_posixl*) (ret))->classflags = 0; } STMT_END -#define ANYOF_CLASS_ZERO(ret) ANYOF_POSIXL_ZERO(ret) /* Shifts a bit to get, eg. 0x4000_0000, then subtracts 1 to get 0x3FFF_FFFF */ #define ANYOF_POSIXL_SETALL(ret) STMT_START { ((regnode_charclass_posixl*) (ret))->classflags = ((1U << ((ANYOF_POSIXL_MAX) - 1))) - 1; } STMT_END |