]> sourceware.org Git - newlib-cygwin.git/blob - newlib/libc/iconv/lib/bices.c
2004-01-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
[newlib-cygwin.git] / newlib / libc / iconv / lib / bices.c
1 /*
2 * Copyright (c) 2003, Artem B. Bityuckiy, SoftMine Corporation.
3 * Rights transferred to Franklin Electronic Publishers.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26 #ifdef ENABLE_ICONV
27
28 #include "deps.h"
29 #include <_ansi.h>
30 #include "local.h"
31
32 /*
33 * Each known CES should be registered here
34 */
35 #ifdef ICONV_CONVERTER_EUC_JP
36 extern _CONST struct iconv_ces_desc iconv_ces_euc_jp;
37 #endif
38 #ifdef ICONV_CONVERTER_EUC_KR
39 extern _CONST struct iconv_ces_desc iconv_ces_euc_kr;
40 #endif
41 #ifdef ICONV_CONVERTER_EUC_TW
42 extern _CONST struct iconv_ces_desc iconv_ces_euc_tw;
43 #endif
44 #ifdef ICONV_CONVERTER_GB2312
45 extern _CONST struct iconv_ces_desc iconv_ces_gb2312;
46 #endif
47 #ifdef ICONV_CONVERTER_ISO_10646_UCS_2
48 extern _CONST struct iconv_ces_desc iconv_ces_iso_10646_ucs_2;
49 #endif
50 #ifdef ICONV_CONVERTER_ISO_10646_UCS_4
51 extern _CONST struct iconv_ces_desc iconv_ces_iso_10646_ucs_4;
52 #endif
53 #ifdef ICONV_CONVERTER_UCS_2_INTERNAL
54 extern _CONST struct iconv_ces_desc iconv_ces_ucs_2_internal;
55 #endif
56 #ifdef ICONV_CONVERTER_UCS_4_INTERNAL
57 extern _CONST struct iconv_ces_desc iconv_ces_ucs_4_internal;
58 #endif
59 #ifdef ICONV_CONVERTER_UTF_16
60 extern _CONST struct iconv_ces_desc iconv_ces_utf_16;
61 #endif
62 #ifdef ICONV_CONVERTER_UTF_8
63 extern _CONST struct iconv_ces_desc iconv_ces_utf_8;
64 #endif
65
66 _CONST iconv_builtin_table iconv_builtin_ces[] =
67 {
68 #ifdef ICONV_CONVERTER_EUC_JP
69 {(_VOID_PTR)"euc_jp", (_VOID_PTR)&iconv_ces_euc_jp},
70 #endif
71 #ifdef ICONV_CONVERTER_EUC_KR
72 {(_VOID_PTR)"euc_kr", (_VOID_PTR)&iconv_ces_euc_kr},
73 #endif
74 #ifdef ICONV_CONVERTER_EUC_TW
75 {(_VOID_PTR)"euc_tw", (_VOID_PTR)&iconv_ces_euc_tw},
76 #endif
77 #ifdef ICONV_CONVERTER_GB2312
78 {(_VOID_PTR)"gb_2312_80", (_VOID_PTR)&iconv_ces_gb2312},
79 #endif
80 #ifdef ICONV_CONVERTER_ISO_10646_UCS_2
81 {(_VOID_PTR)"iso_10646_ucs_2", (_VOID_PTR)&iconv_ces_iso_10646_ucs_2},
82 #endif
83 #ifdef ICONV_CONVERTER_ISO_10646_UCS_4
84 {(_VOID_PTR)"iso_10646_ucs_4", (_VOID_PTR)&iconv_ces_iso_10646_ucs_4},
85 #endif
86 #ifdef ICONV_CONVERTER_UCS_2_INTERNAL
87 {(_VOID_PTR)"ucs_2_internal", (_VOID_PTR)&iconv_ces_ucs_2_internal},
88 #endif
89 #ifdef ICONV_CONVERTER_UCS_4_INTERNAL
90 {(_VOID_PTR)"ucs_4_internal", (_VOID_PTR)&iconv_ces_ucs_4_internal},
91 #endif
92 #ifdef ICONV_CONVERTER_UTF_16
93 {(_VOID_PTR)"utf_16", (_VOID_PTR)&iconv_ces_utf_16},
94 #endif
95 #ifdef ICONV_CONVERTER_UTF_8
96 {(_VOID_PTR)"utf_8", (_VOID_PTR)&iconv_ces_utf_8},
97 #endif
98 {NULL, NULL}
99 };
100
101 #endif /* #ifdef ENABLE_ICONV */
102
This page took 0.039483 seconds and 5 git commands to generate.