1 /*
2  * This file was automatically generated mkdeps.pl script. Don't edit.
3  */
4 
5 #ifndef __CESBI_H__
6 #define __CESBI_H__
7 
8 #include "../lib/encnames.h"
9 #include "../lib/ucsconv.h"
10 
11 /*
12  * Enable CES converter if correspondent encoding is requested.
13  * Defining ICONV_TO_UCS_CES_XXX macro or ICONV_FROM_UCS_CES_XXX
14  * macro is needed to enable "XXX encoding -> UCS" or "UCS -> XXX encoding"
15  * part of UCS-based CES converter.
16  */
17 #if defined (_ICONV_FROM_ENCODING_EUC_JP) \
18  || defined (_ICONV_FROM_ENCODING_EUC_KR) \
19  || defined (_ICONV_FROM_ENCODING_EUC_TW)
20 #  define ICONV_TO_UCS_CES_EUC
21 #endif
22 #if defined (_ICONV_TO_ENCODING_EUC_JP) \
23  || defined (_ICONV_TO_ENCODING_EUC_KR) \
24  || defined (_ICONV_TO_ENCODING_EUC_TW)
25 #  define ICONV_FROM_UCS_CES_EUC
26 #endif
27 
28 #if defined (_ICONV_FROM_ENCODING_CP775) \
29  || defined (_ICONV_FROM_ENCODING_CP850) \
30  || defined (_ICONV_FROM_ENCODING_CP852) \
31  || defined (_ICONV_FROM_ENCODING_CP855) \
32  || defined (_ICONV_FROM_ENCODING_CP866) \
33  || defined (_ICONV_FROM_ENCODING_ISO_8859_1) \
34  || defined (_ICONV_FROM_ENCODING_ISO_8859_10) \
35  || defined (_ICONV_FROM_ENCODING_ISO_8859_11) \
36  || defined (_ICONV_FROM_ENCODING_ISO_8859_13) \
37  || defined (_ICONV_FROM_ENCODING_ISO_8859_14) \
38  || defined (_ICONV_FROM_ENCODING_ISO_8859_15) \
39  || defined (_ICONV_FROM_ENCODING_ISO_8859_2) \
40  || defined (_ICONV_FROM_ENCODING_ISO_8859_3) \
41  || defined (_ICONV_FROM_ENCODING_ISO_8859_4) \
42  || defined (_ICONV_FROM_ENCODING_ISO_8859_5) \
43  || defined (_ICONV_FROM_ENCODING_ISO_8859_6) \
44  || defined (_ICONV_FROM_ENCODING_ISO_8859_7) \
45  || defined (_ICONV_FROM_ENCODING_ISO_8859_8) \
46  || defined (_ICONV_FROM_ENCODING_ISO_8859_9) \
47  || defined (_ICONV_FROM_ENCODING_ISO_IR_111) \
48  || defined (_ICONV_FROM_ENCODING_KOI8_R) \
49  || defined (_ICONV_FROM_ENCODING_KOI8_RU) \
50  || defined (_ICONV_FROM_ENCODING_KOI8_U) \
51  || defined (_ICONV_FROM_ENCODING_KOI8_UNI) \
52  || defined (_ICONV_FROM_ENCODING_WIN_1250) \
53  || defined (_ICONV_FROM_ENCODING_WIN_1251) \
54  || defined (_ICONV_FROM_ENCODING_WIN_1252) \
55  || defined (_ICONV_FROM_ENCODING_WIN_1253) \
56  || defined (_ICONV_FROM_ENCODING_WIN_1254) \
57  || defined (_ICONV_FROM_ENCODING_WIN_1255) \
58  || defined (_ICONV_FROM_ENCODING_WIN_1256) \
59  || defined (_ICONV_FROM_ENCODING_WIN_1257) \
60  || defined (_ICONV_FROM_ENCODING_WIN_1258)
61 #  define ICONV_TO_UCS_CES_TABLE
62 #endif
63 #if defined (_ICONV_TO_ENCODING_CP775) \
64  || defined (_ICONV_TO_ENCODING_CP850) \
65  || defined (_ICONV_TO_ENCODING_CP852) \
66  || defined (_ICONV_TO_ENCODING_CP855) \
67  || defined (_ICONV_TO_ENCODING_CP866) \
68  || defined (_ICONV_TO_ENCODING_ISO_8859_1) \
69  || defined (_ICONV_TO_ENCODING_ISO_8859_10) \
70  || defined (_ICONV_TO_ENCODING_ISO_8859_11) \
71  || defined (_ICONV_TO_ENCODING_ISO_8859_13) \
72  || defined (_ICONV_TO_ENCODING_ISO_8859_14) \
73  || defined (_ICONV_TO_ENCODING_ISO_8859_15) \
74  || defined (_ICONV_TO_ENCODING_ISO_8859_2) \
75  || defined (_ICONV_TO_ENCODING_ISO_8859_3) \
76  || defined (_ICONV_TO_ENCODING_ISO_8859_4) \
77  || defined (_ICONV_TO_ENCODING_ISO_8859_5) \
78  || defined (_ICONV_TO_ENCODING_ISO_8859_6) \
79  || defined (_ICONV_TO_ENCODING_ISO_8859_7) \
80  || defined (_ICONV_TO_ENCODING_ISO_8859_8) \
81  || defined (_ICONV_TO_ENCODING_ISO_8859_9) \
82  || defined (_ICONV_TO_ENCODING_ISO_IR_111) \
83  || defined (_ICONV_TO_ENCODING_KOI8_R) \
84  || defined (_ICONV_TO_ENCODING_KOI8_RU) \
85  || defined (_ICONV_TO_ENCODING_KOI8_U) \
86  || defined (_ICONV_TO_ENCODING_KOI8_UNI) \
87  || defined (_ICONV_TO_ENCODING_WIN_1250) \
88  || defined (_ICONV_TO_ENCODING_WIN_1251) \
89  || defined (_ICONV_TO_ENCODING_WIN_1252) \
90  || defined (_ICONV_TO_ENCODING_WIN_1253) \
91  || defined (_ICONV_TO_ENCODING_WIN_1254) \
92  || defined (_ICONV_TO_ENCODING_WIN_1255) \
93  || defined (_ICONV_TO_ENCODING_WIN_1256) \
94  || defined (_ICONV_TO_ENCODING_WIN_1257) \
95  || defined (_ICONV_TO_ENCODING_WIN_1258)
96 #  define ICONV_FROM_UCS_CES_TABLE
97 #endif
98 
99 #if defined (_ICONV_FROM_ENCODING_BIG5)
100 #  define ICONV_TO_UCS_CES_TABLE_PCS
101 #endif
102 #if defined (_ICONV_TO_ENCODING_BIG5)
103 #  define ICONV_FROM_UCS_CES_TABLE_PCS
104 #endif
105 
106 #if defined (_ICONV_FROM_ENCODING_UCS_2) \
107  || defined (_ICONV_FROM_ENCODING_UCS_2BE) \
108  || defined (_ICONV_FROM_ENCODING_UCS_2LE)
109 #  define ICONV_TO_UCS_CES_UCS_2
110 #endif
111 #if defined (_ICONV_TO_ENCODING_UCS_2) \
112  || defined (_ICONV_TO_ENCODING_UCS_2BE) \
113  || defined (_ICONV_TO_ENCODING_UCS_2LE)
114 #  define ICONV_FROM_UCS_CES_UCS_2
115 #endif
116 
117 #if defined (_ICONV_FROM_ENCODING_UCS_2_INTERNAL)
118 #  define ICONV_TO_UCS_CES_UCS_2_INTERNAL
119 #endif
120 #if defined (_ICONV_TO_ENCODING_UCS_2_INTERNAL)
121 #  define ICONV_FROM_UCS_CES_UCS_2_INTERNAL
122 #endif
123 
124 #if defined (_ICONV_FROM_ENCODING_UCS_4) \
125  || defined (_ICONV_FROM_ENCODING_UCS_4BE) \
126  || defined (_ICONV_FROM_ENCODING_UCS_4LE)
127 #  define ICONV_TO_UCS_CES_UCS_4
128 #endif
129 #if defined (_ICONV_TO_ENCODING_UCS_4) \
130  || defined (_ICONV_TO_ENCODING_UCS_4BE) \
131  || defined (_ICONV_TO_ENCODING_UCS_4LE)
132 #  define ICONV_FROM_UCS_CES_UCS_4
133 #endif
134 
135 #if defined (_ICONV_FROM_ENCODING_UCS_4_INTERNAL)
136 #  define ICONV_TO_UCS_CES_UCS_4_INTERNAL
137 #endif
138 #if defined (_ICONV_TO_ENCODING_UCS_4_INTERNAL)
139 #  define ICONV_FROM_UCS_CES_UCS_4_INTERNAL
140 #endif
141 
142 #if defined (_ICONV_FROM_ENCODING_US_ASCII)
143 #  define ICONV_TO_UCS_CES_US_ASCII
144 #endif
145 #if defined (_ICONV_TO_ENCODING_US_ASCII)
146 #  define ICONV_FROM_UCS_CES_US_ASCII
147 #endif
148 
149 #if defined (_ICONV_FROM_ENCODING_UTF_16) \
150  || defined (_ICONV_FROM_ENCODING_UTF_16BE) \
151  || defined (_ICONV_FROM_ENCODING_UTF_16LE)
152 #  define ICONV_TO_UCS_CES_UTF_16
153 #endif
154 #if defined (_ICONV_TO_ENCODING_UTF_16) \
155  || defined (_ICONV_TO_ENCODING_UTF_16BE) \
156  || defined (_ICONV_TO_ENCODING_UTF_16LE)
157 #  define ICONV_FROM_UCS_CES_UTF_16
158 #endif
159 
160 #if defined (_ICONV_FROM_ENCODING_UTF_8)
161 #  define ICONV_TO_UCS_CES_UTF_8
162 #endif
163 #if defined (_ICONV_TO_ENCODING_UTF_8)
164 #  define ICONV_FROM_UCS_CES_UTF_8
165 #endif
166 
167 /*
168  * Some encodings require another encodings to be enabled.
169  * These dependencies are handled in cesdeps.h header file.
170  */
171 #include "cesdeps.h"
172 
173 /*
174  * NLS uses iconv's capabilities and require one of encodings
175  * to be enabled for internal wchar_t representation.
176  */
177 #include "../lib/iconvnls.h"
178 
179 /*
180  * Forward declarations of CES converter handlers.
181  * These handlers are actually defined in correspondent CES converter files.
182  */
183 #ifdef ICONV_TO_UCS_CES_EUC
184 extern const iconv_to_ucs_ces_handlers_t
185 _iconv_to_ucs_ces_handlers_euc;
186 #endif
187 #ifdef ICONV_FROM_UCS_CES_EUC
188 extern const iconv_from_ucs_ces_handlers_t
189 _iconv_from_ucs_ces_handlers_euc;
190 #endif
191 
192 #ifdef ICONV_TO_UCS_CES_TABLE
193 extern const iconv_to_ucs_ces_handlers_t
194 _iconv_to_ucs_ces_handlers_table;
195 #endif
196 #ifdef ICONV_FROM_UCS_CES_TABLE
197 extern const iconv_from_ucs_ces_handlers_t
198 _iconv_from_ucs_ces_handlers_table;
199 #endif
200 
201 #ifdef ICONV_TO_UCS_CES_TABLE_PCS
202 extern const iconv_to_ucs_ces_handlers_t
203 _iconv_to_ucs_ces_handlers_table_pcs;
204 #endif
205 #ifdef ICONV_FROM_UCS_CES_TABLE_PCS
206 extern const iconv_from_ucs_ces_handlers_t
207 _iconv_from_ucs_ces_handlers_table_pcs;
208 #endif
209 
210 #ifdef ICONV_TO_UCS_CES_UCS_2
211 extern const iconv_to_ucs_ces_handlers_t
212 _iconv_to_ucs_ces_handlers_ucs_2;
213 #endif
214 #ifdef ICONV_FROM_UCS_CES_UCS_2
215 extern const iconv_from_ucs_ces_handlers_t
216 _iconv_from_ucs_ces_handlers_ucs_2;
217 #endif
218 
219 #ifdef ICONV_TO_UCS_CES_UCS_2_INTERNAL
220 extern const iconv_to_ucs_ces_handlers_t
221 _iconv_to_ucs_ces_handlers_ucs_2_internal;
222 #endif
223 #ifdef ICONV_FROM_UCS_CES_UCS_2_INTERNAL
224 extern const iconv_from_ucs_ces_handlers_t
225 _iconv_from_ucs_ces_handlers_ucs_2_internal;
226 #endif
227 
228 #ifdef ICONV_TO_UCS_CES_UCS_4
229 extern const iconv_to_ucs_ces_handlers_t
230 _iconv_to_ucs_ces_handlers_ucs_4;
231 #endif
232 #ifdef ICONV_FROM_UCS_CES_UCS_4
233 extern const iconv_from_ucs_ces_handlers_t
234 _iconv_from_ucs_ces_handlers_ucs_4;
235 #endif
236 
237 #ifdef ICONV_TO_UCS_CES_UCS_4_INTERNAL
238 extern const iconv_to_ucs_ces_handlers_t
239 _iconv_to_ucs_ces_handlers_ucs_4_internal;
240 #endif
241 #ifdef ICONV_FROM_UCS_CES_UCS_4_INTERNAL
242 extern const iconv_from_ucs_ces_handlers_t
243 _iconv_from_ucs_ces_handlers_ucs_4_internal;
244 #endif
245 
246 #ifdef ICONV_TO_UCS_CES_US_ASCII
247 extern const iconv_to_ucs_ces_handlers_t
248 _iconv_to_ucs_ces_handlers_us_ascii;
249 #endif
250 #ifdef ICONV_FROM_UCS_CES_US_ASCII
251 extern const iconv_from_ucs_ces_handlers_t
252 _iconv_from_ucs_ces_handlers_us_ascii;
253 #endif
254 
255 #ifdef ICONV_TO_UCS_CES_UTF_16
256 extern const iconv_to_ucs_ces_handlers_t
257 _iconv_to_ucs_ces_handlers_utf_16;
258 #endif
259 #ifdef ICONV_FROM_UCS_CES_UTF_16
260 extern const iconv_from_ucs_ces_handlers_t
261 _iconv_from_ucs_ces_handlers_utf_16;
262 #endif
263 
264 #ifdef ICONV_TO_UCS_CES_UTF_8
265 extern const iconv_to_ucs_ces_handlers_t
266 _iconv_to_ucs_ces_handlers_utf_8;
267 #endif
268 #ifdef ICONV_FROM_UCS_CES_UTF_8
269 extern const iconv_from_ucs_ces_handlers_t
270 _iconv_from_ucs_ces_handlers_utf_8;
271 #endif
272 
273 #endif /* !__CESBI_H__ */
274 
275