1 /* 2 * This file was automatically generated mkdeps.pl script. Don't edit. 3 */ 4 5 #include <_ansi.h> 6 #include <newlib.h> 7 #include "../lib/ucsconv.h" 8 #include "cesbi.h" 9 10 /* 11 * Each CES converter provides the list of supported encodings. 12 */ 13 #if defined (ICONV_TO_UCS_CES_EUC) \ 14 || defined (ICONV_FROM_UCS_CES_EUC) 15 static const char * 16 iconv_ces_names_euc[] = 17 { 18 # if defined (_ICONV_FROM_ENCODING_EUC_JP) \ 19 || defined (_ICONV_TO_ENCODING_EUC_JP) 20 ICONV_ENCODING_EUC_JP, 21 #endif 22 # if defined (_ICONV_FROM_ENCODING_EUC_KR) \ 23 || defined (_ICONV_TO_ENCODING_EUC_KR) 24 ICONV_ENCODING_EUC_KR, 25 #endif 26 # if defined (_ICONV_FROM_ENCODING_EUC_TW) \ 27 || defined (_ICONV_TO_ENCODING_EUC_TW) 28 ICONV_ENCODING_EUC_TW, 29 #endif 30 NULL 31 }; 32 #endif 33 34 #if defined (ICONV_TO_UCS_CES_TABLE) \ 35 || defined (ICONV_FROM_UCS_CES_TABLE) 36 static const char * 37 iconv_ces_names_table[] = 38 { 39 # if defined (_ICONV_FROM_ENCODING_CP775) \ 40 || defined (_ICONV_TO_ENCODING_CP775) 41 ICONV_ENCODING_CP775, 42 #endif 43 # if defined (_ICONV_FROM_ENCODING_CP850) \ 44 || defined (_ICONV_TO_ENCODING_CP850) 45 ICONV_ENCODING_CP850, 46 #endif 47 # if defined (_ICONV_FROM_ENCODING_CP852) \ 48 || defined (_ICONV_TO_ENCODING_CP852) 49 ICONV_ENCODING_CP852, 50 #endif 51 # if defined (_ICONV_FROM_ENCODING_CP855) \ 52 || defined (_ICONV_TO_ENCODING_CP855) 53 ICONV_ENCODING_CP855, 54 #endif 55 # if defined (_ICONV_FROM_ENCODING_CP866) \ 56 || defined (_ICONV_TO_ENCODING_CP866) 57 ICONV_ENCODING_CP866, 58 #endif 59 # if defined (_ICONV_FROM_ENCODING_ISO_8859_1) \ 60 || defined (_ICONV_TO_ENCODING_ISO_8859_1) 61 ICONV_ENCODING_ISO_8859_1, 62 #endif 63 # if defined (_ICONV_FROM_ENCODING_ISO_8859_10) \ 64 || defined (_ICONV_TO_ENCODING_ISO_8859_10) 65 ICONV_ENCODING_ISO_8859_10, 66 #endif 67 # if defined (_ICONV_FROM_ENCODING_ISO_8859_11) \ 68 || defined (_ICONV_TO_ENCODING_ISO_8859_11) 69 ICONV_ENCODING_ISO_8859_11, 70 #endif 71 # if defined (_ICONV_FROM_ENCODING_ISO_8859_13) \ 72 || defined (_ICONV_TO_ENCODING_ISO_8859_13) 73 ICONV_ENCODING_ISO_8859_13, 74 #endif 75 # if defined (_ICONV_FROM_ENCODING_ISO_8859_14) \ 76 || defined (_ICONV_TO_ENCODING_ISO_8859_14) 77 ICONV_ENCODING_ISO_8859_14, 78 #endif 79 # if defined (_ICONV_FROM_ENCODING_ISO_8859_15) \ 80 || defined (_ICONV_TO_ENCODING_ISO_8859_15) 81 ICONV_ENCODING_ISO_8859_15, 82 #endif 83 # if defined (_ICONV_FROM_ENCODING_ISO_8859_2) \ 84 || defined (_ICONV_TO_ENCODING_ISO_8859_2) 85 ICONV_ENCODING_ISO_8859_2, 86 #endif 87 # if defined (_ICONV_FROM_ENCODING_ISO_8859_3) \ 88 || defined (_ICONV_TO_ENCODING_ISO_8859_3) 89 ICONV_ENCODING_ISO_8859_3, 90 #endif 91 # if defined (_ICONV_FROM_ENCODING_ISO_8859_4) \ 92 || defined (_ICONV_TO_ENCODING_ISO_8859_4) 93 ICONV_ENCODING_ISO_8859_4, 94 #endif 95 # if defined (_ICONV_FROM_ENCODING_ISO_8859_5) \ 96 || defined (_ICONV_TO_ENCODING_ISO_8859_5) 97 ICONV_ENCODING_ISO_8859_5, 98 #endif 99 # if defined (_ICONV_FROM_ENCODING_ISO_8859_6) \ 100 || defined (_ICONV_TO_ENCODING_ISO_8859_6) 101 ICONV_ENCODING_ISO_8859_6, 102 #endif 103 # if defined (_ICONV_FROM_ENCODING_ISO_8859_7) \ 104 || defined (_ICONV_TO_ENCODING_ISO_8859_7) 105 ICONV_ENCODING_ISO_8859_7, 106 #endif 107 # if defined (_ICONV_FROM_ENCODING_ISO_8859_8) \ 108 || defined (_ICONV_TO_ENCODING_ISO_8859_8) 109 ICONV_ENCODING_ISO_8859_8, 110 #endif 111 # if defined (_ICONV_FROM_ENCODING_ISO_8859_9) \ 112 || defined (_ICONV_TO_ENCODING_ISO_8859_9) 113 ICONV_ENCODING_ISO_8859_9, 114 #endif 115 # if defined (_ICONV_FROM_ENCODING_ISO_IR_111) \ 116 || defined (_ICONV_TO_ENCODING_ISO_IR_111) 117 ICONV_ENCODING_ISO_IR_111, 118 #endif 119 # if defined (_ICONV_FROM_ENCODING_KOI8_R) \ 120 || defined (_ICONV_TO_ENCODING_KOI8_R) 121 ICONV_ENCODING_KOI8_R, 122 #endif 123 # if defined (_ICONV_FROM_ENCODING_KOI8_RU) \ 124 || defined (_ICONV_TO_ENCODING_KOI8_RU) 125 ICONV_ENCODING_KOI8_RU, 126 #endif 127 # if defined (_ICONV_FROM_ENCODING_KOI8_U) \ 128 || defined (_ICONV_TO_ENCODING_KOI8_U) 129 ICONV_ENCODING_KOI8_U, 130 #endif 131 # if defined (_ICONV_FROM_ENCODING_KOI8_UNI) \ 132 || defined (_ICONV_TO_ENCODING_KOI8_UNI) 133 ICONV_ENCODING_KOI8_UNI, 134 #endif 135 # if defined (_ICONV_FROM_ENCODING_WIN_1250) \ 136 || defined (_ICONV_TO_ENCODING_WIN_1250) 137 ICONV_ENCODING_WIN_1250, 138 #endif 139 # if defined (_ICONV_FROM_ENCODING_WIN_1251) \ 140 || defined (_ICONV_TO_ENCODING_WIN_1251) 141 ICONV_ENCODING_WIN_1251, 142 #endif 143 # if defined (_ICONV_FROM_ENCODING_WIN_1252) \ 144 || defined (_ICONV_TO_ENCODING_WIN_1252) 145 ICONV_ENCODING_WIN_1252, 146 #endif 147 # if defined (_ICONV_FROM_ENCODING_WIN_1253) \ 148 || defined (_ICONV_TO_ENCODING_WIN_1253) 149 ICONV_ENCODING_WIN_1253, 150 #endif 151 # if defined (_ICONV_FROM_ENCODING_WIN_1254) \ 152 || defined (_ICONV_TO_ENCODING_WIN_1254) 153 ICONV_ENCODING_WIN_1254, 154 #endif 155 # if defined (_ICONV_FROM_ENCODING_WIN_1255) \ 156 || defined (_ICONV_TO_ENCODING_WIN_1255) 157 ICONV_ENCODING_WIN_1255, 158 #endif 159 # if defined (_ICONV_FROM_ENCODING_WIN_1256) \ 160 || defined (_ICONV_TO_ENCODING_WIN_1256) 161 ICONV_ENCODING_WIN_1256, 162 #endif 163 # if defined (_ICONV_FROM_ENCODING_WIN_1257) \ 164 || defined (_ICONV_TO_ENCODING_WIN_1257) 165 ICONV_ENCODING_WIN_1257, 166 #endif 167 # if defined (_ICONV_FROM_ENCODING_WIN_1258) \ 168 || defined (_ICONV_TO_ENCODING_WIN_1258) 169 ICONV_ENCODING_WIN_1258, 170 #endif 171 NULL 172 }; 173 #endif 174 175 #if defined (ICONV_TO_UCS_CES_TABLE_PCS) \ 176 || defined (ICONV_FROM_UCS_CES_TABLE_PCS) 177 static const char * 178 iconv_ces_names_table_pcs[] = 179 { 180 # if defined (_ICONV_FROM_ENCODING_BIG5) \ 181 || defined (_ICONV_TO_ENCODING_BIG5) 182 ICONV_ENCODING_BIG5, 183 #endif 184 NULL 185 }; 186 #endif 187 188 #if defined (ICONV_TO_UCS_CES_UCS_2) \ 189 || defined (ICONV_FROM_UCS_CES_UCS_2) 190 static const char * 191 iconv_ces_names_ucs_2[] = 192 { 193 # if defined (_ICONV_FROM_ENCODING_UCS_2) \ 194 || defined (_ICONV_TO_ENCODING_UCS_2) 195 ICONV_ENCODING_UCS_2, 196 #endif 197 # if defined (_ICONV_FROM_ENCODING_UCS_2BE) \ 198 || defined (_ICONV_TO_ENCODING_UCS_2BE) 199 ICONV_ENCODING_UCS_2BE, 200 #endif 201 # if defined (_ICONV_FROM_ENCODING_UCS_2LE) \ 202 || defined (_ICONV_TO_ENCODING_UCS_2LE) 203 ICONV_ENCODING_UCS_2LE, 204 #endif 205 NULL 206 }; 207 #endif 208 209 #if defined (ICONV_TO_UCS_CES_UCS_2_INTERNAL) \ 210 || defined (ICONV_FROM_UCS_CES_UCS_2_INTERNAL) 211 static const char * 212 iconv_ces_names_ucs_2_internal[] = 213 { 214 # if defined (_ICONV_FROM_ENCODING_UCS_2_INTERNAL) \ 215 || defined (_ICONV_TO_ENCODING_UCS_2_INTERNAL) 216 ICONV_ENCODING_UCS_2_INTERNAL, 217 #endif 218 NULL 219 }; 220 #endif 221 222 #if defined (ICONV_TO_UCS_CES_UCS_4) \ 223 || defined (ICONV_FROM_UCS_CES_UCS_4) 224 static const char * 225 iconv_ces_names_ucs_4[] = 226 { 227 # if defined (_ICONV_FROM_ENCODING_UCS_4) \ 228 || defined (_ICONV_TO_ENCODING_UCS_4) 229 ICONV_ENCODING_UCS_4, 230 #endif 231 # if defined (_ICONV_FROM_ENCODING_UCS_4BE) \ 232 || defined (_ICONV_TO_ENCODING_UCS_4BE) 233 ICONV_ENCODING_UCS_4BE, 234 #endif 235 # if defined (_ICONV_FROM_ENCODING_UCS_4LE) \ 236 || defined (_ICONV_TO_ENCODING_UCS_4LE) 237 ICONV_ENCODING_UCS_4LE, 238 #endif 239 NULL 240 }; 241 #endif 242 243 #if defined (ICONV_TO_UCS_CES_UCS_4_INTERNAL) \ 244 || defined (ICONV_FROM_UCS_CES_UCS_4_INTERNAL) 245 static const char * 246 iconv_ces_names_ucs_4_internal[] = 247 { 248 # if defined (_ICONV_FROM_ENCODING_UCS_4_INTERNAL) \ 249 || defined (_ICONV_TO_ENCODING_UCS_4_INTERNAL) 250 ICONV_ENCODING_UCS_4_INTERNAL, 251 #endif 252 NULL 253 }; 254 #endif 255 256 #if defined (ICONV_TO_UCS_CES_US_ASCII) \ 257 || defined (ICONV_FROM_UCS_CES_US_ASCII) 258 static const char * 259 iconv_ces_names_us_ascii[] = 260 { 261 # if defined (_ICONV_FROM_ENCODING_US_ASCII) \ 262 || defined (_ICONV_TO_ENCODING_US_ASCII) 263 ICONV_ENCODING_US_ASCII, 264 #endif 265 NULL 266 }; 267 #endif 268 269 #if defined (ICONV_TO_UCS_CES_UTF_16) \ 270 || defined (ICONV_FROM_UCS_CES_UTF_16) 271 static const char * 272 iconv_ces_names_utf_16[] = 273 { 274 # if defined (_ICONV_FROM_ENCODING_UTF_16) \ 275 || defined (_ICONV_TO_ENCODING_UTF_16) 276 ICONV_ENCODING_UTF_16, 277 #endif 278 # if defined (_ICONV_FROM_ENCODING_UTF_16BE) \ 279 || defined (_ICONV_TO_ENCODING_UTF_16BE) 280 ICONV_ENCODING_UTF_16BE, 281 #endif 282 # if defined (_ICONV_FROM_ENCODING_UTF_16LE) \ 283 || defined (_ICONV_TO_ENCODING_UTF_16LE) 284 ICONV_ENCODING_UTF_16LE, 285 #endif 286 NULL 287 }; 288 #endif 289 290 #if defined (ICONV_TO_UCS_CES_UTF_8) \ 291 || defined (ICONV_FROM_UCS_CES_UTF_8) 292 static const char * 293 iconv_ces_names_utf_8[] = 294 { 295 # if defined (_ICONV_FROM_ENCODING_UTF_8) \ 296 || defined (_ICONV_TO_ENCODING_UTF_8) 297 ICONV_ENCODING_UTF_8, 298 #endif 299 NULL 300 }; 301 #endif 302 303 /* 304 * The following structure contains the list of "to UCS" linked-in CES converters. 305 */ 306 const iconv_to_ucs_ces_t 307 _iconv_to_ucs_ces[] = 308 { 309 #ifdef ICONV_TO_UCS_CES_EUC 310 {(const char **)iconv_ces_names_euc, 311 &_iconv_to_ucs_ces_handlers_euc}, 312 #endif 313 #ifdef ICONV_TO_UCS_CES_TABLE 314 {(const char **)iconv_ces_names_table, 315 &_iconv_to_ucs_ces_handlers_table}, 316 #endif 317 #ifdef ICONV_TO_UCS_CES_TABLE_PCS 318 {(const char **)iconv_ces_names_table_pcs, 319 &_iconv_to_ucs_ces_handlers_table_pcs}, 320 #endif 321 #ifdef ICONV_TO_UCS_CES_UCS_2 322 {(const char **)iconv_ces_names_ucs_2, 323 &_iconv_to_ucs_ces_handlers_ucs_2}, 324 #endif 325 #ifdef ICONV_TO_UCS_CES_UCS_2_INTERNAL 326 {(const char **)iconv_ces_names_ucs_2_internal, 327 &_iconv_to_ucs_ces_handlers_ucs_2_internal}, 328 #endif 329 #ifdef ICONV_TO_UCS_CES_UCS_4 330 {(const char **)iconv_ces_names_ucs_4, 331 &_iconv_to_ucs_ces_handlers_ucs_4}, 332 #endif 333 #ifdef ICONV_TO_UCS_CES_UCS_4_INTERNAL 334 {(const char **)iconv_ces_names_ucs_4_internal, 335 &_iconv_to_ucs_ces_handlers_ucs_4_internal}, 336 #endif 337 #ifdef ICONV_TO_UCS_CES_US_ASCII 338 {(const char **)iconv_ces_names_us_ascii, 339 &_iconv_to_ucs_ces_handlers_us_ascii}, 340 #endif 341 #ifdef ICONV_TO_UCS_CES_UTF_16 342 {(const char **)iconv_ces_names_utf_16, 343 &_iconv_to_ucs_ces_handlers_utf_16}, 344 #endif 345 #ifdef ICONV_TO_UCS_CES_UTF_8 346 {(const char **)iconv_ces_names_utf_8, 347 &_iconv_to_ucs_ces_handlers_utf_8}, 348 #endif 349 {(const char **)NULL, 350 (iconv_to_ucs_ces_handlers_t *)NULL} 351 }; 352 353 /* 354 * The following structure contains the list of "from UCS" linked-in CES converters. 355 */ 356 const iconv_from_ucs_ces_t 357 _iconv_from_ucs_ces[] = 358 { 359 #ifdef ICONV_FROM_UCS_CES_EUC 360 {(const char **)iconv_ces_names_euc, 361 &_iconv_from_ucs_ces_handlers_euc}, 362 #endif 363 #ifdef ICONV_FROM_UCS_CES_TABLE 364 {(const char **)iconv_ces_names_table, 365 &_iconv_from_ucs_ces_handlers_table}, 366 #endif 367 #ifdef ICONV_FROM_UCS_CES_TABLE_PCS 368 {(const char **)iconv_ces_names_table_pcs, 369 &_iconv_from_ucs_ces_handlers_table_pcs}, 370 #endif 371 #ifdef ICONV_FROM_UCS_CES_UCS_2 372 {(const char **)iconv_ces_names_ucs_2, 373 &_iconv_from_ucs_ces_handlers_ucs_2}, 374 #endif 375 #ifdef ICONV_FROM_UCS_CES_UCS_2_INTERNAL 376 {(const char **)iconv_ces_names_ucs_2_internal, 377 &_iconv_from_ucs_ces_handlers_ucs_2_internal}, 378 #endif 379 #ifdef ICONV_FROM_UCS_CES_UCS_4 380 {(const char **)iconv_ces_names_ucs_4, 381 &_iconv_from_ucs_ces_handlers_ucs_4}, 382 #endif 383 #ifdef ICONV_FROM_UCS_CES_UCS_4_INTERNAL 384 {(const char **)iconv_ces_names_ucs_4_internal, 385 &_iconv_from_ucs_ces_handlers_ucs_4_internal}, 386 #endif 387 #ifdef ICONV_FROM_UCS_CES_US_ASCII 388 {(const char **)iconv_ces_names_us_ascii, 389 &_iconv_from_ucs_ces_handlers_us_ascii}, 390 #endif 391 #ifdef ICONV_FROM_UCS_CES_UTF_16 392 {(const char **)iconv_ces_names_utf_16, 393 &_iconv_from_ucs_ces_handlers_utf_16}, 394 #endif 395 #ifdef ICONV_FROM_UCS_CES_UTF_8 396 {(const char **)iconv_ces_names_utf_8, 397 &_iconv_from_ucs_ces_handlers_utf_8}, 398 #endif 399 {(const char **)NULL, 400 (iconv_from_ucs_ces_handlers_t *)NULL} 401 }; 402