summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-12-02 20:02:03 -0700
committerKarl Williamson <public@khwilliamson.com>2012-12-09 10:30:00 -0700
commitfeeab5a94c530ce7c446d29e3616565c85a50a35 (patch)
treeea46d85e031de17d440eb797befd16e7b111c039 /handy.h
parent69788afdc78e9aa841687a127a823dde985f002b (diff)
downloadperl-feeab5a94c530ce7c446d29e3616565c85a50a35.tar.gz
handy.h: Avoid function calls in 2 macros
There is a macro that returns the same as the function call previously used in the SPACE macro; and nothing above Latin1 can possibly match the CNTRL macro
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/handy.h b/handy.h
index 41444ab8c0..5636bcc3a8 100644
--- a/handy.h
+++ b/handy.h
@@ -962,11 +962,11 @@ EXTCONST U32 PL_charclass[];
is_uni_idfirst_lc, c)
#define isALPHA_LC_uvchr(c) _gnrc_is_LC_uvchr(isALPHA_LC, is_uni_alpha_lc, c)
#define isSPACE_LC_uvchr(c) _gnrc_is_LC_uvchr(isSPACE_LC, \
- is_uni_space_lc, c)
+ is_XPERLSPACE_cp_high, c)
#define isDIGIT_LC_uvchr(c) _gnrc_is_LC_uvchr(isDIGIT_LC, is_uni_digit_lc, c)
#define isUPPER_LC_uvchr(c) _gnrc_is_LC_uvchr(isUPPER_LC, is_uni_upper_lc, c)
#define isLOWER_LC_uvchr(c) _gnrc_is_LC_uvchr(isLOWER_LC, is_uni_lower_lc, c)
-#define isCNTRL_LC_uvchr(c) _gnrc_is_LC_uvchr(isCNTRL_LC, is_uni_cntrl_lc, c)
+#define isCNTRL_LC_uvchr(c) (c < 256 ? isCNTRL_LC(c) : 0)
#define isGRAPH_LC_uvchr(c) _gnrc_is_LC_uvchr(isGRAPH_LC, is_uni_graph_lc, c)
#define isPRINT_LC_uvchr(c) _gnrc_is_LC_uvchr(isPRINT_LC, is_uni_print_lc, c)
#define isPUNCT_LC_uvchr(c) _gnrc_is_LC_uvchr(isPUNCT_LC, is_uni_punct_lc, c)