summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-06-14 04:45:10 -0600
committerKarl Williamson <khw@cpan.org>2021-08-07 05:14:43 -0600
commit788cdc671aaa395bf2ca2e23f659513cf6193f49 (patch)
treeefa33497281b48f3bee9f8c2e89cf67d529b5c50 /utf8.c
parent03a8ddc0378fe9958d955ac7deffdfc293830b54 (diff)
downloadperl-788cdc671aaa395bf2ca2e23f659513cf6193f49.tar.gz
utf8.h: Add new #define for extended length UTF-8
The previous commit added a convenient place to create a symbol to indicate that the UTF-8 on this platform includes Perl's nearly-double length extension. The platforms this isn't needed on are 32-bit ASCII ones. This symbol allows removing one place where EBCDIC need be considered, and future commits will use it as well.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index b4ef2acd8e..3e4215b8a5 100644
--- a/utf8.c
+++ b/utf8.c
@@ -894,7 +894,7 @@ S_does_utf8_overflow(const U8 * const s,
# endif
#endif
-#if ! defined(UV_IS_QUAD) && ! defined(EBCDIC)
+#ifndef HAS_EXTRA_LONG_UTF8
/* On 32 bit ASCII machines, many overlongs that start with FF don't
* overflow */