summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2010-09-23 13:45:58 -0600
committerSteffen Mueller <smueller@cpan.org>2010-09-25 11:15:30 +0200
commit56e4b61182d449fccacdf033cf641273deb4e78d (patch)
tree58bbaad3151edc1c22ff1f1f8fd9037aa537946b /handy.h
parent1a0901dbc900e43ec8a4a9d55385b089d2733473 (diff)
downloadperl-56e4b61182d449fccacdf033cf641273deb4e78d.tar.gz
handy.h: isPSXSPC() is wrong for EBCDIC
The macro was using the ASCII definition, which doesn't include NEL nor NBSP. But, libc contains the correct definition, which is usable on EBCDIC since we don't worry about locales there.
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index 00bc5e4d17..e96fa48767 100644
--- a/handy.h
+++ b/handy.h
@@ -532,7 +532,6 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc
((c) == ' ' || (c) == '\t' || (c) == '\n' || (c) =='\r' || (c) == '\f')
#define isSPACE_L1(c) (isSPACE(c) \
|| (NATIVE_TO_UNI(c) == 0x85 || NATIVE_TO_UNI(c) == 0xA0))
-#define isPSXSPC(c) (isSPACE(c) || (c) == '\v')
#define isBLANK(c) ((c) == ' ' || (c) == '\t')
#define isDIGIT(c) ((c) >= '0' && (c) <= '9')
#define isOCTAL(c) ((c) >= '0' && (c) <= '7')
@@ -545,6 +544,7 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc
# define isCNTRL(c) iscntrl(c)
# define isGRAPH(c) isgraph(c)
# define isPRINT(c) isprint(c)
+# define isPSXSPC(c) isspace(c)
# define isPUNCT(c) ispunct(c)
# define isXDIGIT(c) isxdigit(c)
# define toUPPER(c) toupper(c)
@@ -556,6 +556,7 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc
# define isCNTRL(c) ((U8) (c) < ' ' || (c) == 127)
# define isGRAPH(c) (isALNUM(c) || isPUNCT(c))
# define isPRINT(c) (((c) >= 32 && (c) < 127))
+# define isPSXSPC(c) (isSPACE(c) || (c) == '\v')
# define isPUNCT(c) (((c) >= 33 && (c) <= 47) || ((c) >= 58 && (c) <= 64) || ((c) >= 91 && (c) <= 96) || ((c) >= 123 && (c) <= 126))
# define isXDIGIT(c) (isDIGIT(c) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))