summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-09-12 10:57:54 -0600
committerKarl Williamson <public@khwilliamson.com>2012-09-26 11:49:46 -0600
commit8ebfc29a8e2bb27462b73f5459f31ca6287da41f (patch)
tree5d87b55a03a690db0a626d6a3f1e5869217bd7fd /regcomp.h
parent963df1c93d511b0f1b6c15ae32dae824c66183ba (diff)
downloadperl-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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/regcomp.h b/regcomp.h
index 6eb13f2102..b54ac84042 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -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 */