summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-03-24 13:14:34 -0600
committerKarl Williamson <public@khwilliamson.com>2013-08-29 09:56:04 -0600
commit843a4590a7379332295060c86a63b286b4676429 (patch)
tree0e03c27aea10b10852ea15ea52d09b4ee5cbbadc
parentd8f42585be563b859f319be6a4579343a0a6027a (diff)
downloadperl-843a4590a7379332295060c86a63b286b4676429.tar.gz
utf8.h, utfebcdic.h: Add #define
-rw-r--r--utf8.h2
-rw-r--r--utfebcdic.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index 4037a6a501..574fd7a696 100644
--- a/utf8.h
+++ b/utf8.h
@@ -266,6 +266,8 @@ Perl's extended UTF-8 means we can have start bytes up to FF.
#error UTF8_MAXBYTES must be at least 12
#endif
+#define MAX_UTF8_TWO_BYTE 0x7FF
+
#define UTF8_MAXBYTES_CASE UTF8_MAXBYTES
#endif /* EBCDIC vs ASCII */
diff --git a/utfebcdic.h b/utfebcdic.h
index 296700152e..54a3d2696e 100644
--- a/utfebcdic.h
+++ b/utfebcdic.h
@@ -750,6 +750,8 @@ END_EXTERN_C
* character occupies 5 bytes, therefore this number is 15 */
#define UTF8_MAXBYTES_CASE 15
+#define MAX_UTF8_TWO_BYTE 0x3FF
+
/*
* Local variables:
* c-indentation-style: bsd