]>
Commit | Line | Data |
---|---|---|
729e4ab9 A |
1 | /* |
2 | ******************************************************************************* | |
2ca993e8 | 3 | * Copyright (C) 2000-2016, International Business Machines |
729e4ab9 A |
4 | * Corporation and others. All Rights Reserved. |
5 | ******************************************************************************* | |
6 | * | |
7 | * file name: uvernum.h | |
8 | * encoding: US-ASCII | |
9 | * tab size: 8 (not used) | |
10 | * indentation:4 | |
11 | * | |
12 | * Created by: Vladimir Weinstein | |
13 | * Updated by: Steven R. Loomis | |
14 | * | |
729e4ab9 A |
15 | */ |
16 | ||
51004dcb A |
17 | /** |
18 | * \file | |
19 | * \brief C API: definitions of ICU version numbers | |
57a6839d A |
20 | * |
21 | * This file is included by uversion.h and other files. This file contains only | |
51004dcb A |
22 | * macros and definitions. The actual version numbers are defined here. |
23 | */ | |
24 | ||
25 | /* | |
26 | * IMPORTANT: When updating version, the following things need to be done: | |
27 | * source/common/unicode/uvernum.h - this file: update major, minor, | |
28 | * patchlevel, suffix, version, short version constants, namespace, | |
29 | * renaming macro, and copyright | |
30 | * | |
31 | * The following files need to be updated as well, which can be done | |
32 | * by running the UNIX makefile target 'update-windows-makefiles' in icu/source. | |
33 | * | |
34 | * | |
35 | * source/common/common.vcproj - update 'Output file name' on the link tab so | |
36 | * that it contains the new major/minor combination | |
37 | * source/i18n/i18n.vcproj - same as for the common.vcproj | |
38 | * source/layout/layout.vcproj - same as for the common.vcproj | |
39 | * source/layoutex/layoutex.vcproj - same | |
40 | * source/stubdata/stubdata.vcproj - same as for the common.vcproj | |
41 | * source/io/io.vcproj - same as for the common.vcproj | |
42 | * source/data/makedata.mak - change U_ICUDATA_NAME so that it contains | |
43 | * the new major/minor combination and the Unicode version. | |
44 | */ | |
45 | ||
729e4ab9 A |
46 | #ifndef UVERNUM_H |
47 | #define UVERNUM_H | |
48 | ||
57a6839d | 49 | /** The standard copyright notice that gets compiled into each library. |
729e4ab9 A |
50 | * This value will change in the subsequent releases of ICU |
51 | * @stable ICU 2.4 | |
52 | */ | |
53 | #define U_COPYRIGHT_STRING \ | |
2ca993e8 | 54 | " Copyright (C) 2016, International Business Machines Corporation and others. All Rights Reserved. " |
729e4ab9 | 55 | |
57a6839d | 56 | /** The current ICU major version as an integer. |
729e4ab9 A |
57 | * This value will change in the subsequent releases of ICU |
58 | * @stable ICU 2.4 | |
59 | */ | |
2ca993e8 | 60 | #define U_ICU_VERSION_MAJOR_NUM 57 |
729e4ab9 | 61 | |
57a6839d | 62 | /** The current ICU minor version as an integer. |
729e4ab9 A |
63 | * This value will change in the subsequent releases of ICU |
64 | * @stable ICU 2.6 | |
65 | */ | |
4388f060 | 66 | #define U_ICU_VERSION_MINOR_NUM 1 |
729e4ab9 | 67 | |
57a6839d | 68 | /** The current ICU patchlevel version as an integer. |
729e4ab9 A |
69 | * This value will change in the subsequent releases of ICU |
70 | * @stable ICU 2.4 | |
71 | */ | |
51004dcb | 72 | #define U_ICU_VERSION_PATCHLEVEL_NUM 0 |
729e4ab9 | 73 | |
57a6839d | 74 | /** The current ICU build level version as an integer. |
729e4ab9 A |
75 | * This value is for use by ICU clients. It defaults to 0. |
76 | * @stable ICU 4.0 | |
77 | */ | |
78 | #ifndef U_ICU_VERSION_BUILDLEVEL_NUM | |
79 | #define U_ICU_VERSION_BUILDLEVEL_NUM 0 | |
80 | #endif | |
81 | ||
57a6839d | 82 | /** Glued version suffix for renamers |
729e4ab9 A |
83 | * This value will change in the subsequent releases of ICU |
84 | * @stable ICU 2.6 | |
85 | */ | |
2ca993e8 | 86 | #define U_ICU_VERSION_SUFFIX _57 |
729e4ab9 | 87 | |
4388f060 A |
88 | /** |
89 | * \def U_DEF2_ICU_ENTRY_POINT_RENAME | |
90 | * @internal | |
91 | */ | |
92 | /** | |
93 | * \def U_DEF_ICU_ENTRY_POINT_RENAME | |
94 | * @internal | |
95 | */ | |
57a6839d | 96 | /** Glued version suffix function for renamers |
729e4ab9 A |
97 | * This value will change in the subsequent releases of ICU. |
98 | * If a custom suffix (such as matching library suffixes) is desired, this can be modified. | |
99 | * Note that if present, platform.h may contain an earlier definition of this macro. | |
4388f060 | 100 | * \def U_ICU_ENTRY_POINT_RENAME |
729e4ab9 A |
101 | * @stable ICU 4.2 |
102 | */ | |
4388f060 | 103 | |
729e4ab9 | 104 | #ifndef U_ICU_ENTRY_POINT_RENAME |
4388f060 A |
105 | #ifdef U_HAVE_LIB_SUFFIX |
106 | #define U_DEF_ICU_ENTRY_POINT_RENAME(x,y,z) x ## y ## z | |
107 | #define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y,z) U_DEF_ICU_ENTRY_POINT_RENAME(x,y,z) | |
108 | #define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX,U_LIB_SUFFIX_C_NAME) | |
109 | #else | |
110 | #define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y | |
111 | #define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y) | |
112 | #define U_ICU_ENTRY_POINT_RENAME(x) U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX) | |
113 | #endif | |
729e4ab9 A |
114 | #endif |
115 | ||
116 | /** The current ICU library version as a dotted-decimal string. The patchlevel | |
57a6839d | 117 | * only appears in this string if it non-zero. |
729e4ab9 A |
118 | * This value will change in the subsequent releases of ICU |
119 | * @stable ICU 2.4 | |
120 | */ | |
2ca993e8 | 121 | #define U_ICU_VERSION "57.1" |
729e4ab9 | 122 | |
57a6839d | 123 | /** The current ICU library major/minor version as a string without dots, for library name suffixes. |
729e4ab9 A |
124 | * This value will change in the subsequent releases of ICU |
125 | * @stable ICU 2.6 | |
126 | */ | |
2ca993e8 | 127 | #define U_ICU_VERSION_SHORT "57" |
729e4ab9 | 128 | |
4388f060 | 129 | #ifndef U_HIDE_INTERNAL_API |
729e4ab9 A |
130 | /** Data version in ICU4C. |
131 | * @internal ICU 4.4 Internal Use Only | |
132 | **/ | |
2ca993e8 | 133 | #define U_ICU_DATA_VERSION "57.1" |
4388f060 | 134 | #endif /* U_HIDE_INTERNAL_API */ |
729e4ab9 A |
135 | |
136 | /*=========================================================================== | |
137 | * ICU collation framework version information | |
138 | * Version info that can be obtained from a collator is affected by these | |
139 | * numbers in a secret and magic way. Please use collator version as whole | |
140 | *=========================================================================== | |
141 | */ | |
142 | ||
143 | /** | |
144 | * Collation runtime version (sort key generator, strcoll). | |
145 | * If the version is different, sort keys for the same string could be different. | |
146 | * This value may change in subsequent releases of ICU. | |
147 | * @stable ICU 2.4 | |
148 | */ | |
b331163b | 149 | #define UCOL_RUNTIME_VERSION 9 |
729e4ab9 A |
150 | |
151 | /** | |
152 | * Collation builder code version. | |
153 | * When this is different, the same tailoring might result | |
154 | * in assigning different collation elements to code points. | |
155 | * This value may change in subsequent releases of ICU. | |
156 | * @stable ICU 2.4 | |
157 | */ | |
57a6839d | 158 | #define UCOL_BUILDER_VERSION 9 |
729e4ab9 | 159 | |
b331163b | 160 | #ifndef U_HIDE_DEPRECATED_API |
729e4ab9 | 161 | /** |
b331163b A |
162 | * Constant 1. |
163 | * This was intended to be the version of collation tailorings, | |
164 | * but instead the tailoring data carries a version number. | |
165 | * @deprecated ICU 54 | |
729e4ab9 A |
166 | */ |
167 | #define UCOL_TAILORINGS_VERSION 1 | |
b331163b | 168 | #endif /* U_HIDE_DEPRECATED_API */ |
729e4ab9 A |
169 | |
170 | #endif |