handy.h: Make clear that macro is only true in ASCII range
authorKarl Williamson <public@khwilliamson.com>
Mon, 3 Dec 2012 05:21:57 +0000 (22:21 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sun, 9 Dec 2012 17:30:01 +0000 (10:30 -0700)
I don't believe there are platforms that this is wrong on, but using the
_A suffix clearly indicates that only ASCII-range characters can match
this, like its cohort macros that surround it.

handy.h

diff --git a/handy.h b/handy.h
index 1022c01..b80a5fe 100644 (file)
--- a/handy.h
+++ b/handy.h
@@ -916,7 +916,7 @@ EXTCONST U32 PL_charclass[];
 #    ifdef HAS_ISBLANK
 #      define isBLANK_LC(c)    (isascii(c) && isblank(c))
 #    else
-#      define isBLANK_LC(c)    isBLANK(c)
+#      define isBLANK_LC(c)    isBLANK_A(c)
 #    endif
 #    define isSPACE_LC(c)      (isascii(c) && isspace(c))
 #    define isDIGIT_LC(c)      (isascii(c) && isdigit(c))