diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-09-12 10:57:54 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-09-26 11:49:46 -0600 |
commit | 8ebfc29a8e2bb27462b73f5459f31ca6287da41f (patch) | |
tree | 5d87b55a03a690db0a626d6a3f1e5869217bd7fd /regcomp.h | |
parent | 963df1c93d511b0f1b6c15ae32dae824c66183ba (diff) | |
download | perl-8ebfc29a8e2bb27462b73f5459f31ca6287da41f.tar.gz |
regcomp.c: Add a less confusing #define alias
ALNUM (meaning \w) is too close to ALNUMC ([[:alnum:]]) for comfort
Diffstat (limited to 'regcomp.h')
-rw-r--r-- | regcomp.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -387,8 +387,8 @@ struct regnode_charclass_class { /* Should be synchronized with a table in regprop() */ /* 2n should be the normal one, paired with its complement at 2n+1 */ -#define ANYOF_ALNUM ((_CC_WORDCHAR) * 2) /* \w, PL_utf8_alnum, utf8::IsWord, ALNUM */ -#define ANYOF_NALNUM ((ANYOF_ALNUM) + 1) +#define ANYOF_WORDCHAR ((_CC_WORDCHAR) * 2) /* \w, PL_utf8_alnum, utf8::IsWord, ALNUM */ +#define ANYOF_NWORDCHAR ((ANYOF_WORDCHAR) + 1) #define ANYOF_SPACE ((_CC_SPACE) * 2) /* \s */ #define ANYOF_NSPACE ((ANYOF_SPACE) + 1) #define ANYOF_DIGIT ((_CC_DIGIT) * 2) /* \d */ @@ -437,6 +437,8 @@ struct regnode_charclass_class { #define ANYOF_NALNUML ANYOF_NALNUM #define ANYOF_SPACEL ANYOF_SPACE #define ANYOF_NSPACEL ANYOF_NSPACE +#define ANYOF_ALNUM ANYOF_WORDCHAR +#define ANYOF_NALNUM ANYOF_NWORDCHAR /* Utility macros for the bitmap and classes of ANYOF */ |