summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-03-27 15:56:30 -0600
committerKarl Williamson <khw@cpan.org>2018-03-31 15:36:46 -0600
commit58a3ba2c60c551bd0f1655ca575d700688421a8c (patch)
tree7003fc7ed7ef1126ddad3613cb1e144b0be5f0b4 /handy.h
parent9e71ecc3058240ecb03bef0a24a00a635bd8e8f0 (diff)
downloadperl-58a3ba2c60c551bd0f1655ca575d700688421a8c.tar.gz
Remove obsolete variables
These were for when some of the Posix character classes were implemented as swashes, which is no longer the case, so these can be removed.
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/handy.h b/handy.h
index b098d510ee..9ba05de8d3 100644
--- a/handy.h
+++ b/handy.h
@@ -1125,7 +1125,13 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc
*
* The first group of these is ordered in what I (khw) estimate to be the
* frequency of their use. This gives a slight edge to exiting a loop earlier
- * (in reginclass() in regexec.c) */
+ * (in reginclass() in regexec.c). Except \v should be last, as it isn't a
+ * real Posix character class, and some (small) inefficiencies in regular
+ * expression handling would be introduced by putting it in the middle of those
+ * that are. Also, cntrl and ascii come after the others as it may be useful
+ * to group these which have no members that match above Latin1, (or above
+ * ASCII in the latter case) */
+
# define _CC_WORDCHAR 0 /* \w and [:word:] */
# define _CC_DIGIT 1 /* \d and [:digit:] */
# define _CC_ALPHA 2 /* [:alpha:] */
@@ -1136,17 +1142,6 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc
# define _CC_ALPHANUMERIC 7 /* [:alnum:] */
# define _CC_GRAPH 8 /* [:graph:] */
# define _CC_CASED 9 /* [:lower:] or [:upper:] under /i */
-
-#define _FIRST_NON_SWASH_CC 10
-/* The character classes above are implemented with swashes. The second group
- * (just below) contains the ones implemented without. These are also sorted
- * in rough order of the frequency of their use, except that \v should be last,
- * as it isn't a real Posix character class, and some (small) inefficiencies in
- * regular expression handling would be introduced by putting it in the middle
- * of those that are. Also, cntrl and ascii come after the others as it may be
- * useful to group these which have no members that match above Latin1, (or
- * above ASCII in the latter case) */
-
# define _CC_SPACE 10 /* \s, [:space:] */
# define _CC_PSXSPC _CC_SPACE /* XXX Temporary, can be removed
when the deprecated isFOO_utf8()
@@ -1213,7 +1208,6 @@ typedef enum {
} _char_class_number;
#endif
-#define POSIX_SWASH_COUNT _FIRST_NON_SWASH_CC
#define POSIX_CC_COUNT (_HIGHEST_REGCOMP_DOT_H_SYNC + 1)
START_EXTERN_C