summaryrefslogtreecommitdiff
path: root/unicode_constants.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-06-20 17:20:46 -0600
committerKarl Williamson <khw@cpan.org>2015-07-28 22:15:52 -0600
commit4b4853d16345f6e2c9f1778b427e272e196a86ed (patch)
treee1ee10707b55dfd37d40f38cc1c08d65d2ce7cc2 /unicode_constants.h
parentbc0c431d24db5d53336b0cf45c467a04034775da (diff)
downloadperl-4b4853d16345f6e2c9f1778b427e272e196a86ed.tar.gz
regen/unicode_constants.pl: Generate #defines giving which Unicode version
Future commits will want to take different actions depending on which Unicode version is being used.
Diffstat (limited to 'unicode_constants.h')
-rw-r--r--unicode_constants.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/unicode_constants.h b/unicode_constants.h
index 7da4eb3a48..bf93f54eb5 100644
--- a/unicode_constants.h
+++ b/unicode_constants.h
@@ -8,10 +8,11 @@
#ifndef H_UNICODE_CONSTANTS /* Guard against nested #includes */
#define H_UNICODE_CONSTANTS 1
-/* This file contains #defines for various Unicode code points. The values
- * the macros expand to are the native Unicode code point, or all or portions
- * of the UTF-8 encoding for the code point. In the former case, the macro
- * name has the suffix "_NATIVE"; otherwise, the suffix "_UTF8".
+/* This file contains #defines for the version of Unicode being used and
+ * various Unicode code points. The values the code point macros expand to
+ * are the native Unicode code point, or all or portions of the UTF-8 encoding
+ * for the code point. In the former case, the macro name has the suffix
+ * "_NATIVE"; otherwise, the suffix "_UTF8".
*
* The macros that have the suffix "_UTF8" may have further suffixes, as
* follows:
@@ -20,6 +21,10 @@
* "_TAIL" if instead it represents all but the first byte. This, and
* with no additional suffix are both string constants */
+#define UNICODE_MAJOR_VERSION 8
+#define UNICODE_DOT_VERSION 0
+#define UNICODE_DOT_DOT_VERSION 0
+
#if 'A' == 65 /* ASCII/Latin1 */
# define LATIN_SMALL_LETTER_LONG_S_UTF8 "\xC5\xBF" /* U+017F */