summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-08-01 22:15:18 -0600
committerKarl Williamson <khw@cpan.org>2015-09-04 10:21:18 -0600
commit5d5376e2386766d4ac1dcc4bcb68ace29c02b551 (patch)
treed72ce8965465a0143e1ca20ebc2747d888b6a674 /handy.h
parent5352a76315308cf38aae6f4e6f20f967d5c88300 (diff)
downloadperl-5d5376e2386766d4ac1dcc4bcb68ace29c02b551.tar.gz
Change EBCDIC macro definition
This changes the definition of isUTF8_POSSIBLY_PROBLEMATIC() on EBCDIC platforms to use PL_charclass[] instead of PL_e2a[]. The new array is more likely to be in the memory cache.
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/handy.h b/handy.h
index 6691e3ff76..031850492c 100644
--- a/handy.h
+++ b/handy.h
@@ -965,10 +965,11 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc
/* This next group is only used on EBCDIC platforms, so theoretically could be
* shared with something entirely different that's only on ASCII platforms */
-# define _CC_UTF8_IS_START 29
-# define _CC_UTF8_IS_DOWNGRADEABLE_START 30
-# define _CC_UTF8_IS_CONTINUATION 31
-/* Unused: 24-28
+# define _CC_UTF8_START_BYTE_IS_FOR_AT_LEAST_SURROGATE 28
+# define _CC_UTF8_IS_START 29
+# define _CC_UTF8_IS_DOWNGRADEABLE_START 30
+# define _CC_UTF8_IS_CONTINUATION 31
+/* Unused: 24-27
* If more bits are needed, one could add a second word for non-64bit
* QUAD_IS_INT systems, using some #ifdefs to distinguish between having a 2nd
* word or not. The IS_IN_SOME_FOLD bit is the most easily expendable, as it