newlib-cygwin/newlib/libc/iconv/ces/cesbi.h

277 lines
8.5 KiB
C
Raw Normal View History

2004-06-25 Artem B. Bityuckiy <dedekind@oktetlabs.ru> * acinclude.m4: Move iconv options into configure.in. * aclocal.m4: Regenerated. * configure: Ditto. * configure.in: Add iconv options. * newlib.hin: Add new iconv encodings and remove deleted ones. * doc/aclocal.m4: Regenerated. * doc/configure: Ditto. * iconvdata/aclocal.m4: Ditto. * iconvdata/configure: Ditto. * libc/iconv: Design change. New size-optimized ccs format. * libc/iconv/AUTHORS: Removed. * libc/iconv/COPYING: Ditto. * libc/iconv/README.ORIGINAL: Ditto. * libc/iconv/README.TODO: Ditto. * libc/iconv/charset.aliases: Ditto. * libc/iconv/encoding.aliases: New file. * libc/iconv/Makefile.am: Updated. * libc/iconv/Makefile.in: Regenerated. * libc/iconv/iconv.tex: Updated. * libc/iconv/ccs/Makefile.am: Ditto. * libc/iconv/ccs/Makefile.in: Regenerated. * libc/iconv/ccs/big5.c: Updated. * libc/iconv/ccs/cns11643_plane1.c: Ditto. * libc/iconv/ccs/cns11643_plane14.c: Ditto. * libc/iconv/ccs/cns11643_plane2.c: Ditto. * libc/iconv/ccs/cp775.c: Ditto. * libc/iconv/ccs/cp850.c: Ditto. * libc/iconv/ccs/cp852.c: Ditto. * libc/iconv/ccs/cp855.c: Ditto. * libc/iconv/ccs/cp866.c: Ditto. * libc/iconv/ccs/iso_8859_1.c: Ditto. * libc/iconv/ccs/README.CCS.SOURCES: Removed. * libc/iconv/ccs/gb_2312_80.c: Ditto. * libc/iconv/ccs/iconv_mktbl: Ditto. * libc/iconv/ccs/jis_x0201.c: Ditto. * libc/iconv/ccs/jis_x0208_1983.c: Ditto. * libc/iconv/ccs/shift_jis.c: Ditto. * libc/iconv/ccs/us_ascii.c: Ditto. * libc/iconv/ccs/ccs.h: New file. * libc/iconv/ccs/ccsbi.c: Ditto. * libc/iconv/ccs/ccsbi.h: Ditto. * libc/iconv/ccs/ccsnames.h: Ditto. * libc/iconv/ccs/iso_8859_10.c: Ditto. * libc/iconv/ccs/iso_8859_11.c: Ditto. * libc/iconv/ccs/iso_8859_13.c: Ditto. * libc/iconv/ccs/iso_8859_14.c: Ditto. * libc/iconv/ccs/iso_8859_3.c: Ditto. * libc/iconv/ccs/iso_8859_6.c: Ditto. * libc/iconv/ccs/iso_8859_7.c: Ditto. * libc/iconv/ccs/iso_8859_8.c: Ditto. * libc/iconv/ccs/iso_8859_9.c: Ditto. * libc/iconv/ccs/iso_ir_111.c: Ditto. * libc/iconv/ccs/jis_x0201_1976.c: Ditto. * libc/iconv/ccs/jis_x0208_1990.c: Ditto. * libc/iconv/ccs/koi8_ru.c: Ditto. * libc/iconv/ccs/koi8_uni.c: Ditto. * libc/iconv/ccs/mktbl.pl: Ditto. * libc/iconv/ccs/win_1250.c: Ditto. * libc/iconv/ccs/win_1251.c: Ditto. * libc/iconv/ccs/win_1252.c: Ditto. * libc/iconv/ccs/win_1253.c: Ditto. * libc/iconv/ccs/win_1254.c: Ditto. * libc/iconv/ccs/win_1255.c: Ditto. * libc/iconv/ccs/win_1256.c: Ditto. * libc/iconv/ccs/win_1257.c: Ditto. * libc/iconv/ccs/win_1258.c: Ditto. * libc/iconv/ccs/iso_8859_15.c * libc/iconv/ccs/iso_8859_2.c * libc/iconv/ccs/iso_8859_4.c * libc/iconv/ccs/iso_8859_5.c * libc/iconv/ccs/jis_x0212_1990.c * libc/iconv/ccs/koi8_r.c * libc/iconv/ccs/koi8_u.c * libc/iconv/ccs/ksx1001.c * libc/iconv/ccs/binary/gb_2312_80.cct: Removed. * libc/iconv/ccs/binary/jis_x0201.cct: Ditto. * libc/iconv/ccs/binary/shift_jis.cct: Ditto. * libc/iconv/ccs/binary/us_ascii.cct: Ditto. * libc/iconv/ccs/binary/jis_x0208_1983.cct: Ditto. * libc/iconv/ccs/binary/Makefile.am: Updated. * libc/iconv/ccs/binary/Makefile.in: Regenerated. * libc/iconv/ccs/binary/big5.cct: Updated. * libc/iconv/ccs/binary/cns11643_plane1.cct: Ditto. * libc/iconv/ccs/binary/cns11643_plane14.cct: Ditto. * libc/iconv/ccs/binary/cns11643_plane2.cct: Ditto. * libc/iconv/ccs/binary/cp775.cct: Updated.: Ditto. * libc/iconv/ccs/binary/cp850.cct: Ditto.: Ditto. * libc/iconv/ccs/binary/cp852.cct: Ditto.: Ditto. * libc/iconv/ccs/binary/cp855.cct: Ditto.: Ditto. * libc/iconv/ccs/binary/cp866.cct: Ditto.: Ditto. * libc/iconv/ccs/binary/iso_8859_1.cct: Ditto. * libc/iconv/ccs/binary/iso_8859_15.cct: Ditto. * libc/iconv/ccs/binary/iso_8859_4.cct: Ditto. * libc/iconv/ccs/binary/iso_8859_5.cct: Ditto. * libc/iconv/ccs/binary/iso_8859_2.cct: Ditto. * libc/iconv/ccs/binary/jis_x0212_1990.cct: Ditto. * libc/iconv/ccs/binary/koi8_r.cct: Ditto. * libc/iconv/ccs/binary/koi8_u.cct: Ditto. * libc/iconv/ccs/binary/ksx1001.cct: Ditto. * libc/iconv/ccs/binary/iso_8859_10.cct: New file. * libc/iconv/ccs/binary/iso_8859_11.cct: Ditto. * libc/iconv/ccs/binary/iso_8859_13.cct: Ditto. * libc/iconv/ccs/binary/iso_8859_14.cct: Ditto. * libc/iconv/ccs/binary/iso_8859_3.cct: Ditto. * libc/iconv/ccs/binary/iso_8859_6.cct: Ditto. * libc/iconv/ccs/binary/iso_8859_7.cct: Ditto. * libc/iconv/ccs/binary/iso_8859_8.cct: Ditto. * libc/iconv/ccs/binary/iso_8859_9.cct: Ditto. * libc/iconv/ccs/binary/iso_ir_111.cct: Ditto. * libc/iconv/ccs/binary/jis_x0201_1976.cct: Ditto. * libc/iconv/ccs/binary/jis_x0208_1990.cct: Ditto. * libc/iconv/ccs/binary/koi8_ru.cct: Ditto. * libc/iconv/ccs/binary/koi8_uni.cct: Ditto. * libc/iconv/ccs/binary/win_1250.cct: Ditto. * libc/iconv/ccs/binary/win_1251.cct: Ditto. * libc/iconv/ccs/binary/win_1252.cct: Ditto. * libc/iconv/ccs/binary/win_1253.cct: Ditto. * libc/iconv/ccs/binary/win_1254.cct: Ditto. * libc/iconv/ccs/binary/win_1255.cct: Ditto. * libc/iconv/ccs/binary/win_1256.cct: Ditto. * libc/iconv/ccs/binary/win_1257.cct: Ditto. * libc/iconv/ccs/binary/win_1258.cct: Ditto. * libc/iconv/ces/Makefile.am: Updated. * libc/iconv/ces/Makefile.in: Regenerated. * libc/iconv/ces/ucs-2-internal.c: Updated. * libc/iconv/ces/ucs-4-internal.c: Ditto. * libc/iconv/ces/utf-16.c: Ditto. * libc/iconv/ces/utf-8.c: Ditto. * libc/iconv/ces/cesbi.c: New file. * libc/iconv/ces/cesbi.h: Ditto. * libc/iconv/ces/cesdeps.h: Ditto. * libc/iconv/ces/euc.c: Ditto. * libc/iconv/ces/mkdeps.pl: Ditto. * libc/iconv/ces/table-pcs.c: Ditto. * libc/iconv/ces/table.c: Ditto. * libc/iconv/ces/ucs-2.c: Ditto. * libc/iconv/ces/ucs-4.c: Ditto. * libc/iconv/ces/us-ascii.c: Ditto. * libc/iconv/ces/euc-jp.c: Removed. * libc/iconv/ces/euc-kr.c: Ditto. * libc/iconv/ces/euc-tw.c: Ditto. * libc/iconv/ces/gb2312.c: Ditto. * libc/iconv/ces/iso-10646-ucs-2.: Ditto.c * libc/iconv/ces/iso-10646-ucs-4.c: Ditto. * libc/iconv/lib/Makefile.am: Updated. * libc/iconv/lib/Makefile.in: Regenerated. * libc/iconv/lib/endian.h: Updated. * libc/iconv/lib/iconv.c: Ditto. * libc/iconv/lib/local.h: Ditto. * libc/iconv/lib/aliases.c: Removed. * libc/iconv/lib/bialiasesi.c: Ditto. * libc/iconv/lib/biccs.c: Ditto. * libc/iconv/lib/bices.c: Ditto. * libc/iconv/lib/ccs.c: Ditto. * libc/iconv/lib/ces.c: Ditto. * libc/iconv/lib/ces_euc.c: Ditto. * libc/iconv/lib/ces_iso2022.c: Ditto. * libc/iconv/lib/ces_table.c: Ditto. * libc/iconv/lib/converter.c: Ditto. * libc/iconv/lib/deps.h: Ditto. * libc/iconv/lib/aliasesbi.c: Ditto. * libc/iconv/lib/aliasesi.c: Ditto. * libc/iconv/lib/conv.h: Ditto. * libc/iconv/lib/encnames.h: Ditto. * libc/iconv/lib/encoding.deps: Ditto. * libc/iconv/lib/iconvnls.c: Ditto. * libc/iconv/lib/iconvnls.h: Ditto. * libc/iconv/lib/loaddata.c: Ditto. * libc/iconv/lib/nullconv.c: Ditto. * libc/iconv/lib/ucsconv.c: Ditto. * libc/iconv/lib/ucsconv.h: Ditto. * libc/include/iconv.h: Update copyright. * libc/*/aclocal.m4: Regenerated. * libc/*/configure: Ditto. * libm/*/aclocal.m4: Ditto. * libm/*/configure: Ditto.
2004-06-26 04:33:28 +08:00
/*
* This file was automatically generated mkdeps.pl script. Don't edit.
*/
#ifndef __CESBI_H__
#define __CESBI_H__
#include <newlib.h>
#include <_ansi.h>
#include "../lib/encnames.h"
#include "../lib/ucsconv.h"
/*
* Enable CES converter if correspondent encoding is requested.
* Defining ICONV_TO_UCS_CES_XXX macro or ICONV_FROM_UCS_CES_XXX
* macro is needed to enable "XXX encoding -> UCS" or "UCS -> XXX encoding"
* part of UCS-based CES converter.
*/
#if defined (_ICONV_FROM_ENCODING_EUC_JP) \
|| defined (_ICONV_FROM_ENCODING_EUC_KR) \
|| defined (_ICONV_FROM_ENCODING_EUC_TW)
# define ICONV_TO_UCS_CES_EUC
#endif
#if defined (_ICONV_TO_ENCODING_EUC_JP) \
|| defined (_ICONV_TO_ENCODING_EUC_KR) \
|| defined (_ICONV_TO_ENCODING_EUC_TW)
# define ICONV_FROM_UCS_CES_EUC
#endif
#if defined (_ICONV_FROM_ENCODING_CP775) \
|| defined (_ICONV_FROM_ENCODING_CP850) \
|| defined (_ICONV_FROM_ENCODING_CP852) \
|| defined (_ICONV_FROM_ENCODING_CP855) \
|| defined (_ICONV_FROM_ENCODING_CP866) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_1) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_10) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_11) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_13) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_14) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_15) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_2) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_3) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_4) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_5) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_6) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_7) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_8) \
|| defined (_ICONV_FROM_ENCODING_ISO_8859_9) \
|| defined (_ICONV_FROM_ENCODING_ISO_IR_111) \
|| defined (_ICONV_FROM_ENCODING_KOI8_R) \
|| defined (_ICONV_FROM_ENCODING_KOI8_RU) \
|| defined (_ICONV_FROM_ENCODING_KOI8_U) \
|| defined (_ICONV_FROM_ENCODING_KOI8_UNI) \
|| defined (_ICONV_FROM_ENCODING_WIN_1250) \
|| defined (_ICONV_FROM_ENCODING_WIN_1251) \
|| defined (_ICONV_FROM_ENCODING_WIN_1252) \
|| defined (_ICONV_FROM_ENCODING_WIN_1253) \
|| defined (_ICONV_FROM_ENCODING_WIN_1254) \
|| defined (_ICONV_FROM_ENCODING_WIN_1255) \
|| defined (_ICONV_FROM_ENCODING_WIN_1256) \
|| defined (_ICONV_FROM_ENCODING_WIN_1257) \
|| defined (_ICONV_FROM_ENCODING_WIN_1258)
# define ICONV_TO_UCS_CES_TABLE
#endif
#if defined (_ICONV_TO_ENCODING_CP775) \
|| defined (_ICONV_TO_ENCODING_CP850) \
|| defined (_ICONV_TO_ENCODING_CP852) \
|| defined (_ICONV_TO_ENCODING_CP855) \
|| defined (_ICONV_TO_ENCODING_CP866) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_1) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_10) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_11) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_13) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_14) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_15) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_2) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_3) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_4) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_5) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_6) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_7) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_8) \
|| defined (_ICONV_TO_ENCODING_ISO_8859_9) \
|| defined (_ICONV_TO_ENCODING_ISO_IR_111) \
|| defined (_ICONV_TO_ENCODING_KOI8_R) \
|| defined (_ICONV_TO_ENCODING_KOI8_RU) \
|| defined (_ICONV_TO_ENCODING_KOI8_U) \
|| defined (_ICONV_TO_ENCODING_KOI8_UNI) \
|| defined (_ICONV_TO_ENCODING_WIN_1250) \
|| defined (_ICONV_TO_ENCODING_WIN_1251) \
|| defined (_ICONV_TO_ENCODING_WIN_1252) \
|| defined (_ICONV_TO_ENCODING_WIN_1253) \
|| defined (_ICONV_TO_ENCODING_WIN_1254) \
|| defined (_ICONV_TO_ENCODING_WIN_1255) \
|| defined (_ICONV_TO_ENCODING_WIN_1256) \
|| defined (_ICONV_TO_ENCODING_WIN_1257) \
|| defined (_ICONV_TO_ENCODING_WIN_1258)
# define ICONV_FROM_UCS_CES_TABLE
#endif
#if defined (_ICONV_FROM_ENCODING_BIG5)
# define ICONV_TO_UCS_CES_TABLE_PCS
#endif
#if defined (_ICONV_TO_ENCODING_BIG5)
# define ICONV_FROM_UCS_CES_TABLE_PCS
#endif
#if defined (_ICONV_FROM_ENCODING_UCS_2) \
|| defined (_ICONV_FROM_ENCODING_UCS_2BE) \
|| defined (_ICONV_FROM_ENCODING_UCS_2LE)
# define ICONV_TO_UCS_CES_UCS_2
#endif
#if defined (_ICONV_TO_ENCODING_UCS_2) \
|| defined (_ICONV_TO_ENCODING_UCS_2BE) \
|| defined (_ICONV_TO_ENCODING_UCS_2LE)
# define ICONV_FROM_UCS_CES_UCS_2
#endif
#if defined (_ICONV_FROM_ENCODING_UCS_2_INTERNAL)
# define ICONV_TO_UCS_CES_UCS_2_INTERNAL
#endif
#if defined (_ICONV_TO_ENCODING_UCS_2_INTERNAL)
# define ICONV_FROM_UCS_CES_UCS_2_INTERNAL
#endif
#if defined (_ICONV_FROM_ENCODING_UCS_4) \
|| defined (_ICONV_FROM_ENCODING_UCS_4BE) \
|| defined (_ICONV_FROM_ENCODING_UCS_4LE)
# define ICONV_TO_UCS_CES_UCS_4
#endif
#if defined (_ICONV_TO_ENCODING_UCS_4) \
|| defined (_ICONV_TO_ENCODING_UCS_4BE) \
|| defined (_ICONV_TO_ENCODING_UCS_4LE)
# define ICONV_FROM_UCS_CES_UCS_4
#endif
#if defined (_ICONV_FROM_ENCODING_UCS_4_INTERNAL)
# define ICONV_TO_UCS_CES_UCS_4_INTERNAL
#endif
#if defined (_ICONV_TO_ENCODING_UCS_4_INTERNAL)
# define ICONV_FROM_UCS_CES_UCS_4_INTERNAL
#endif
#if defined (_ICONV_FROM_ENCODING_US_ASCII)
# define ICONV_TO_UCS_CES_US_ASCII
#endif
#if defined (_ICONV_TO_ENCODING_US_ASCII)
# define ICONV_FROM_UCS_CES_US_ASCII
#endif
#if defined (_ICONV_FROM_ENCODING_UTF_16) \
|| defined (_ICONV_FROM_ENCODING_UTF_16BE) \
|| defined (_ICONV_FROM_ENCODING_UTF_16LE)
# define ICONV_TO_UCS_CES_UTF_16
#endif
#if defined (_ICONV_TO_ENCODING_UTF_16) \
|| defined (_ICONV_TO_ENCODING_UTF_16BE) \
|| defined (_ICONV_TO_ENCODING_UTF_16LE)
# define ICONV_FROM_UCS_CES_UTF_16
#endif
#if defined (_ICONV_FROM_ENCODING_UTF_8)
# define ICONV_TO_UCS_CES_UTF_8
#endif
#if defined (_ICONV_TO_ENCODING_UTF_8)
# define ICONV_FROM_UCS_CES_UTF_8
#endif
/*
* Some encodings require another encodings to be enabled.
* These dependencies are handled in cesdeps.h header file.
*/
#include "cesdeps.h"
/*
* NLS uses iconv's capabilities and require one of encodings
* to be enabled for internal wchar_t representation.
*/
#include "../lib/iconvnls.h"
/*
* Forward declarations of CES converter handlers.
* These handlers are actually defined in correspondent CES converter files.
*/
#ifdef ICONV_TO_UCS_CES_EUC
extern _CONST iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_euc;
#endif
#ifdef ICONV_FROM_UCS_CES_EUC
extern _CONST iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_euc;
#endif
#ifdef ICONV_TO_UCS_CES_TABLE
extern _CONST iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_table;
#endif
#ifdef ICONV_FROM_UCS_CES_TABLE
extern _CONST iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_table;
#endif
#ifdef ICONV_TO_UCS_CES_TABLE_PCS
extern _CONST iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_table_pcs;
#endif
#ifdef ICONV_FROM_UCS_CES_TABLE_PCS
extern _CONST iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_table_pcs;
#endif
#ifdef ICONV_TO_UCS_CES_UCS_2
extern _CONST iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_ucs_2;
#endif
#ifdef ICONV_FROM_UCS_CES_UCS_2
extern _CONST iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_ucs_2;
#endif
#ifdef ICONV_TO_UCS_CES_UCS_2_INTERNAL
extern _CONST iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_ucs_2_internal;
#endif
#ifdef ICONV_FROM_UCS_CES_UCS_2_INTERNAL
extern _CONST iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_ucs_2_internal;
#endif
#ifdef ICONV_TO_UCS_CES_UCS_4
extern _CONST iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_ucs_4;
#endif
#ifdef ICONV_FROM_UCS_CES_UCS_4
extern _CONST iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_ucs_4;
#endif
#ifdef ICONV_TO_UCS_CES_UCS_4_INTERNAL
extern _CONST iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_ucs_4_internal;
#endif
#ifdef ICONV_FROM_UCS_CES_UCS_4_INTERNAL
extern _CONST iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_ucs_4_internal;
#endif
#ifdef ICONV_TO_UCS_CES_US_ASCII
extern _CONST iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_us_ascii;
#endif
#ifdef ICONV_FROM_UCS_CES_US_ASCII
extern _CONST iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_us_ascii;
#endif
#ifdef ICONV_TO_UCS_CES_UTF_16
extern _CONST iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_utf_16;
#endif
#ifdef ICONV_FROM_UCS_CES_UTF_16
extern _CONST iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_utf_16;
#endif
#ifdef ICONV_TO_UCS_CES_UTF_8
extern _CONST iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_utf_8;
#endif
#ifdef ICONV_FROM_UCS_CES_UTF_8
extern _CONST iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_utf_8;
#endif
#endif /* !__CESBI_H__ */