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