summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-12-10 12:27:19 -0700
committerKarl Williamson <khw@cpan.org>2016-12-23 16:48:35 -0700
commitf180b2926a9378db829862d88921feefe2460d35 (patch)
tree142ee4fa7e5fd73f5f8627e293d069869abfa701 /utf8.h
parentc496ba27a3e2f56b1cc186e5c5254d4004f89ffc (diff)
downloadperl-f180b2926a9378db829862d88921feefe2460d35.tar.gz
utf8.h: Renumber flag bits
This creates a gap that will be filled by future commits
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/utf8.h b/utf8.h
index 556803958f..3da10e055c 100644
--- a/utf8.h
+++ b/utf8.h
@@ -743,33 +743,33 @@ case any call to string overloading updates the internal UTF-8 encoding flag.
#define UTF8_GOT_LONG UTF8_ALLOW_LONG
/* Currently no way to allow overflow */
-#define UTF8_GOT_OVERFLOW 0x0020
+#define UTF8_GOT_OVERFLOW 0x0080
-#define UTF8_DISALLOW_SURROGATE 0x0040 /* Unicode surrogates */
+#define UTF8_DISALLOW_SURROGATE 0x0100 /* Unicode surrogates */
#define UTF8_GOT_SURROGATE UTF8_DISALLOW_SURROGATE
-#define UTF8_WARN_SURROGATE 0x0080
+#define UTF8_WARN_SURROGATE 0x0200
-#define UTF8_DISALLOW_NONCHAR 0x0100 /* Unicode non-character */
+#define UTF8_DISALLOW_NONCHAR 0x0400 /* Unicode non-character */
#define UTF8_GOT_NONCHAR UTF8_DISALLOW_NONCHAR
-#define UTF8_WARN_NONCHAR 0x0200 /* code points */
+#define UTF8_WARN_NONCHAR 0x0800 /* code points */
-#define UTF8_DISALLOW_SUPER 0x0400 /* Super-set of Unicode: code */
+#define UTF8_DISALLOW_SUPER 0x1000 /* Super-set of Unicode: code */
#define UTF8_GOT_SUPER UTF8_DISALLOW_SUPER
-#define UTF8_WARN_SUPER 0x0800 /* points above the legal max */
+#define UTF8_WARN_SUPER 0x2000 /* points above the legal max */
/* Code points which never were part of the original UTF-8 standard, which only
* went up to 2 ** 31 - 1. Note that these all overflow a signed 32-bit word,
* The first byte of these code points is FE or FF on ASCII platforms. If the
* first byte is FF, it will overflow a 32-bit word. */
-#define UTF8_DISALLOW_ABOVE_31_BIT 0x1000
+#define UTF8_DISALLOW_ABOVE_31_BIT 0x4000
#define UTF8_GOT_ABOVE_31_BIT UTF8_DISALLOW_ABOVE_31_BIT
-#define UTF8_WARN_ABOVE_31_BIT 0x2000
+#define UTF8_WARN_ABOVE_31_BIT 0x8000
/* For back compat, these old names are misleading for UTF_EBCDIC */
#define UTF8_DISALLOW_FE_FF UTF8_DISALLOW_ABOVE_31_BIT
#define UTF8_WARN_FE_FF UTF8_WARN_ABOVE_31_BIT
-#define UTF8_CHECK_ONLY 0x4000
+#define UTF8_CHECK_ONLY 0x10000
/* For backwards source compatibility. They do nothing, as the default now
* includes what they used to mean. The first one's meaning was to allow the