ansification: remove _CONST

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
Yaakov Selkowitz 2017-12-03 20:25:16 -06:00
parent 6783860a2e
commit 0bda30e1ff
322 changed files with 1145 additions and 1147 deletions

View File

@ -87,7 +87,7 @@ static char sccsid[] = "@(#)ctype_.c 5.6 (Berkeley) 6/1/90";
/* No static const on Cygwin since it's referenced and potentially overwritten
for compatibility with older applications. */
#ifndef __CYGWIN__
_CONST
const
#endif
char _ctype_b[128 + 256] = {
_CTYPE_DATA_128_255,
@ -116,7 +116,7 @@ __asm__ (" \n\
# endif
# else /* !__CYGWIN__ */
_CONST char _ctype_[1 + 256] = {
const char _ctype_[1 + 256] = {
0,
_CTYPE_DATA_0_127,
_CTYPE_DATA_128_255
@ -125,7 +125,7 @@ _CONST char _ctype_[1 + 256] = {
#else /* !ALLOW_NEGATIVE_CTYPE_INDEX */
_CONST char _ctype_[1 + 256] = {
const char _ctype_[1 + 256] = {
0,
_CTYPE_DATA_0_127,
_CTYPE_DATA_128_255

View File

@ -7,7 +7,7 @@
#ifdef ALLOW_NEGATIVE_CTYPE_INDEX
#ifndef __CYGWIN__
extern _CONST char _ctype_b[];
extern const char _ctype_b[];
#else
extern char _ctype_b[];
#endif

View File

@ -473,7 +473,7 @@
#if defined(ALLOW_NEGATIVE_CTYPE_INDEX)
#ifndef __CYGWIN__
static _CONST
static const
#endif
char __ctype_cp[26][128 + 256] = {
{ _CTYPE_CP437_128_254,
@ -636,7 +636,7 @@ char __ctype_cp[26][128 + 256] = {
#else /* !defined(ALLOW_NEGATIVE_CTYPE_INDEX) */
static _CONST char __ctype_cp[26][1 + 256] = {
static const char __ctype_cp[26][1 + 256] = {
{ 0,
_CTYPE_DATA_0_127,
_CTYPE_CP437_128_254,

View File

@ -277,7 +277,7 @@ extern int __iso_8859_index (const char *charset_ext);
#if defined(ALLOW_NEGATIVE_CTYPE_INDEX)
#ifndef __CYGWIN__
static _CONST
static const
#endif
char __ctype_iso[15][128 + 256] = {
{ _CTYPE_ISO_8859_1_128_254,
@ -374,7 +374,7 @@ char __ctype_iso[15][128 + 256] = {
#else /* !defined(ALLOW_NEGATIVE_CTYPE_INDEX) */
static _CONST char __ctype_iso[15][1 + 256] = {
static const char __ctype_iso[15][1 + 256] = {
{ 0,
_CTYPE_DATA_0_127,
_CTYPE_ISO_8859_1_128_254,

View File

@ -21,7 +21,7 @@
#if defined (ICONV_TO_UCS_CCS_BIG5) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_big5[] =
{
/* Heading Block */
@ -2972,7 +2972,7 @@ to_ucs_speed_big5[] =
#if defined (ICONV_TO_UCS_CCS_BIG5) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_size_big5[] =
{
0x00B0, /* Ranges number */
@ -5092,7 +5092,7 @@ to_ucs_size_big5[] =
#if defined (ICONV_FROM_UCS_CCS_BIG5) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_speed_big5[] =
{
/* Heading Block */
@ -8407,7 +8407,7 @@ from_ucs_speed_big5[] =
#if defined (ICONV_FROM_UCS_CCS_BIG5) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_size_big5[] =
{
0x0235, /* Ranges number */
@ -12579,7 +12579,7 @@ from_ucs_size_big5[] =
* big5 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_big5 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -131,12 +131,12 @@
typedef struct
{
__uint16_t ver; /* Table version */
_CONST char *name; /* CCS name */
const char *name; /* CCS name */
__uint16_t bits; /* CCS's bits number */
int from_ucs_type; /* UCS -> CCS table optimization type */
_CONST __uint16_t *from_ucs; /* UCS -> CCS table */
const __uint16_t *from_ucs; /* UCS -> CCS table */
int to_ucs_type; /* CCS -> UCS table optimization type */
_CONST __uint16_t *to_ucs; /* CCS -> UCS table */
const __uint16_t *to_ucs; /* CCS -> UCS table */
} iconv_ccs_t;
/*
@ -147,11 +147,11 @@ typedef struct
int bits; /* CCS's bits number */
int type; /* Table type (builtin/external) */
int optimization; /* Table optimization type (speed/size) */
_CONST __uint16_t *tbl; /* Table's data */
const __uint16_t *tbl; /* Table's data */
} iconv_ccs_desc_t;
/* Array containing all built-in CCS tables */
extern _CONST iconv_ccs_t *
extern const iconv_ccs_t *
_iconv_ccs[];
#endif /* __CCS_H__ */

View File

@ -8,7 +8,7 @@
/*
* The following array contains the list of built-in CCS tables.
*/
_CONST iconv_ccs_t *
const iconv_ccs_t *
_iconv_ccs[] =
{
#if defined (ICONV_TO_UCS_CCS_CP775) \

View File

@ -310,207 +310,207 @@
*/
#if defined (ICONV_TO_UCS_CCS_BIG5) \
|| defined (ICONV_FROM_UCS_CCS_BIG5)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_big5;
#endif
#if defined (ICONV_TO_UCS_CCS_CNS11643_PLANE1) \
|| defined (ICONV_FROM_UCS_CCS_CNS11643_PLANE1)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_cns11643_plane1;
#endif
#if defined (ICONV_TO_UCS_CCS_CNS11643_PLANE14) \
|| defined (ICONV_FROM_UCS_CCS_CNS11643_PLANE14)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_cns11643_plane14;
#endif
#if defined (ICONV_TO_UCS_CCS_CNS11643_PLANE2) \
|| defined (ICONV_FROM_UCS_CCS_CNS11643_PLANE2)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_cns11643_plane2;
#endif
#if defined (ICONV_TO_UCS_CCS_CP775) \
|| defined (ICONV_FROM_UCS_CCS_CP775)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_cp775;
#endif
#if defined (ICONV_TO_UCS_CCS_CP850) \
|| defined (ICONV_FROM_UCS_CCS_CP850)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_cp850;
#endif
#if defined (ICONV_TO_UCS_CCS_CP852) \
|| defined (ICONV_FROM_UCS_CCS_CP852)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_cp852;
#endif
#if defined (ICONV_TO_UCS_CCS_CP855) \
|| defined (ICONV_FROM_UCS_CCS_CP855)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_cp855;
#endif
#if defined (ICONV_TO_UCS_CCS_CP866) \
|| defined (ICONV_FROM_UCS_CCS_CP866)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_cp866;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_1) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_1)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_1;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_10) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_10)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_10;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_11) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_11)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_11;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_13) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_13)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_13;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_14) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_14)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_14;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_15) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_15)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_15;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_2) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_2)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_2;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_3) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_3)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_3;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_4) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_4)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_4;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_5) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_5)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_5;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_6) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_6)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_6;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_7) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_7)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_7;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_8) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_8)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_8;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_8859_9) \
|| defined (ICONV_FROM_UCS_CCS_ISO_8859_9)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_8859_9;
#endif
#if defined (ICONV_TO_UCS_CCS_ISO_IR_111) \
|| defined (ICONV_FROM_UCS_CCS_ISO_IR_111)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_iso_ir_111;
#endif
#if defined (ICONV_TO_UCS_CCS_JIS_X0201_1976) \
|| defined (ICONV_FROM_UCS_CCS_JIS_X0201_1976)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_jis_x0201_1976;
#endif
#if defined (ICONV_TO_UCS_CCS_JIS_X0208_1990) \
|| defined (ICONV_FROM_UCS_CCS_JIS_X0208_1990)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_jis_x0208_1990;
#endif
#if defined (ICONV_TO_UCS_CCS_JIS_X0212_1990) \
|| defined (ICONV_FROM_UCS_CCS_JIS_X0212_1990)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_jis_x0212_1990;
#endif
#if defined (ICONV_TO_UCS_CCS_KOI8_R) \
|| defined (ICONV_FROM_UCS_CCS_KOI8_R)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_koi8_r;
#endif
#if defined (ICONV_TO_UCS_CCS_KOI8_RU) \
|| defined (ICONV_FROM_UCS_CCS_KOI8_RU)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_koi8_ru;
#endif
#if defined (ICONV_TO_UCS_CCS_KOI8_U) \
|| defined (ICONV_FROM_UCS_CCS_KOI8_U)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_koi8_u;
#endif
#if defined (ICONV_TO_UCS_CCS_KOI8_UNI) \
|| defined (ICONV_FROM_UCS_CCS_KOI8_UNI)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_koi8_uni;
#endif
#if defined (ICONV_TO_UCS_CCS_KSX1001) \
|| defined (ICONV_FROM_UCS_CCS_KSX1001)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_ksx1001;
#endif
#if defined (ICONV_TO_UCS_CCS_WIN_1250) \
|| defined (ICONV_FROM_UCS_CCS_WIN_1250)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_win_1250;
#endif
#if defined (ICONV_TO_UCS_CCS_WIN_1251) \
|| defined (ICONV_FROM_UCS_CCS_WIN_1251)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_win_1251;
#endif
#if defined (ICONV_TO_UCS_CCS_WIN_1252) \
|| defined (ICONV_FROM_UCS_CCS_WIN_1252)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_win_1252;
#endif
#if defined (ICONV_TO_UCS_CCS_WIN_1253) \
|| defined (ICONV_FROM_UCS_CCS_WIN_1253)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_win_1253;
#endif
#if defined (ICONV_TO_UCS_CCS_WIN_1254) \
|| defined (ICONV_FROM_UCS_CCS_WIN_1254)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_win_1254;
#endif
#if defined (ICONV_TO_UCS_CCS_WIN_1255) \
|| defined (ICONV_FROM_UCS_CCS_WIN_1255)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_win_1255;
#endif
#if defined (ICONV_TO_UCS_CCS_WIN_1256) \
|| defined (ICONV_FROM_UCS_CCS_WIN_1256)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_win_1256;
#endif
#if defined (ICONV_TO_UCS_CCS_WIN_1257) \
|| defined (ICONV_FROM_UCS_CCS_WIN_1257)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_win_1257;
#endif
#if defined (ICONV_TO_UCS_CCS_WIN_1258) \
|| defined (ICONV_FROM_UCS_CCS_WIN_1258)
extern _CONST iconv_ccs_t
extern const iconv_ccs_t
_iconv_ccs_win_1258;
#endif

View File

@ -21,7 +21,7 @@
#if defined (ICONV_TO_UCS_CCS_CNS11643_PLANE1) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_cns11643_plane1[] =
{
/* Heading Block */
@ -2213,7 +2213,7 @@ to_ucs_speed_cns11643_plane1[] =
#if defined (ICONV_TO_UCS_CCS_CNS11643_PLANE1) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_size_cns11643_plane1[] =
{
0x0042, /* Ranges number */
@ -3118,7 +3118,7 @@ to_ucs_size_cns11643_plane1[] =
#if defined (ICONV_FROM_UCS_CCS_CNS11643_PLANE1) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_speed_cns11643_plane1[] =
{
/* Heading Block */
@ -6367,7 +6367,7 @@ from_ucs_speed_cns11643_plane1[] =
#if defined (ICONV_FROM_UCS_CCS_CNS11643_PLANE1) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_size_cns11643_plane1[] =
{
0x017D, /* Ranges number */
@ -11175,7 +11175,7 @@ from_ucs_size_cns11643_plane1[] =
* cns11643_plane1 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_cns11643_plane1 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -21,7 +21,7 @@
#if defined (ICONV_TO_UCS_CCS_CNS11643_PLANE14) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_cns11643_plane14[] =
{
/* Heading Block */
@ -2411,7 +2411,7 @@ to_ucs_speed_cns11643_plane14[] =
#if defined (ICONV_TO_UCS_CCS_CNS11643_PLANE14) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_size_cns11643_plane14[] =
{
0x00DE, /* Ranges number */
@ -4011,7 +4011,7 @@ to_ucs_size_cns11643_plane14[] =
#if defined (ICONV_FROM_UCS_CCS_CNS11643_PLANE14) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_speed_cns11643_plane14[] =
{
/* Heading Block */
@ -6765,7 +6765,7 @@ from_ucs_speed_cns11643_plane14[] =
#if defined (ICONV_FROM_UCS_CCS_CNS11643_PLANE14) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_size_cns11643_plane14[] =
{
0x00C5, /* Ranges number */
@ -10727,7 +10727,7 @@ from_ucs_size_cns11643_plane14[] =
* cns11643_plane14 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_cns11643_plane14 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -21,7 +21,7 @@
#if defined (ICONV_TO_UCS_CCS_CNS11643_PLANE2) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_cns11643_plane2[] =
{
/* Heading Block */
@ -2774,7 +2774,7 @@ to_ucs_speed_cns11643_plane2[] =
#if defined (ICONV_TO_UCS_CCS_CNS11643_PLANE2) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_size_cns11643_plane2[] =
{
0x0052, /* Ranges number */
@ -3936,7 +3936,7 @@ to_ucs_size_cns11643_plane2[] =
#if defined (ICONV_FROM_UCS_CCS_CNS11643_PLANE2) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_speed_cns11643_plane2[] =
{
/* Heading Block */
@ -6690,7 +6690,7 @@ from_ucs_speed_cns11643_plane2[] =
#if defined (ICONV_FROM_UCS_CCS_CNS11643_PLANE2) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_size_cns11643_plane2[] =
{
0x027E, /* Ranges number */
@ -11912,7 +11912,7 @@ from_ucs_size_cns11643_plane2[] =
* cns11643_plane2 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_cns11643_plane2 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_CP775)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_cp775[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_cp775[] =
#if defined (ICONV_FROM_UCS_CCS_CP775)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_cp775[] =
{
W(0x00A0), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -317,7 +317,7 @@ from_ucs_speed_cp775[] =
* cp775 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_cp775 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_CP850)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_cp850[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_cp850[] =
#if defined (ICONV_FROM_UCS_CCS_CP850)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_cp850[] =
{
W(0x00A0), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -284,7 +284,7 @@ from_ucs_speed_cp850[] =
* cp850 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_cp850 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_CP852)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_cp852[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_cp852[] =
#if defined (ICONV_FROM_UCS_CCS_CP852)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_cp852[] =
{
W(0x00A0), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -284,7 +284,7 @@ from_ucs_speed_cp852[] =
* cp852 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_cp852 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_CP855)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_cp855[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_cp855[] =
#if defined (ICONV_FROM_UCS_CCS_CP855)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_cp855[] =
{
W(0x00A0), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -284,7 +284,7 @@ from_ucs_speed_cp855[] =
* cp855 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_cp855 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_CP866)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_cp866[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_cp866[] =
#if defined (ICONV_FROM_UCS_CCS_CP866)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_cp866[] =
{
W(0x00A0), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -317,7 +317,7 @@ from_ucs_speed_cp866[] =
* cp866 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_cp866 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_1)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_1[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_1[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_1)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_1[] =
{
W(0x00FF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -185,7 +185,7 @@ from_ucs_speed_iso_8859_1[] =
* iso_8859_1 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_1 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_10)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_10[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_10[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_10)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_10[] =
{
W(0x0138), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -251,7 +251,7 @@ from_ucs_speed_iso_8859_10[] =
* iso_8859_10 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_10 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_11)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_11[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_11[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_11)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_11[] =
{
W(0xFFFF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -218,7 +218,7 @@ from_ucs_speed_iso_8859_11[] =
* iso_8859_11 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_11 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_13)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_13[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_13[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_13)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_13[] =
{
W(0x2019), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -251,7 +251,7 @@ from_ucs_speed_iso_8859_13[] =
* iso_8859_13 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_13 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_14)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_14[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_14[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_14)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_14[] =
{
W(0x00FF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -251,7 +251,7 @@ from_ucs_speed_iso_8859_14[] =
* iso_8859_14 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_14 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_15)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_15[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_15[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_15)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_15[] =
{
W(0x00FF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -251,7 +251,7 @@ from_ucs_speed_iso_8859_15[] =
* iso_8859_15 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_15 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_2)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_2[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_2[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_2)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_2[] =
{
W(0x02D9), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -251,7 +251,7 @@ from_ucs_speed_iso_8859_2[] =
* iso_8859_2 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_2 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_3)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_3[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_3[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_3)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_3[] =
{
W(0x02D9), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -251,7 +251,7 @@ from_ucs_speed_iso_8859_3[] =
* iso_8859_3 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_3 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_4)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_4[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_4[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_4)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_4[] =
{
W(0x02D9), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -251,7 +251,7 @@ from_ucs_speed_iso_8859_4[] =
* iso_8859_4 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_4 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_5)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_5[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_5[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_5)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_5[] =
{
W(0x045F), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -251,7 +251,7 @@ from_ucs_speed_iso_8859_5[] =
* iso_8859_5 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_5 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_6)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_6[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_6[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_6)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_6[] =
{
W(0xFFFF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -218,7 +218,7 @@ from_ucs_speed_iso_8859_6[] =
* iso_8859_6 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_6 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_7)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_7[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_7[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_7)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_7[] =
{
W(0xFFFF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -251,7 +251,7 @@ from_ucs_speed_iso_8859_7[] =
* iso_8859_7 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_7 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_8)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_8[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_8[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_8)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_8[] =
{
W(0xFFFF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -251,7 +251,7 @@ from_ucs_speed_iso_8859_8[] =
* iso_8859_8 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_8 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_8859_9)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_8859_9[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_8859_9[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_8859_9)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_8859_9[] =
{
W(0x00FF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -218,7 +218,7 @@ from_ucs_speed_iso_8859_9[] =
* iso_8859_9 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_8859_9 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_ISO_IR_111)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_iso_ir_111[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_iso_ir_111[] =
#if defined (ICONV_FROM_UCS_CCS_ISO_IR_111)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_iso_ir_111[] =
{
W(0x042A), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -251,7 +251,7 @@ from_ucs_speed_iso_ir_111[] =
* iso_ir_111 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_iso_ir_111 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_JIS_X0201_1976)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_jis_x0201_1976[] =
{
INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,INVALC,
@ -75,7 +75,7 @@ to_ucs_speed_jis_x0201_1976[] =
#if defined (ICONV_FROM_UCS_CCS_JIS_X0201_1976)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_jis_x0201_1976[] =
{
W(0xFFFF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -185,7 +185,7 @@ from_ucs_speed_jis_x0201_1976[] =
* jis_x0201_1976 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_jis_x0201_1976 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -21,7 +21,7 @@
#if defined (ICONV_TO_UCS_CCS_JIS_X0208_1990) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_jis_x0208_1990[] =
{
/* Heading Block */
@ -2609,7 +2609,7 @@ to_ucs_speed_jis_x0208_1990[] =
#if defined (ICONV_TO_UCS_CCS_JIS_X0208_1990) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_size_jis_x0208_1990[] =
{
0x0055, /* Ranges number */
@ -3684,7 +3684,7 @@ to_ucs_size_jis_x0208_1990[] =
#if defined (ICONV_FROM_UCS_CCS_JIS_X0208_1990) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_speed_jis_x0208_1990[] =
{
/* Heading Block */
@ -6801,7 +6801,7 @@ from_ucs_speed_jis_x0208_1990[] =
#if defined (ICONV_FROM_UCS_CCS_JIS_X0208_1990) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_size_jis_x0208_1990[] =
{
0x01E9, /* Ranges number */
@ -12125,7 +12125,7 @@ from_ucs_size_jis_x0208_1990[] =
* jis_x0208_1990 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_jis_x0208_1990 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -21,7 +21,7 @@
#if defined (ICONV_TO_UCS_CCS_JIS_X0212_1990) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_jis_x0212_1990[] =
{
/* Heading Block */
@ -2312,7 +2312,7 @@ to_ucs_speed_jis_x0212_1990[] =
#if defined (ICONV_TO_UCS_CCS_JIS_X0212_1990) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_size_jis_x0212_1990[] =
{
0x0049, /* Ranges number */
@ -3262,7 +3262,7 @@ to_ucs_size_jis_x0212_1990[] =
#if defined (ICONV_FROM_UCS_CCS_JIS_X0212_1990) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_speed_jis_x0212_1990[] =
{
/* Heading Block */
@ -6214,7 +6214,7 @@ from_ucs_speed_jis_x0212_1990[] =
#if defined (ICONV_FROM_UCS_CCS_JIS_X0212_1990) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_size_jis_x0212_1990[] =
{
0x01AA, /* Ranges number */
@ -11349,7 +11349,7 @@ from_ucs_size_jis_x0212_1990[] =
* jis_x0212_1990 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_jis_x0212_1990 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_KOI8_R)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_koi8_r[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_koi8_r[] =
#if defined (ICONV_FROM_UCS_CCS_KOI8_R)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_koi8_r[] =
{
W(0x042A), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -317,7 +317,7 @@ from_ucs_speed_koi8_r[] =
* koi8_r CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_koi8_r =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_KOI8_RU)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_koi8_ru[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_koi8_ru[] =
#if defined (ICONV_FROM_UCS_CCS_KOI8_RU)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_koi8_ru[] =
{
W(0x042A), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -350,7 +350,7 @@ from_ucs_speed_koi8_ru[] =
* koi8_ru CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_koi8_ru =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_KOI8_U)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_koi8_u[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_koi8_u[] =
#if defined (ICONV_FROM_UCS_CCS_KOI8_U)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_koi8_u[] =
{
W(0x042A), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -317,7 +317,7 @@ from_ucs_speed_koi8_u[] =
* koi8_u CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_koi8_u =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_KOI8_UNI)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_koi8_uni[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_koi8_uni[] =
#if defined (ICONV_FROM_UCS_CCS_KOI8_UNI)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_koi8_uni[] =
{
W(0x042A), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -350,7 +350,7 @@ from_ucs_speed_koi8_uni[] =
* koi8_uni CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_koi8_uni =
{
TABLE_VERSION_1, /* Table version */

View File

@ -21,7 +21,7 @@
#if defined (ICONV_TO_UCS_CCS_KSX1001) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_ksx1001[] =
{
/* Heading Block */
@ -3005,7 +3005,7 @@ to_ucs_speed_ksx1001[] =
#if defined (ICONV_TO_UCS_CCS_KSX1001) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
to_ucs_size_ksx1001[] =
{
0x005D, /* Ranges number */
@ -4266,7 +4266,7 @@ to_ucs_size_ksx1001[] =
#if defined (ICONV_FROM_UCS_CCS_KSX1001) \
&& !(defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_speed_ksx1001[] =
{
/* Heading Block */
@ -9099,7 +9099,7 @@ from_ucs_speed_ksx1001[] =
#if defined (ICONV_FROM_UCS_CCS_KSX1001) \
&& (defined (TABLE_USE_SIZE_OPTIMIZATION))
static _CONST __uint16_t
static const __uint16_t
from_ucs_size_ksx1001[] =
{
0x01B6, /* Ranges number */
@ -15576,7 +15576,7 @@ from_ucs_size_ksx1001[] =
* ksx1001 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_ksx1001 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -343,7 +343,7 @@ if ($Source)
* $CCSName CCS description table.
* $Separator
*/
_CONST $TypeBICCS
const $TypeBICCS
$VarBICCS =
{
\t$MacroVer1Table, /* Table version */
@ -807,7 +807,7 @@ sub Output8bitToUCS(;$)
*/
#if defined ($GuardToUCS)
static _CONST __uint16_t
static const __uint16_t
${VarToUCSSpeed}\[] =
{\n\t";
}
@ -872,7 +872,7 @@ sub Output8bitFromUCS(;$)
#if defined ($GuardFromUCS)
static _CONST unsigned char
static const unsigned char
${VarFromUCSSpeed}\[] =
{
";
@ -995,7 +995,7 @@ sub OutputSpeed($;$)
#if defined ($GuardToUCS) \\
&& !($GuardSize)
static _CONST __uint16_t
static const __uint16_t
${VarToUCSSpeed}\[] =
{
";
@ -1018,7 +1018,7 @@ ${VarToUCSSpeed}\[] =
#if defined ($GuardFromUCS) \\
&& !($GuardSize)
static _CONST __uint16_t
static const __uint16_t
${VarFromUCSSpeed}\[] =
{
";
@ -1149,7 +1149,7 @@ sub OutputSize($;$)
#if defined ($GuardToUCS) \\
&& ($GuardSize)
static _CONST __uint16_t
static const __uint16_t
${VarToUCSSize}\[] =
{
";
@ -1171,7 +1171,7 @@ ${VarToUCSSize}\[] =
#if defined ($GuardFromUCS) \\
&& ($GuardSize)
static _CONST __uint16_t
static const __uint16_t
${VarFromUCSSize}\[] =
{
";

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_WIN_1250)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_win_1250[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_win_1250[] =
#if defined (ICONV_FROM_UCS_CCS_WIN_1250)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_win_1250[] =
{
W(0x02D9), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -317,7 +317,7 @@ from_ucs_speed_win_1250[] =
* win_1250 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_win_1250 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_WIN_1251)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_win_1251[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_win_1251[] =
#if defined (ICONV_FROM_UCS_CCS_WIN_1251)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_win_1251[] =
{
W(0x044F), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -284,7 +284,7 @@ from_ucs_speed_win_1251[] =
* win_1251 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_win_1251 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_WIN_1252)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_win_1252[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_win_1252[] =
#if defined (ICONV_FROM_UCS_CCS_WIN_1252)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_win_1252[] =
{
W(0x00FF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -317,7 +317,7 @@ from_ucs_speed_win_1252[] =
* win_1252 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_win_1252 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_WIN_1253)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_win_1253[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_win_1253[] =
#if defined (ICONV_FROM_UCS_CCS_WIN_1253)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_win_1253[] =
{
W(0xFFFF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -317,7 +317,7 @@ from_ucs_speed_win_1253[] =
* win_1253 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_win_1253 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_WIN_1254)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_win_1254[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_win_1254[] =
#if defined (ICONV_FROM_UCS_CCS_WIN_1254)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_win_1254[] =
{
W(0x00FF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -317,7 +317,7 @@ from_ucs_speed_win_1254[] =
* win_1254 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_win_1254 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_WIN_1255)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_win_1255[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_win_1255[] =
#if defined (ICONV_FROM_UCS_CCS_WIN_1255)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_win_1255[] =
{
W(0xFFFF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -350,7 +350,7 @@ from_ucs_speed_win_1255[] =
* win_1255 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_win_1255 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_WIN_1256)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_win_1256[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_win_1256[] =
#if defined (ICONV_FROM_UCS_CCS_WIN_1256)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_win_1256[] =
{
W(0x06D2), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -350,7 +350,7 @@ from_ucs_speed_win_1256[] =
* win_1256 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_win_1256 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_WIN_1257)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_win_1257[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_win_1257[] =
#if defined (ICONV_FROM_UCS_CCS_WIN_1257)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_win_1257[] =
{
W(0x02D9), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -317,7 +317,7 @@ from_ucs_speed_win_1257[] =
* win_1257 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_win_1257 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -28,7 +28,7 @@
*/
#if defined (ICONV_TO_UCS_CCS_WIN_1258)
static _CONST __uint16_t
static const __uint16_t
to_ucs_speed_win_1258[] =
{
0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007,
@ -75,7 +75,7 @@ to_ucs_speed_win_1258[] =
#if defined (ICONV_FROM_UCS_CCS_WIN_1258)
static _CONST unsigned char
static const unsigned char
from_ucs_speed_win_1258[] =
{
W(0x00FF), /* Real 0xFF mapping. 0xFF is used to mark invalid codes */
@ -350,7 +350,7 @@ from_ucs_speed_win_1258[] =
* win_1258 CCS description table.
* ======================================================================
*/
_CONST iconv_ccs_t
const iconv_ccs_t
_iconv_ccs_win_1258 =
{
TABLE_VERSION_1, /* Table version */

View File

@ -12,7 +12,7 @@
*/
#if defined (ICONV_TO_UCS_CES_EUC) \
|| defined (ICONV_FROM_UCS_CES_EUC)
static _CONST char *
static const char *
iconv_ces_names_euc[] =
{
# if defined (_ICONV_FROM_ENCODING_EUC_JP) \
@ -33,7 +33,7 @@ iconv_ces_names_euc[] =
#if defined (ICONV_TO_UCS_CES_TABLE) \
|| defined (ICONV_FROM_UCS_CES_TABLE)
static _CONST char *
static const char *
iconv_ces_names_table[] =
{
# if defined (_ICONV_FROM_ENCODING_CP775) \
@ -174,7 +174,7 @@ iconv_ces_names_table[] =
#if defined (ICONV_TO_UCS_CES_TABLE_PCS) \
|| defined (ICONV_FROM_UCS_CES_TABLE_PCS)
static _CONST char *
static const char *
iconv_ces_names_table_pcs[] =
{
# if defined (_ICONV_FROM_ENCODING_BIG5) \
@ -187,7 +187,7 @@ iconv_ces_names_table_pcs[] =
#if defined (ICONV_TO_UCS_CES_UCS_2) \
|| defined (ICONV_FROM_UCS_CES_UCS_2)
static _CONST char *
static const char *
iconv_ces_names_ucs_2[] =
{
# if defined (_ICONV_FROM_ENCODING_UCS_2) \
@ -208,7 +208,7 @@ iconv_ces_names_ucs_2[] =
#if defined (ICONV_TO_UCS_CES_UCS_2_INTERNAL) \
|| defined (ICONV_FROM_UCS_CES_UCS_2_INTERNAL)
static _CONST char *
static const char *
iconv_ces_names_ucs_2_internal[] =
{
# if defined (_ICONV_FROM_ENCODING_UCS_2_INTERNAL) \
@ -221,7 +221,7 @@ iconv_ces_names_ucs_2_internal[] =
#if defined (ICONV_TO_UCS_CES_UCS_4) \
|| defined (ICONV_FROM_UCS_CES_UCS_4)
static _CONST char *
static const char *
iconv_ces_names_ucs_4[] =
{
# if defined (_ICONV_FROM_ENCODING_UCS_4) \
@ -242,7 +242,7 @@ iconv_ces_names_ucs_4[] =
#if defined (ICONV_TO_UCS_CES_UCS_4_INTERNAL) \
|| defined (ICONV_FROM_UCS_CES_UCS_4_INTERNAL)
static _CONST char *
static const char *
iconv_ces_names_ucs_4_internal[] =
{
# if defined (_ICONV_FROM_ENCODING_UCS_4_INTERNAL) \
@ -255,7 +255,7 @@ iconv_ces_names_ucs_4_internal[] =
#if defined (ICONV_TO_UCS_CES_US_ASCII) \
|| defined (ICONV_FROM_UCS_CES_US_ASCII)
static _CONST char *
static const char *
iconv_ces_names_us_ascii[] =
{
# if defined (_ICONV_FROM_ENCODING_US_ASCII) \
@ -268,7 +268,7 @@ iconv_ces_names_us_ascii[] =
#if defined (ICONV_TO_UCS_CES_UTF_16) \
|| defined (ICONV_FROM_UCS_CES_UTF_16)
static _CONST char *
static const char *
iconv_ces_names_utf_16[] =
{
# if defined (_ICONV_FROM_ENCODING_UTF_16) \
@ -289,7 +289,7 @@ iconv_ces_names_utf_16[] =
#if defined (ICONV_TO_UCS_CES_UTF_8) \
|| defined (ICONV_FROM_UCS_CES_UTF_8)
static _CONST char *
static const char *
iconv_ces_names_utf_8[] =
{
# if defined (_ICONV_FROM_ENCODING_UTF_8) \
@ -303,99 +303,99 @@ iconv_ces_names_utf_8[] =
/*
* The following structure contains the list of "to UCS" linked-in CES converters.
*/
_CONST iconv_to_ucs_ces_t
const iconv_to_ucs_ces_t
_iconv_to_ucs_ces[] =
{
#ifdef ICONV_TO_UCS_CES_EUC
{(_CONST char **)iconv_ces_names_euc,
{(const char **)iconv_ces_names_euc,
&_iconv_to_ucs_ces_handlers_euc},
#endif
#ifdef ICONV_TO_UCS_CES_TABLE
{(_CONST char **)iconv_ces_names_table,
{(const char **)iconv_ces_names_table,
&_iconv_to_ucs_ces_handlers_table},
#endif
#ifdef ICONV_TO_UCS_CES_TABLE_PCS
{(_CONST char **)iconv_ces_names_table_pcs,
{(const char **)iconv_ces_names_table_pcs,
&_iconv_to_ucs_ces_handlers_table_pcs},
#endif
#ifdef ICONV_TO_UCS_CES_UCS_2
{(_CONST char **)iconv_ces_names_ucs_2,
{(const char **)iconv_ces_names_ucs_2,
&_iconv_to_ucs_ces_handlers_ucs_2},
#endif
#ifdef ICONV_TO_UCS_CES_UCS_2_INTERNAL
{(_CONST char **)iconv_ces_names_ucs_2_internal,
{(const char **)iconv_ces_names_ucs_2_internal,
&_iconv_to_ucs_ces_handlers_ucs_2_internal},
#endif
#ifdef ICONV_TO_UCS_CES_UCS_4
{(_CONST char **)iconv_ces_names_ucs_4,
{(const char **)iconv_ces_names_ucs_4,
&_iconv_to_ucs_ces_handlers_ucs_4},
#endif
#ifdef ICONV_TO_UCS_CES_UCS_4_INTERNAL
{(_CONST char **)iconv_ces_names_ucs_4_internal,
{(const char **)iconv_ces_names_ucs_4_internal,
&_iconv_to_ucs_ces_handlers_ucs_4_internal},
#endif
#ifdef ICONV_TO_UCS_CES_US_ASCII
{(_CONST char **)iconv_ces_names_us_ascii,
{(const char **)iconv_ces_names_us_ascii,
&_iconv_to_ucs_ces_handlers_us_ascii},
#endif
#ifdef ICONV_TO_UCS_CES_UTF_16
{(_CONST char **)iconv_ces_names_utf_16,
{(const char **)iconv_ces_names_utf_16,
&_iconv_to_ucs_ces_handlers_utf_16},
#endif
#ifdef ICONV_TO_UCS_CES_UTF_8
{(_CONST char **)iconv_ces_names_utf_8,
{(const char **)iconv_ces_names_utf_8,
&_iconv_to_ucs_ces_handlers_utf_8},
#endif
{(_CONST char **)NULL,
{(const char **)NULL,
(iconv_to_ucs_ces_handlers_t *)NULL}
};
/*
* The following structure contains the list of "from UCS" linked-in CES converters.
*/
_CONST iconv_from_ucs_ces_t
const iconv_from_ucs_ces_t
_iconv_from_ucs_ces[] =
{
#ifdef ICONV_FROM_UCS_CES_EUC
{(_CONST char **)iconv_ces_names_euc,
{(const char **)iconv_ces_names_euc,
&_iconv_from_ucs_ces_handlers_euc},
#endif
#ifdef ICONV_FROM_UCS_CES_TABLE
{(_CONST char **)iconv_ces_names_table,
{(const char **)iconv_ces_names_table,
&_iconv_from_ucs_ces_handlers_table},
#endif
#ifdef ICONV_FROM_UCS_CES_TABLE_PCS
{(_CONST char **)iconv_ces_names_table_pcs,
{(const char **)iconv_ces_names_table_pcs,
&_iconv_from_ucs_ces_handlers_table_pcs},
#endif
#ifdef ICONV_FROM_UCS_CES_UCS_2
{(_CONST char **)iconv_ces_names_ucs_2,
{(const char **)iconv_ces_names_ucs_2,
&_iconv_from_ucs_ces_handlers_ucs_2},
#endif
#ifdef ICONV_FROM_UCS_CES_UCS_2_INTERNAL
{(_CONST char **)iconv_ces_names_ucs_2_internal,
{(const char **)iconv_ces_names_ucs_2_internal,
&_iconv_from_ucs_ces_handlers_ucs_2_internal},
#endif
#ifdef ICONV_FROM_UCS_CES_UCS_4
{(_CONST char **)iconv_ces_names_ucs_4,
{(const char **)iconv_ces_names_ucs_4,
&_iconv_from_ucs_ces_handlers_ucs_4},
#endif
#ifdef ICONV_FROM_UCS_CES_UCS_4_INTERNAL
{(_CONST char **)iconv_ces_names_ucs_4_internal,
{(const char **)iconv_ces_names_ucs_4_internal,
&_iconv_from_ucs_ces_handlers_ucs_4_internal},
#endif
#ifdef ICONV_FROM_UCS_CES_US_ASCII
{(_CONST char **)iconv_ces_names_us_ascii,
{(const char **)iconv_ces_names_us_ascii,
&_iconv_from_ucs_ces_handlers_us_ascii},
#endif
#ifdef ICONV_FROM_UCS_CES_UTF_16
{(_CONST char **)iconv_ces_names_utf_16,
{(const char **)iconv_ces_names_utf_16,
&_iconv_from_ucs_ces_handlers_utf_16},
#endif
#ifdef ICONV_FROM_UCS_CES_UTF_8
{(_CONST char **)iconv_ces_names_utf_8,
{(const char **)iconv_ces_names_utf_8,
&_iconv_from_ucs_ces_handlers_utf_8},
#endif
{(_CONST char **)NULL,
{(const char **)NULL,
(iconv_from_ucs_ces_handlers_t *)NULL}
};

View File

@ -183,92 +183,92 @@
* These handlers are actually defined in correspondent CES converter files.
*/
#ifdef ICONV_TO_UCS_CES_EUC
extern _CONST iconv_to_ucs_ces_handlers_t
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
extern const iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_utf_8;
#endif

View File

@ -103,7 +103,7 @@ static euc_cs_desc_t euc_kr_cs_desc [] =
static _VOID_PTR
_DEFUN(euc_from_ucs_init, (rptr, encoding),
struct _reent *rptr,
_CONST char *encoding)
const char *encoding)
{
int i;
euc_data_t *data;
@ -263,7 +263,7 @@ _DEFUN(euc_convert_from_ucs, (data, in, outbuf, outbytesleft),
static _VOID_PTR
_DEFUN(euc_to_ucs_init, (rptr, encoding),
struct _reent *rptr,
_CONST char *encoding)
const char *encoding)
{
int i;
euc_data_t *data;
@ -347,7 +347,7 @@ _DEFUN(euc_to_ucs_close, (rptr, data),
static ucs4_t
_DEFUN(euc_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft)
{
int i;
@ -366,8 +366,8 @@ _DEFUN(euc_convert_to_ucs, (data, inbuf, inbytesleft),
for (i = 1; d->desc[i].csname != NULL; i++)
{
if (memcmp((_CONST _VOID_PTR)(*inbuf),
(_CONST _VOID_PTR)d->desc[i].prefix,
if (memcmp((const _VOID_PTR)(*inbuf),
(const _VOID_PTR)d->desc[i].prefix,
d->desc[i].prefixbytes) == 0)
{
if (((int)*inbytesleft - d->desc[i].prefixbytes - d->desc[i].bytes) < 0)
@ -388,7 +388,7 @@ _DEFUN(euc_convert_to_ucs, (data, inbuf, inbytesleft),
res = _iconv_to_ucs_ces_handlers_table.convert_to_ucs (
d->data[i],
(_CONST unsigned char **)&inbuf1,
(const unsigned char **)&inbuf1,
&inbytesleft1);
if (((__int32_t)res) > 0)
{
@ -419,7 +419,7 @@ _DEFUN(euc_convert_to_ucs, (data, inbuf, inbytesleft),
res = _iconv_to_ucs_ces_handlers_table.convert_to_ucs (
d->data[0],
(_CONST unsigned char **)&inbuf1,
(const unsigned char **)&inbuf1,
&inbytesleft1);
if (((__int32_t)res) > 0)
{
@ -439,7 +439,7 @@ _DEFUN(euc_get_mb_cur_max, (data),
}
#if defined (ICONV_FROM_UCS_CES_EUC)
_CONST iconv_from_ucs_ces_handlers_t
const iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_euc =
{
euc_from_ucs_init,
@ -453,7 +453,7 @@ _iconv_from_ucs_ces_handlers_euc =
#endif
#if defined (ICONV_TO_UCS_CES_EUC)
_CONST iconv_to_ucs_ces_handlers_t
const iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_euc =
{
euc_to_ucs_init,

View File

@ -524,12 +524,12 @@ sub generate_cesbi_h($$)
foreach my $ces (@ces)
{
print CESBI_H "#ifdef $macro_to_ucs_ces\U$ces\n";
print CESBI_H "extern _CONST iconv_to_ucs_ces_handlers_t\n";
print CESBI_H "extern const iconv_to_ucs_ces_handlers_t\n";
print CESBI_H "$var_to_ucs_handlers$ces;\n";
print CESBI_H "#endif\n";
print CESBI_H "#ifdef $macro_from_ucs_ces\U$ces\n";
print CESBI_H "extern _CONST iconv_from_ucs_ces_handlers_t\n";
print CESBI_H "extern const iconv_from_ucs_ces_handlers_t\n";
print CESBI_H "$var_from_ucs_handlers$ces;\n";
print CESBI_H "#endif\n\n";
}
@ -584,7 +584,7 @@ sub generate_aliasesbi_c($)
print ALIASESBI_C "$comment_automatic\n\n";
print ALIASESBI_C "#include <_ansi.h>\n";
print ALIASESBI_C "#include \"encnames.h\"\n\n";
print ALIASESBI_C "_CONST char *\n";
print ALIASESBI_C "const char *\n";
print ALIASESBI_C "$var_aliases =\n";
print ALIASESBI_C "{\n";
@ -749,7 +749,7 @@ sub generate_ccsbi_h($)
{
print CCSBI_H "#if defined ($macro_to_ucs_ccs\U$ccs) \\\n";
print CCSBI_H " || defined ($macro_from_ucs_ccs\U$ccs)\n";
print CCSBI_H "extern _CONST iconv_ccs_t\n";
print CCSBI_H "extern const iconv_ccs_t\n";
print CCSBI_H "$var_ccs$ccs;\n";
print CCSBI_H "#endif\n";
}
@ -789,7 +789,7 @@ sub generate_cesbi_c($)
{
print CESBI_C "#if defined ($macro_to_ucs_ces\U$ces) \\\n";
print CESBI_C " || defined ($macro_from_ucs_ces\U$ces)\n";
print CESBI_C "static _CONST char *\n";
print CESBI_C "static const char *\n";
print CESBI_C "$var_ces_names${ces}\[] =\n";
print CESBI_C "{\n";
my @encodings = sort @{$cesenc{$ces}};
@ -808,36 +808,36 @@ sub generate_cesbi_c($)
print CESBI_C "/*\n";
print CESBI_C " * The following structure contains the list of \"to UCS\" linked-in CES converters.\n";
print CESBI_C " */\n";
print CESBI_C "_CONST iconv_to_ucs_ces_t\n";
print CESBI_C "const iconv_to_ucs_ces_t\n";
print CESBI_C "_iconv_to_ucs_ces[] =\n";
print CESBI_C "{\n";
foreach my $ces (@ces)
{
print CESBI_C "#ifdef $macro_to_ucs_ces\U$ces\n";
print CESBI_C " {(_CONST char **)$var_ces_names$ces,\n";
print CESBI_C " {(const char **)$var_ces_names$ces,\n";
print CESBI_C " &$var_to_ucs_handlers$ces},\n";
print CESBI_C "#endif\n";
}
print CESBI_C " {(_CONST char **)NULL,\n";
print CESBI_C " {(const char **)NULL,\n";
print CESBI_C " (iconv_to_ucs_ces_handlers_t *)NULL}\n";
print CESBI_C "};\n\n";
print CESBI_C "/*\n";
print CESBI_C " * The following structure contains the list of \"from UCS\" linked-in CES converters.\n";
print CESBI_C " */\n";
print CESBI_C "_CONST iconv_from_ucs_ces_t\n";
print CESBI_C "const iconv_from_ucs_ces_t\n";
print CESBI_C "_iconv_from_ucs_ces[] =\n";
print CESBI_C "{\n";
foreach my $ces (@ces)
{
print CESBI_C "#ifdef $macro_from_ucs_ces\U$ces\n";
print CESBI_C " {(_CONST char **)$var_ces_names$ces,\n";
print CESBI_C " {(const char **)$var_ces_names$ces,\n";
print CESBI_C " &$var_from_ucs_handlers$ces},\n";
print CESBI_C "#endif\n";
}
print CESBI_C " {(_CONST char **)NULL,\n";
print CESBI_C " {(const char **)NULL,\n";
print CESBI_C " (iconv_from_ucs_ces_handlers_t *)NULL}\n";
print CESBI_C "};\n";
@ -866,7 +866,7 @@ sub generate_ccsbi_c($)
print CESBI_C " * The following array contains the list of built-in CCS tables.\n";
print CESBI_C " */\n";
print CESBI_C "_CONST iconv_ccs_t *\n";
print CESBI_C "const iconv_ccs_t *\n";
print CESBI_C "_iconv_ccs[] =\n";
print CESBI_C "{\n";

View File

@ -67,7 +67,7 @@ _DEFUN(table_pcs_convert_from_ucs, (data, in, outbuf, outbytesleft),
static _VOID_PTR
_DEFUN(table_pcs_from_ucs_init, (rptr, encoding),
struct _reent *rptr,
_CONST char *encoding)
const char *encoding)
{
return _iconv_from_ucs_ces_handlers_table.init (rptr, encoding);
}
@ -93,7 +93,7 @@ _DEFUN(table_pcs_from_ucs_get_mb_cur_max, (data),
static ucs4_t
_DEFUN(table_pcs_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft)
{
if (*inbytesleft < 1)
@ -115,7 +115,7 @@ _DEFUN(table_pcs_convert_to_ucs, (data, inbuf, inbytesleft),
static _VOID_PTR
_DEFUN(table_pcs_to_ucs_init, (rptr, encoding),
struct _reent *rptr,
_CONST char *encoding)
const char *encoding)
{
return _iconv_to_ucs_ces_handlers_table.init (rptr, encoding);
}
@ -138,7 +138,7 @@ _DEFUN(table_pcs_to_ucs_get_mb_cur_max, (data),
#endif /* ICONV_TO_UCS_CES_TABLE_PCS */
#if defined (ICONV_FROM_UCS_CES_TABLE_PCS)
_CONST iconv_from_ucs_ces_handlers_t
const iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_table_pcs =
{
table_pcs_from_ucs_init,
@ -152,7 +152,7 @@ _iconv_from_ucs_ces_handlers_table_pcs =
#endif
#if defined (ICONV_TO_UCS_CES_TABLE_PCS)
_CONST iconv_to_ucs_ces_handlers_t
const iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_table_pcs =
{
table_pcs_to_ucs_init,

View File

@ -57,17 +57,17 @@
*/
static ucs2_t
_EXFUN(find_code_size, (ucs2_t code, _CONST __uint16_t *tblp));
_EXFUN(find_code_size, (ucs2_t code, const __uint16_t *tblp));
static __inline ucs2_t
_EXFUN(find_code_speed, (ucs2_t code, _CONST __uint16_t *tblp));
_EXFUN(find_code_speed, (ucs2_t code, const __uint16_t *tblp));
static __inline ucs2_t
_EXFUN(find_code_speed_8bit, (ucs2_t code, _CONST unsigned char *tblp));
_EXFUN(find_code_speed_8bit, (ucs2_t code, const unsigned char *tblp));
#ifdef _ICONV_ENABLE_EXTERNAL_CCS
static _CONST iconv_ccs_desc_t *
_EXFUN(load_file, (struct _reent *rptr, _CONST char *name, int direction));
static const iconv_ccs_desc_t *
_EXFUN(load_file, (struct _reent *rptr, const char *name, int direction));
#endif
/*
@ -78,7 +78,7 @@ _DEFUN(table_close, (rptr, data),
struct _reent *rptr,
_VOID_PTR data)
{
_CONST iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data;
const iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data;
if (ccsp->type == TABLE_EXTERNAL)
_free_r (rptr, (_VOID_PTR)ccsp->tbl);
@ -91,10 +91,10 @@ _DEFUN(table_close, (rptr, data),
static _VOID_PTR
_DEFUN(table_init_from_ucs, (rptr, encoding),
struct _reent *rptr,
_CONST char *encoding)
const char *encoding)
{
int i;
_CONST iconv_ccs_t *biccsp = NULL;
const iconv_ccs_t *biccsp = NULL;
iconv_ccs_desc_t *ccsp;
for (i = 0; _iconv_ccs[i] != NULL; i++)
@ -133,7 +133,7 @@ _DEFUN(table_convert_from_ucs, (data, in, outbuf, outbytesleft),
unsigned char **outbuf,
size_t *outbytesleft)
{
_CONST iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data;
const iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data;
ucs2_t code;
if (in > 0xFFFF || in == INVALC)
@ -142,7 +142,7 @@ _DEFUN(table_convert_from_ucs, (data, in, outbuf, outbytesleft),
if (ccsp->bits == TABLE_8BIT)
{
code = find_code_speed_8bit ((ucs2_t)in,
(_CONST unsigned char *)ccsp->tbl);
(const unsigned char *)ccsp->tbl);
if (code == INVALC)
return (size_t)ICONV_CES_INVALID_CHARACTER;
**outbuf = (unsigned char)code;
@ -174,10 +174,10 @@ _DEFUN(table_convert_from_ucs, (data, in, outbuf, outbytesleft),
static _VOID_PTR
_DEFUN(table_init_to_ucs, (rptr, encoding),
struct _reent *rptr,
_CONST char *encoding)
const char *encoding)
{
int i;
_CONST iconv_ccs_t *biccsp = NULL;
const iconv_ccs_t *biccsp = NULL;
iconv_ccs_desc_t *ccsp;
for (i = 0; _iconv_ccs[i] != NULL; i++)
@ -212,10 +212,10 @@ _DEFUN(table_init_to_ucs, (rptr, encoding),
static ucs4_t
_DEFUN(table_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft)
{
_CONST iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data;
const iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data;
ucs2_t ucs;
if (ccsp->bits == TABLE_8BIT)
@ -261,7 +261,7 @@ _DEFUN(table_get_mb_cur_max, (data),
#if defined (ICONV_TO_UCS_CES_TABLE)
_CONST iconv_to_ucs_ces_handlers_t
const iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_table =
{
table_init_to_ucs,
@ -275,7 +275,7 @@ _iconv_to_ucs_ces_handlers_table =
#endif /* ICONV_FROM_UCS_CES_TABLE */
#if defined (ICONV_FROM_UCS_CES_TABLE)
_CONST iconv_from_ucs_ces_handlers_t
const iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_table =
{
table_init_from_ucs,
@ -297,7 +297,7 @@ _iconv_from_ucs_ces_handlers_table =
*
* PARAMETERS:
* ucs2_t code - code whose mapping to find.
* _CONST __uint16_t *tblp - table pointer.
* const __uint16_t *tblp - table pointer.
*
* RETURN:
* Code that corresponds to 'code'.
@ -305,7 +305,7 @@ _iconv_from_ucs_ces_handlers_table =
static __inline ucs2_t
_DEFUN(find_code_speed, (code, tblp),
ucs2_t code,
_CONST __uint16_t *tblp)
const __uint16_t *tblp)
{
int idx = tblp[code >> 8];
@ -320,7 +320,7 @@ _DEFUN(find_code_speed, (code, tblp),
*
* PARAMETERS:
* ucs2_t code - code whose mapping to find.
* _CONST __uint16_t *tblp - table pointer.
* const __uint16_t *tblp - table pointer.
*
* RETURN:
* Code that corresponds to 'code'.
@ -328,7 +328,7 @@ _DEFUN(find_code_speed, (code, tblp),
static __inline ucs2_t
_DEFUN(find_code_speed_8bit, (code, tblp),
ucs2_t code,
_CONST unsigned char *tblp)
const unsigned char *tblp)
{
int idx;
unsigned char ccs;
@ -360,7 +360,7 @@ _DEFUN(find_code_speed_8bit, (code, tblp),
*
* PARAMETERS:
* ucs2_t code - code whose mapping to find.
* _CONST __uint16_t *tblp - table pointer.
* const __uint16_t *tblp - table pointer.
*
* RETURN:
* Code that corresponds to 'code'.
@ -368,7 +368,7 @@ _DEFUN(find_code_speed_8bit, (code, tblp),
static ucs2_t
_DEFUN(find_code_size, (code, tblp),
ucs2_t code,
_CONST __uint16_t *tblp)
const __uint16_t *tblp)
{
int first, last, cur, center;
@ -447,7 +447,7 @@ _DEFUN(find_code_size, (code, tblp),
*
* PARAMETERS:
* struct _reent *rptr - reent structure of current thread/process.
* _CONST char *name - encoding name.
* const char *name - encoding name.
* int direction - conversion direction.
*
* DESCRIPTION:
@ -459,17 +459,17 @@ _DEFUN(find_code_size, (code, tblp),
* RETURN:
* iconv_ccs_desc_t * pointer is success, NULL if failure.
*/
static _CONST iconv_ccs_desc_t *
static const iconv_ccs_desc_t *
_DEFUN(load_file, (rptr, name, direction),
struct _reent *rptr,
_CONST char *name,
const char *name,
int direction)
{
int fd;
_CONST unsigned char *buf;
const unsigned char *buf;
int tbllen, hdrlen;
off_t off;
_CONST char *fname;
const char *fname;
iconv_ccs_desc_t *ccsp = NULL;
int nmlen = strlen(name);
/* Since CCS table name length can vary - it is aligned (by adding extra
@ -487,7 +487,7 @@ _DEFUN(load_file, (rptr, name, direction),
if ((fd = _open_r (rptr, fname, O_RDONLY, S_IRUSR)) == -1)
goto error1;
if ((buf = (_CONST unsigned char *)_malloc_r (rptr, hdrlen)) == NULL)
if ((buf = (const unsigned char *)_malloc_r (rptr, hdrlen)) == NULL)
goto error2;
if (_read_r (rptr, fd, (_VOID_PTR)buf, hdrlen) != hdrlen)

View File

@ -68,7 +68,7 @@ _DEFUN(ucs_2_internal_convert_from_ucs, (data, in, outbuf, outbytesleft),
static ucs4_t
_DEFUN(ucs_2_internal_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft)
{
register ucs4_t res;
@ -96,7 +96,7 @@ _DEFUN(ucs_2_internal_get_mb_cur_max, (data),
}
#if defined (ICONV_TO_UCS_CES_UCS_2_INTERNAL)
_CONST iconv_to_ucs_ces_handlers_t
const iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_ucs_2_internal =
{
NULL,
@ -110,7 +110,7 @@ _iconv_to_ucs_ces_handlers_ucs_2_internal =
#endif
#if defined (ICONV_FROM_UCS_CES_UCS_2_INTERNAL)
_CONST iconv_from_ucs_ces_handlers_t
const iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_ucs_2_internal =
{
NULL,

View File

@ -52,7 +52,7 @@
static _VOID_PTR
_DEFUN(ucs_2_init, (rptr, encoding),
struct _reent *rptr,
_CONST char *encoding)
const char *encoding)
{
int *data;
@ -107,7 +107,7 @@ _DEFUN(ucs_2_convert_from_ucs, (data, in, outbuf, outbytesleft),
static ucs4_t
_DEFUN(ucs_2_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft)
{
ucs4_t res;
@ -139,7 +139,7 @@ _DEFUN(ucs_2_get_mb_cur_max, (data),
}
#if defined (ICONV_TO_UCS_CES_UCS_2)
_CONST iconv_to_ucs_ces_handlers_t
const iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_ucs_2 =
{
ucs_2_init,
@ -153,7 +153,7 @@ _iconv_to_ucs_ces_handlers_ucs_2 =
#endif
#if defined (ICONV_FROM_UCS_CES_UCS_2)
_CONST iconv_from_ucs_ces_handlers_t
const iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_ucs_2 =
{
ucs_2_init,

View File

@ -68,7 +68,7 @@ _DEFUN(ucs_4_internal_convert_from_ucs, (data, in, outbuf, outbytesleft),
static ucs4_t
_DEFUN(ucs_4_internal_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft)
{
register ucs4_t res;
@ -96,7 +96,7 @@ _DEFUN(ucs_4_internal_get_mb_cur_max, (data),
}
#if defined (ICONV_TO_UCS_CES_UCS_4_INTERNAL)
_CONST iconv_to_ucs_ces_handlers_t
const iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_ucs_4_internal =
{
NULL,
@ -110,7 +110,7 @@ _iconv_to_ucs_ces_handlers_ucs_4_internal =
#endif
#if defined (ICONV_FROM_UCS_CES_UCS_4_INTERNAL)
_CONST iconv_from_ucs_ces_handlers_t
const iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_ucs_4_internal =
{
NULL,

View File

@ -53,7 +53,7 @@
static _VOID_PTR
_DEFUN(ucs_4_init, (rptr, encoding),
struct _reent *rptr,
_CONST char *encoding)
const char *encoding)
{
int *data;
@ -109,7 +109,7 @@ _DEFUN(ucs_4_convert_from_ucs, (data, in, outbuf, outbytesleft),
static ucs4_t
_DEFUN(ucs_4_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft)
{
ucs4_t res;
@ -141,7 +141,7 @@ _DEFUN(ucs_4_get_mb_cur_max, (data),
}
#if defined (ICONV_TO_UCS_CES_UCS_4)
_CONST iconv_to_ucs_ces_handlers_t
const iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_ucs_4 =
{
ucs_4_init,
@ -155,7 +155,7 @@ _iconv_to_ucs_ces_handlers_ucs_4 =
#endif
#if defined (ICONV_FROM_UCS_CES_UCS_4)
_CONST iconv_from_ucs_ces_handlers_t
const iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_ucs_4 =
{
ucs_4_init,

View File

@ -62,7 +62,7 @@ _DEFUN(us_ascii_convert_from_ucs, (data, in, outbuf, outbytesleft),
static ucs4_t
_DEFUN(us_ascii_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft)
{
ucs4_t res;
@ -90,7 +90,7 @@ _DEFUN(us_ascii_get_mb_cur_max, (data),
}
#if defined (ICONV_TO_UCS_CES_US_ASCII)
_CONST iconv_to_ucs_ces_handlers_t
const iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_us_ascii =
{
NULL,
@ -104,7 +104,7 @@ _iconv_to_ucs_ces_handlers_us_ascii =
#endif
#if defined (ICONV_FROM_UCS_CES_US_ASCII)
_CONST iconv_from_ucs_ces_handlers_t
const iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_us_ascii =
{
NULL,

View File

@ -70,7 +70,7 @@ _DEFUN(utf_16_close, (rptr, data),
static _VOID_PTR
_DEFUN(utf_16_init_from_ucs, (rptr, encoding),
struct _reent *rptr,
_CONST char *encoding)
const char *encoding)
{
int *data;
@ -172,7 +172,7 @@ _DEFUN(utf_16_convert_from_ucs, (data, in, outbuf, outbytesleft),
static _VOID_PTR
_DEFUN(utf_16_init_to_ucs, (rptr, encoding),
struct _reent *rptr,
_CONST char *encoding)
const char *encoding)
{
int *data;
@ -192,7 +192,7 @@ _DEFUN(utf_16_init_to_ucs, (rptr, encoding),
static ucs4_t
_DEFUN(utf_16_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft)
{
register ucs2_t w1;
@ -275,7 +275,7 @@ _DEFUN(utf_16_get_mb_cur_max, (data),
}
#if defined (ICONV_TO_UCS_CES_UTF_16)
_CONST iconv_to_ucs_ces_handlers_t
const iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_utf_16 =
{
utf_16_init_to_ucs,
@ -289,7 +289,7 @@ _iconv_to_ucs_ces_handlers_utf_16 =
#endif
#if defined (ICONV_FROM_UCS_CES_UTF_16)
_CONST iconv_from_ucs_ces_handlers_t
const iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_utf_16 =
{
utf_16_init_from_ucs,

View File

@ -127,10 +127,10 @@ _DEFUN(convert_from_ucs, (data, in, outbuf, outbytesleft),
static ucs4_t
_DEFUN(convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft)
{
register _CONST unsigned char *in = *inbuf;
register const unsigned char *in = *inbuf;
register size_t bytes;
ucs4_t res;
@ -266,7 +266,7 @@ _DEFUN(get_mb_cur_max, (data),
}
#if defined (ICONV_TO_UCS_CES_UTF_8)
_CONST iconv_to_ucs_ces_handlers_t
const iconv_to_ucs_ces_handlers_t
_iconv_to_ucs_ces_handlers_utf_8 =
{
NULL,
@ -280,7 +280,7 @@ _iconv_to_ucs_ces_handlers_utf_8 =
#endif
#if defined (ICONV_FROM_UCS_CES_UTF_8)
_CONST iconv_from_ucs_ces_handlers_t
const iconv_from_ucs_ces_handlers_t
_iconv_from_ucs_ces_handlers_utf_8 =
{
NULL,

View File

@ -5,7 +5,7 @@
#include <_ansi.h>
#include "encnames.h"
_CONST char *
const char *
_iconv_aliases =
{
#if defined (_ICONV_FROM_ENCODING_BIG5) \

View File

@ -38,7 +38,7 @@
*
* PARAMETERS:
* struct _reent *rptr - reent structure of current thread/process.
* _CONST char *str - string to canonize.
* const char *str - string to canonize.
*
* DESCRIPTION:
* Converts all letters to small and substitute all '-' characters by '_'
@ -47,15 +47,15 @@
* RETURN:
* Returns canonical form of 'str' if success, NULL if failure.
*/
static _CONST char *
static const char *
_DEFUN(canonical_form, (rptr, str),
struct _reent *rptr,
_CONST char *str)
const char *str)
{
char *p, *p1;
if (str == NULL || (p = p1 = _strdup_r (rptr, str)) == NULL)
return (_CONST char *)NULL;
return (const char *)NULL;
for (; *str; str++, p++)
{
@ -65,7 +65,7 @@ _DEFUN(canonical_form, (rptr, str),
*p = tolower (*str);
}
return (_CONST char *)p1;
return (const char *)p1;
}
/*
@ -73,8 +73,8 @@ _DEFUN(canonical_form, (rptr, str),
*
* PARAMETERS:
* struct _reent *rptr - reent structure of current thread/process.
* _CONST char *alias - alias by which "official" name should be found.
* _CONST char *table - aliases table.
* const char *alias - alias by which "official" name should be found.
* const char *table - aliases table.
* int len - aliases table length.
*
* DESCRIPTION:
@ -95,15 +95,15 @@ _DEFUN(canonical_form, (rptr, str),
static char *
_DEFUN(find_alias, (rptr, alias, table, len),
struct _reent *rptr,
_CONST char *alias,
_CONST char *table,
const char *alias,
const char *table,
int len)
{
_CONST char *end;
_CONST char *p;
const char *end;
const char *p;
int l = strlen (alias);
_CONST char *ptable = table;
_CONST char *table_end = table + len;
const char *ptable = table;
const char *table_end = table + len;
if (table == NULL || alias == NULL || *table == '\0' || *alias == '\0')
return NULL;
@ -136,7 +136,7 @@ search_again:
*
* PARAMETERS:
* struct _reent *rptr - reent structure of current thread/process.
* _CONST char *ca - encoding alias to resolve.
* const char *ca - encoding alias to resolve.
*
* DESCRIPTION:
* First, tries to find 'ca' among built-in aliases. If not found, tries to
@ -149,7 +149,7 @@ search_again:
char *
_DEFUN(_iconv_resolve_encoding_name, (rptr, cname, path),
struct _reent *rptr,
_CONST char *ca)
const char *ca)
{
char *p = (char *)ca;

View File

@ -52,8 +52,8 @@ typedef struct
*
* PARAMETERS:
* struct _reent *rptr - reent structure of current thread/process;
* _CONST char *to - output encoding's normalized name;
* _CONST char *from - input encoding's normalized name.
* const char *to - output encoding's normalized name;
* const char *from - input encoding's normalized name.
*
* DESCRIPTION:
* This function is called from iconv_open() to open conversion. Returns
@ -64,8 +64,8 @@ typedef struct
* returns NULL and sets current thread's/process's errno.
*/
_VOID_PTR _EXFNPTR(open, (struct _reent *rptr,
_CONST char *to,
_CONST char *from));
const char *to,
const char *from));
/*
* close - close conversion.
@ -89,7 +89,7 @@ typedef struct
* PARAMETERS:
* struct _reent *rptr - reent structure of current thread/process.
* _VOID_PTR data - conversion-specific data;
* _CONST unsigned char **inbuf - input data buffer;
* const unsigned char **inbuf - input data buffer;
* size_t *inbytesleft - input buffer's length;
* unsigned char **outbuf - output data buffer;
* size_t *outbytesleft - output buffer free space;
@ -116,7 +116,7 @@ typedef struct
*/
size_t _EXFNPTR(convert, (struct _reent *rptr,
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft,
unsigned char **outbuf,
size_t *outbytesleft,
@ -199,7 +199,7 @@ typedef struct
typedef struct
{
/* Iconv conversion handlers. */
_CONST iconv_conversion_handlers_t *handlers;
const iconv_conversion_handlers_t *handlers;
/*
* Conversion-specific data (e.g., points to iconv_ucs_conversion_t
@ -210,11 +210,11 @@ typedef struct
/* UCS-based conversion handlers */
extern _CONST iconv_conversion_handlers_t
extern const iconv_conversion_handlers_t
_iconv_ucs_conversion_handlers;
/* Null conversion handlers */
extern _CONST iconv_conversion_handlers_t
extern const iconv_conversion_handlers_t
_iconv_null_conversion_handlers;
#endif /* !__ICONV_CONVERSION_H__ */

View File

@ -121,8 +121,8 @@ No supporting OS subroutine calls are required.
iconv_t
_DEFUN(iconv_open, (to, from),
_CONST char *to,
_CONST char *from)
const char *to,
const char *from)
{
return _iconv_open_r (_REENT, to, from);
}
@ -136,7 +136,7 @@ _DEFUN(iconv, (cd, inbuf, inbytesleft, outbuf, outbytesleft),
char **__restrict outbuf,
size_t *__restrict outbytesleft)
{
return _iconv_r (_REENT, cd, (_CONST char **) inbuf, inbytesleft,
return _iconv_r (_REENT, cd, (const char **) inbuf, inbytesleft,
outbuf, outbytesleft);
}
@ -152,18 +152,18 @@ _DEFUN(iconv_close, (cd), iconv_t cd)
iconv_t
_DEFUN(_iconv_open_r, (rptr, to, from),
struct _reent *rptr,
_CONST char *to,
_CONST char *from)
const char *to,
const char *from)
{
iconv_conversion_t *ic;
if (to == NULL || from == NULL || *to == '\0' || *from == '\0')
return (iconv_t)-1;
if ((to = (_CONST char *)_iconv_resolve_encoding_name (rptr, to)) == NULL)
if ((to = (const char *)_iconv_resolve_encoding_name (rptr, to)) == NULL)
return (iconv_t)-1;
if ((from = (_CONST char *)_iconv_resolve_encoding_name (rptr, from)) == NULL)
if ((from = (const char *)_iconv_resolve_encoding_name (rptr, from)) == NULL)
{
_free_r (rptr, (_VOID_PTR)to);
return (iconv_t)-1;
@ -204,7 +204,7 @@ size_t
_DEFUN(_iconv_r, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
struct _reent *rptr,
iconv_t cd,
_CONST char **inbuf,
const char **inbuf,
size_t *inbytesleft,
char **outbuf,
size_t *outbytesleft)
@ -279,7 +279,7 @@ _DEFUN(_iconv_r, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
return ic->handlers->convert (rptr,
ic->data,
(_CONST unsigned char**)inbuf,
(const unsigned char**)inbuf,
inbytesleft,
(unsigned char**)outbuf,
outbytesleft,

View File

@ -46,9 +46,9 @@
*
* PARAMETERS:
* struct _reent *rptr - reent structure of current thread/process.
* _CONST char *file - the name of file.
* _CONST char *dir - the name of subdirectory;
* _CONST char *ext - file extension.
* const char *file - the name of file.
* const char *dir - the name of subdirectory;
* const char *ext - file extension.
*
* DESCRIPTION:
* Function constructs patch to icionv-related file.
@ -58,12 +58,12 @@
* The pointer to file name if success, In case of error returns NULL
* and sets current thread's/process's errno.
*/
_CONST char *
const char *
_DEFUN(_iconv_nls_construct_filename, (rptr, file, ext),
struct _reent *rptr,
_CONST char *file,
_CONST char *dir,
_CONST char *ext)
const char *file,
const char *dir,
const char *ext)
{
int len1, len2, len3;
char *path;
@ -78,7 +78,7 @@ _DEFUN(_iconv_nls_construct_filename, (rptr, file, ext),
len3 = strlen (ext);
if ((p = _malloc_r (rptr, len1 + dirlen + len2 + len3 + 3)) == NULL)
return (_CONST char *)NULL;
return (const char *)NULL;
memcpy (p, path, len1);
if (p[len1 - 1] != '/')
@ -95,7 +95,7 @@ _DEFUN(_iconv_nls_construct_filename, (rptr, file, ext),
}
p[len1] = '\0';
return (_CONST char *)p;
return (const char *)p;
}
@ -169,7 +169,7 @@ size_t
_DEFUN(_iconv_nls_conv, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
struct _reent *rptr,
iconv_t cd,
_CONST char **inbuf,
const char **inbuf,
size_t *inbytesleft,
char **outbuf,
size_t *outbytesleft)
@ -199,7 +199,7 @@ _DEFUN(_iconv_nls_conv, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
return ic->handlers->convert (rptr,
ic->data,
(_CONST unsigned char**)inbuf,
(const unsigned char**)inbuf,
inbytesleft,
(unsigned char**)outbuf,
outbytesleft,
@ -261,8 +261,8 @@ _DEFUN(_iconv_nls_set_state, (cd, ps, direction),
static iconv_t
_DEFUN(iconv_open1, (rptr, to, from),
struct _reent *rptr,
_CONST char *to,
_CONST char *from)
const char *to,
const char *from)
{
iconv_conversion_t *ic;
@ -301,7 +301,7 @@ _DEFUN(iconv_open1, (rptr, to, from),
*
* PARAMETERS:
* struct _reent *rptr - process's reent structure;
* _CONST char *encoding - encoding name;
* const char *encoding - encoding name;
* iconv_t *tomb - wchar -> encoding iconv descriptor pointer;
* iconv_t *towc - encoding -> wchar iconv descriptor pointer;
* int flag - perform encoding name resolving flag.
@ -318,12 +318,12 @@ _DEFUN(iconv_open1, (rptr, to, from),
int
_DEFUN(_iconv_nls_open, (rptr, encoding, towc, tomb),
struct _reent *rptr,
_CONST char *encoding,
const char *encoding,
iconv_t *tomb,
iconv_t *towc,
int flag)
{
_CONST char *wchar_encoding;
const char *wchar_encoding;
if (sizeof (wchar_t) > 2 && WCHAR_MAX > 0xFFFF)
wchar_encoding = "ucs_4_internal";

View File

@ -62,7 +62,7 @@ typedef __uint32_t ucs4_t;
/* The list of built-in encoding names and aliases */
extern _CONST char *
extern const char *
_iconv_aliases;
#endif /* !__ICONV_LIB_LOCAL_H__ */

View File

@ -38,8 +38,8 @@ static int null_conversion_dummy_data;
static _VOID_PTR
_DEFUN(null_conversion_open, (rptr, to, from),
struct _reent *rptr,
_CONST char *to,
_CONST char *from)
const char *to,
const char *from)
{
return (_VOID_PTR)&null_conversion_dummy_data;
}
@ -59,7 +59,7 @@ _DEFUN(null_conversion_convert,
(rptr, data, inbuf, inbytesleft, outbuf, outbytesleft),
struct _reent *rptr,
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft,
unsigned char **outbuf,
size_t *outbytesleft,
@ -129,7 +129,7 @@ _DEFUN(null_conversion_is_stateful, (data, direction),
}
/* Null conversion definition object */
_CONST iconv_conversion_handlers_t
const iconv_conversion_handlers_t
_iconv_null_conversion_handlers =
{
null_conversion_open,

View File

@ -36,8 +36,8 @@
static int fake_data;
static int
_EXFUN(find_encoding_name, (_CONST char *searchee,
_CONST char **names));
_EXFUN(find_encoding_name, (const char *searchee,
const char **names));
/*
@ -47,12 +47,12 @@ _EXFUN(find_encoding_name, (_CONST char *searchee,
static _VOID_PTR
_DEFUN(ucs_based_conversion_open, (rptr, to, from),
struct _reent *rptr,
_CONST char *to,
_CONST char *from)
const char *to,
const char *from)
{
iconv_ucs_conversion_t *uc;
_CONST iconv_to_ucs_ces_t *to_ucs_bices;
_CONST iconv_from_ucs_ces_t *from_ucs_bices;
const iconv_to_ucs_ces_t *to_ucs_bices;
const iconv_from_ucs_ces_t *from_ucs_bices;
uc = (iconv_ucs_conversion_t *)
_calloc_r (rptr, 1, sizeof (iconv_ucs_conversion_t));
@ -148,7 +148,7 @@ _DEFUN(ucs_based_conversion_convert,
(rptr, data, inbuf, inbytesleft, outbuf, outbytesleft, flags),
struct _reent *rptr,
_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft,
unsigned char **outbuf,
size_t *outbytesleft,
@ -163,7 +163,7 @@ _DEFUN(ucs_based_conversion_convert,
{
register size_t bytes;
register ucs4_t ch;
_CONST unsigned char *inbuf_save = *inbuf;
const unsigned char *inbuf_save = *inbuf;
size_t inbyteslef_save = *inbytesleft;
if (*outbytesleft == 0)
@ -324,7 +324,7 @@ _DEFUN(ucs_based_conversion_is_stateful, (data, direction),
/* UCS-based conversion definition object */
_CONST iconv_conversion_handlers_t
const iconv_conversion_handlers_t
_iconv_ucs_conversion_handlers =
{
ucs_based_conversion_open,
@ -343,10 +343,10 @@ _iconv_ucs_conversion_handlers =
static int
_DEFUN(find_encoding_name, (searchee, names),
_CONST char *searchee,
_CONST char **names)
const char *searchee,
const char **names)
{
_CONST char *p;
const char *p;
for (p = *names; p != NULL; p = *(names++))
if (strcmp (p, searchee) == 0)

View File

@ -57,7 +57,7 @@ typedef struct
*
* PARAMETERS:
* struct _reent *rptr - reent structure of current thread/process;
* _CONST char *encoding - encoding name.
* const char *encoding - encoding name.
*
* DESCRIPTION:
* Initializes CES converter. CES converter may deal with a series of
@ -69,7 +69,7 @@ typedef struct
* NULL and sets current thread's/process's errno.
*/
_VOID_PTR _EXFNPTR(init, (struct _reent *rptr,
_CONST char *encoding));
const char *encoding));
/*
* close - close CES converter.
@ -142,7 +142,7 @@ typedef struct
*
* PARAMETERS:
* _VOID_PTR data - CES converter-specific data;
* _CONST unsigned char **inbuf - buffer with input character byte sequence;
* const unsigned char **inbuf - buffer with input character byte sequence;
* size_t *inbytesleft - output buffer bytes count.
*
* DESCRIPTION:
@ -156,7 +156,7 @@ typedef struct
* sequence was met, returns ICONV_CES_BAD_SEQUENCE.
*/
ucs4_t _EXFNPTR(convert_to_ucs, (_VOID_PTR data,
_CONST unsigned char **inbuf,
const unsigned char **inbuf,
size_t *inbytesleft));
} iconv_to_ucs_ces_handlers_t;
@ -173,7 +173,7 @@ typedef struct
{
/* Same as in iconv_to_ucs_ces_handlers_t */
_VOID_PTR _EXFNPTR(init, (struct _reent *rptr,
_CONST char *encoding));
const char *encoding));
/* Same as in iconv_to_ucs_ces_handlers_t */
size_t _EXFNPTR(close, (struct _reent *rptr,
@ -231,7 +231,7 @@ typedef struct
typedef struct
{
/* CES converter handlers */
_CONST iconv_to_ucs_ces_handlers_t *handlers;
const iconv_to_ucs_ces_handlers_t *handlers;
/* "to_ucs" CES converter-specific data. */
_VOID_PTR data;
@ -247,7 +247,7 @@ typedef struct
typedef struct
{
/* CES converter handlers */
_CONST iconv_from_ucs_ces_handlers_t *handlers;
const iconv_from_ucs_ces_handlers_t *handlers;
/* "from_ucs" CES converter-specific data. */
_VOID_PTR data;
@ -290,10 +290,10 @@ typedef struct
* An array of encodings names, supported by CES converter.
* The end of array should be marked by NULL pointer.
*/
_CONST char **names;
const char **names;
/* CES converter description structure */
_CONST iconv_to_ucs_ces_handlers_t *handlers;
const iconv_to_ucs_ces_handlers_t *handlers;
} iconv_to_ucs_ces_t;
@ -308,19 +308,19 @@ typedef struct
* An array of encodings names, supported by CES converter.
* The end of array should be marked by NULL pointer.
*/
_CONST char **names;
const char **names;
/* CES converter description structure */
_CONST iconv_from_ucs_ces_handlers_t *handlers;
const iconv_from_ucs_ces_handlers_t *handlers;
} iconv_from_ucs_ces_t;
/* List of "to UCS" linked-in CES converters. */
extern _CONST iconv_to_ucs_ces_t
extern const iconv_to_ucs_ces_t
_iconv_to_ucs_ces[];
/* List of "from UCS" linked-in CES converters. */
extern _CONST iconv_from_ucs_ces_t
extern const iconv_from_ucs_ces_t
_iconv_from_ucs_ces[];
#endif /* !__ICONV_UCS_CONVERSION_H__ */

View File

@ -49,7 +49,6 @@
#ifdef _HAVE_STDC
#define _PTR void *
#define _NOARGS void
#define _CONST const
#define _VOLATILE volatile
#define _SIGNED signed
#define _DOTS , ...
@ -77,7 +76,6 @@
#else
#define _PTR char *
#define _NOARGS
#define _CONST
#define _VOLATILE
#define _SIGNED
#define _DOTS

View File

@ -162,7 +162,7 @@ const char *__locale_ctype_ptr_l (locale_t);
#endif /* !__cplusplus */
/* For C++ backward-compatibility only. */
extern __IMPORT _CONST char _ctype_[];
extern __IMPORT const char _ctype_[];
_END_STD_C

View File

@ -38,7 +38,7 @@ _BEGIN_STD_C
#ifndef _REENT_ONLY
iconv_t
_EXFUN(iconv_open, (_CONST char *, _CONST char *));
_EXFUN(iconv_open, (const char *, const char *));
size_t
_EXFUN(iconv, (iconv_t, char **__restrict, size_t *__restrict,
@ -49,10 +49,10 @@ _EXFUN(iconv_close, (iconv_t));
#endif
iconv_t
_EXFUN(_iconv_open_r, (struct _reent *, _CONST char *, _CONST char *));
_EXFUN(_iconv_open_r, (struct _reent *, const char *, const char *));
size_t
_EXFUN(_iconv_r, (struct _reent *, iconv_t, _CONST char **,
_EXFUN(_iconv_r, (struct _reent *, iconv_t, const char **,
size_t *, char **, size_t *));
int

View File

@ -47,7 +47,7 @@ int _EXFUN(pthread_atfork,(void (*prepare)(void), void (*parent)(void),
int _EXFUN(pthread_mutexattr_init, (pthread_mutexattr_t *__attr));
int _EXFUN(pthread_mutexattr_destroy, (pthread_mutexattr_t *__attr));
int _EXFUN(pthread_mutexattr_getpshared,
(_CONST pthread_mutexattr_t *__attr, int *__pshared));
(const pthread_mutexattr_t *__attr, int *__pshared));
int _EXFUN(pthread_mutexattr_setpshared,
(pthread_mutexattr_t *__attr, int __pshared));
@ -56,7 +56,7 @@ int _EXFUN(pthread_mutexattr_setpshared,
/* Single UNIX Specification 2 Mutex Attributes types */
int _EXFUN(pthread_mutexattr_gettype,
(_CONST pthread_mutexattr_t *__attr, int *__kind));
(const pthread_mutexattr_t *__attr, int *__kind));
int _EXFUN(pthread_mutexattr_settype,
(pthread_mutexattr_t *__attr, int __kind));
@ -65,7 +65,7 @@ int _EXFUN(pthread_mutexattr_settype,
/* Initializing and Destroying a Mutex, P1003.1c/Draft 10, p. 87 */
int _EXFUN(pthread_mutex_init,
(pthread_mutex_t *__mutex, _CONST pthread_mutexattr_t *__attr));
(pthread_mutex_t *__mutex, const pthread_mutexattr_t *__attr));
int _EXFUN(pthread_mutex_destroy, (pthread_mutex_t *__mutex));
/* This is used to statically initialize a pthread_mutex_t. Example:
@ -85,7 +85,7 @@ int _EXFUN(pthread_mutex_unlock, (pthread_mutex_t *__mutex));
#if defined(_POSIX_TIMEOUTS)
int _EXFUN(pthread_mutex_timedlock,
(pthread_mutex_t *__mutex, _CONST struct timespec *__timeout));
(pthread_mutex_t *__mutex, const struct timespec *__timeout));
#endif /* _POSIX_TIMEOUTS */
@ -101,14 +101,14 @@ int _EXFUN(pthread_condattr_setclock,
(pthread_condattr_t *__attr, clockid_t __clock_id));
int _EXFUN(pthread_condattr_getpshared,
(_CONST pthread_condattr_t *__attr, int *__pshared));
(const pthread_condattr_t *__attr, int *__pshared));
int _EXFUN(pthread_condattr_setpshared,
(pthread_condattr_t *__attr, int __pshared));
/* Initializing and Destroying a Condition Variable, P1003.1c/Draft 10, p. 87 */
int _EXFUN(pthread_cond_init,
(pthread_cond_t *__cond, _CONST pthread_condattr_t *__attr));
(pthread_cond_t *__cond, const pthread_condattr_t *__attr));
int _EXFUN(pthread_cond_destroy, (pthread_cond_t *__mutex));
/* This is used to statically initialize a pthread_cond_t. Example:
@ -130,7 +130,7 @@ int _EXFUN(pthread_cond_wait,
int _EXFUN(pthread_cond_timedwait,
(pthread_cond_t *__cond, pthread_mutex_t *__mutex,
_CONST struct timespec *__abstime));
const struct timespec *__abstime));
#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
@ -139,22 +139,22 @@ int _EXFUN(pthread_cond_timedwait,
int _EXFUN(pthread_attr_setscope,
(pthread_attr_t *__attr, int __contentionscope));
int _EXFUN(pthread_attr_getscope,
(_CONST pthread_attr_t *__attr, int *__contentionscope));
(const pthread_attr_t *__attr, int *__contentionscope));
int _EXFUN(pthread_attr_setinheritsched,
(pthread_attr_t *__attr, int __inheritsched));
int _EXFUN(pthread_attr_getinheritsched,
(_CONST pthread_attr_t *__attr, int *__inheritsched));
(const pthread_attr_t *__attr, int *__inheritsched));
int _EXFUN(pthread_attr_setschedpolicy,
(pthread_attr_t *__attr, int __policy));
int _EXFUN(pthread_attr_getschedpolicy,
(_CONST pthread_attr_t *__attr, int *__policy));
(const pthread_attr_t *__attr, int *__policy));
#endif /* defined(_POSIX_THREAD_PRIORITY_SCHEDULING) */
int _EXFUN(pthread_attr_setschedparam,
(pthread_attr_t *__attr, _CONST struct sched_param *__param));
(pthread_attr_t *__attr, const struct sched_param *__param));
int _EXFUN(pthread_attr_getschedparam,
(_CONST pthread_attr_t *__attr, struct sched_param *__param));
(const pthread_attr_t *__attr, struct sched_param *__param));
#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
@ -183,11 +183,11 @@ int pthread_setname_np(pthread_t, const char *) __nonnull((2));
int _EXFUN(pthread_mutexattr_setprotocol,
(pthread_mutexattr_t *__attr, int __protocol));
int _EXFUN(pthread_mutexattr_getprotocol,
(_CONST pthread_mutexattr_t *__attr, int *__protocol));
(const pthread_mutexattr_t *__attr, int *__protocol));
int _EXFUN(pthread_mutexattr_setprioceiling,
(pthread_mutexattr_t *__attr, int __prioceiling));
int _EXFUN(pthread_mutexattr_getprioceiling,
(_CONST pthread_mutexattr_t *__attr, int *__prioceiling));
(const pthread_mutexattr_t *__attr, int *__prioceiling));
#endif /* _POSIX_THREAD_PRIO_INHERIT || _POSIX_THREAD_PRIO_PROTECT */
@ -208,22 +208,22 @@ int _EXFUN(pthread_attr_init, (pthread_attr_t *__attr));
int _EXFUN(pthread_attr_destroy, (pthread_attr_t *__attr));
int _EXFUN(pthread_attr_setstack, (pthread_attr_t *attr,
void *__stackaddr, size_t __stacksize));
int _EXFUN(pthread_attr_getstack, (_CONST pthread_attr_t *attr,
int _EXFUN(pthread_attr_getstack, (const pthread_attr_t *attr,
void **__stackaddr, size_t *__stacksize));
int _EXFUN(pthread_attr_getstacksize,
(_CONST pthread_attr_t *__attr, size_t *__stacksize));
(const pthread_attr_t *__attr, size_t *__stacksize));
int _EXFUN(pthread_attr_setstacksize,
(pthread_attr_t *__attr, size_t __stacksize));
int _EXFUN(pthread_attr_getstackaddr,
(_CONST pthread_attr_t *__attr, void **__stackaddr));
(const pthread_attr_t *__attr, void **__stackaddr));
int _EXFUN(pthread_attr_setstackaddr,
(pthread_attr_t *__attr, void *__stackaddr));
int _EXFUN(pthread_attr_getdetachstate,
(_CONST pthread_attr_t *__attr, int *__detachstate));
(const pthread_attr_t *__attr, int *__detachstate));
int _EXFUN(pthread_attr_setdetachstate,
(pthread_attr_t *__attr, int __detachstate));
int _EXFUN(pthread_attr_getguardsize,
(_CONST pthread_attr_t *__attr, size_t *__guardsize));
(const pthread_attr_t *__attr, size_t *__guardsize));
int _EXFUN(pthread_attr_setguardsize,
(pthread_attr_t *__attr, size_t __guardsize));
@ -253,7 +253,7 @@ int _EXFUN(pthread_getattr_np,
/* Thread Creation, P1003.1c/Draft 10, p. 144 */
int _EXFUN(pthread_create,
(pthread_t *__pthread, _CONST pthread_attr_t *__attr,
(pthread_t *__pthread, const pthread_attr_t *__attr,
void *(*__start_routine)( void * ), void *__arg));
/* Wait for Thread Termination, P1003.1c/Draft 10, p. 147 */
@ -309,7 +309,7 @@ int _EXFUN(pthread_key_create,
/* Thread-Specific Data Management, P1003.1c/Draft 10, p. 165 */
int _EXFUN(pthread_setspecific,
(pthread_key_t __key, _CONST void *__value));
(pthread_key_t __key, const void *__value));
void * _EXFUN(pthread_getspecific, (pthread_key_t __key));
/* Thread-Specific Data Key Deletion, P1003.1c/Draft 10, p. 167 */
@ -391,7 +391,7 @@ int _EXFUN(pthread_getcpuclockid,
int _EXFUN(pthread_barrierattr_init, (pthread_barrierattr_t *__attr));
int _EXFUN(pthread_barrierattr_destroy, (pthread_barrierattr_t *__attr));
int _EXFUN(pthread_barrierattr_getpshared,
(_CONST pthread_barrierattr_t *__attr, int *__pshared));
(const pthread_barrierattr_t *__attr, int *__pshared));
int _EXFUN(pthread_barrierattr_setpshared,
(pthread_barrierattr_t *__attr, int __pshared));
@ -399,7 +399,7 @@ int _EXFUN(pthread_barrierattr_setpshared,
int _EXFUN(pthread_barrier_init,
(pthread_barrier_t *__barrier,
_CONST pthread_barrierattr_t *__attr, unsigned __count));
const pthread_barrierattr_t *__attr, unsigned __count));
int _EXFUN(pthread_barrier_destroy, (pthread_barrier_t *__barrier));
int _EXFUN(pthread_barrier_wait,(pthread_barrier_t *__barrier));
@ -428,22 +428,22 @@ int _EXFUN(pthread_spin_unlock, (pthread_spinlock_t *__spinlock));
int _EXFUN(pthread_rwlockattr_init, (pthread_rwlockattr_t *__attr));
int _EXFUN(pthread_rwlockattr_destroy, (pthread_rwlockattr_t *__attr));
int _EXFUN(pthread_rwlockattr_getpshared,
(_CONST pthread_rwlockattr_t *__attr, int *__pshared));
(const pthread_rwlockattr_t *__attr, int *__pshared));
int _EXFUN(pthread_rwlockattr_setpshared,
(pthread_rwlockattr_t *__attr, int __pshared));
int _EXFUN(pthread_rwlock_init,
(pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr));
(pthread_rwlock_t *__rwlock, const pthread_rwlockattr_t *__attr));
int _EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_timedrdlock,
(pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime));
(pthread_rwlock_t *__rwlock, const struct timespec *__abstime));
int _EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_timedwrlock,
(pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime));
(pthread_rwlock_t *__rwlock, const struct timespec *__abstime));
#endif /* defined(_POSIX_READER_WRITER_LOCKS) */

View File

@ -108,19 +108,19 @@ enum xdr_op
typedef struct __rpc_xdr
{
enum xdr_op x_op; /* operation; fast additional param */
_CONST struct xdr_ops
const struct xdr_ops
{
/* get a long from underlying stream */
bool_t _EXFNPTR (x_getlong, (struct __rpc_xdr *, long *));
/* put a long to " */
bool_t _EXFNPTR (x_putlong, (struct __rpc_xdr *, _CONST long *));
bool_t _EXFNPTR (x_putlong, (struct __rpc_xdr *, const long *));
/* get some bytes from " */
bool_t _EXFNPTR (x_getbytes, (struct __rpc_xdr *, char *, u_int));
/* put some bytes to " */
bool_t _EXFNPTR (x_putbytes, (struct __rpc_xdr *, _CONST char *, u_int));
bool_t _EXFNPTR (x_putbytes, (struct __rpc_xdr *, const char *, u_int));
/* returns bytes off from beginning */
u_int _EXFNPTR (x_getpostn, (struct __rpc_xdr *));
@ -138,7 +138,7 @@ typedef struct __rpc_xdr
bool_t _EXFNPTR (x_getint32, (struct __rpc_xdr *, int32_t *));
/* put an int32 to the underlying stream */
bool_t _EXFNPTR (x_putint32, (struct __rpc_xdr *, _CONST int32_t *));
bool_t _EXFNPTR (x_putint32, (struct __rpc_xdr *, const int32_t *));
} *x_ops;
char *x_public; /* users' data */
@ -320,7 +320,7 @@ extern bool_t _EXFUN (xdr_bytes, (XDR *, char **, u_int *, u_int));
extern bool_t _EXFUN (xdr_opaque, (XDR *, char *, u_int));
extern bool_t _EXFUN (xdr_string, (XDR *, char **, u_int));
extern bool_t _EXFUN (xdr_union, (XDR *, enum_t *, char *,
_CONST struct xdr_discrim *, xdrproc_t));
const struct xdr_discrim *, xdrproc_t));
extern bool_t _EXFUN (xdr_char, (XDR *, char *));
extern bool_t _EXFUN (xdr_u_char, (XDR *, u_char *));
extern bool_t _EXFUN (xdr_vector, (XDR *, char *, u_int, u_int, xdrproc_t));

View File

@ -552,7 +552,7 @@ int _EXFUN(fputs_unlocked, (const char *__restrict, FILE *__restrict));
#if !defined(__CYGWIN__) || defined(_COMPILING_NEWLIB)
FILE * _EXFUN(fdopen64, (int, const char *));
FILE * _EXFUN(fopen64, (const char *, const char *));
FILE * _EXFUN(freopen64, (_CONST char *, _CONST char *, FILE *));
FILE * _EXFUN(freopen64, (const char *, const char *, FILE *));
_off64_t _EXFUN(ftello64, (FILE *));
_off64_t _EXFUN(fseeko64, (FILE *, _off64_t, int));
int _EXFUN(fgetpos64, (FILE *, _fpos64_t *));
@ -561,7 +561,7 @@ FILE * _EXFUN(tmpfile64, (void));
FILE * _EXFUN(_fdopen64_r, (struct _reent *, int, const char *));
FILE * _EXFUN(_fopen64_r, (struct _reent *,const char *, const char *));
FILE * _EXFUN(_freopen64_r, (struct _reent *, _CONST char *, _CONST char *, FILE *));
FILE * _EXFUN(_freopen64_r, (struct _reent *, const char *, const char *, FILE *));
_off64_t _EXFUN(_ftello64_r, (struct _reent *, FILE *));
_off64_t _EXFUN(_fseeko64_r, (struct _reent *, FILE *, _off64_t, int));
int _EXFUN(_fgetpos64_r, (struct _reent *, FILE *, _fpos64_t *));

View File

@ -93,8 +93,8 @@ _VOID _EXFUN(exit,(int __status) _ATTRIBUTE ((__noreturn__)));
_VOID _EXFUN_NOTHROW(free,(_PTR));
char * _EXFUN(getenv,(const char *__string));
char * _EXFUN(_getenv_r,(struct _reent *, const char *__string));
char * _EXFUN(_findenv,(_CONST char *, int *));
char * _EXFUN(_findenv_r,(struct _reent *, _CONST char *, int *));
char * _EXFUN(_findenv,(const char *, int *));
char * _EXFUN(_findenv_r,(struct _reent *, const char *, int *));
#if __POSIX_VISIBLE >= 200809
extern char *suboptarg; /* getsubopt(3) external variable */
int _EXFUN(getsubopt,(char **, char * const *, char **));

View File

@ -17,7 +17,7 @@ extern int *__errno _PARAMS ((void));
/* Please don't use these variables directly.
Use strerror instead. */
extern __IMPORT _CONST char * _CONST _sys_errlist[];
extern __IMPORT const char * const _sys_errlist[];
extern __IMPORT int _sys_nerr;
#ifdef __CYGWIN__
extern __IMPORT const char * const sys_errlist[];

View File

@ -58,20 +58,20 @@ _EXFUN(_iconv_nls_get_mb_cur_max, (iconv_t cd, int direction));
size_t
_EXFUN(_iconv_nls_conv, (struct _reent *rptr, iconv_t cd,
_CONST char **inbuf, size_t *inbytesleft,
const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft));
_CONST char *
_EXFUN(_iconv_nls_construct_filename, (struct _reent *rptr, _CONST char *file,
_CONST char *dir, _CONST char *ext));
const char *
_EXFUN(_iconv_nls_construct_filename, (struct _reent *rptr, const char *file,
const char *dir, const char *ext));
int
_EXFUN(_iconv_nls_open, (struct _reent *rptr, _CONST char *encoding,
_EXFUN(_iconv_nls_open, (struct _reent *rptr, const char *encoding,
iconv_t *towc, iconv_t *fromwc, int flag));
char *
_EXFUN(_iconv_resolve_encoding_name, (struct _reent *rptr, _CONST char *ca));
_EXFUN(_iconv_resolve_encoding_name, (struct _reent *rptr, const char *ca));
#endif /* __SYS_ICONVNLS_H__ */

View File

@ -773,7 +773,7 @@ extern __FILE __sf[3];
#endif
extern struct _reent *_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
extern struct _reent *_CONST _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
extern struct _reent *const _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
void _reclaim_reent _PARAMS ((struct _reent *));

View File

@ -40,7 +40,7 @@
#define unctrl(c) __unctrl[(c) & 0xff]
#define unctrllen(ch) __unctrllen[(ch) & 0xff]
extern __IMPORT _CONST char * _CONST __unctrl[256]; /* Control strings. */
extern __IMPORT _CONST char __unctrllen[256]; /* Control strings length. */
extern __IMPORT const char * const __unctrl[256]; /* Control strings. */
extern __IMPORT const char __unctrllen[256]; /* Control strings length. */
#endif /* _UNCTRL_H_ */

View File

@ -292,7 +292,7 @@ char *
_DEFUN(_setlocale_r, (p, category, locale),
struct _reent *p,
int category,
_CONST char *locale)
const char *locale)
{
#ifndef _MB_CAPABLE
if (locale)
@ -992,7 +992,7 @@ __locale_ctype_ptr (void)
char *
_DEFUN (setlocale, (category, locale),
int category,
_CONST char *locale)
const char *locale)
{
return _setlocale_r (_REENT, category, locale);
}

View File

@ -21,7 +21,7 @@ extern int *__errno _PARAMS ((void));
/* Please don't use these variables directly.
Use strerror instead. */
extern _CONST char * _CONST _sys_errlist[];
extern const char * const _sys_errlist[];
extern int _sys_nerr;
#define __errno_r(ptr) ((ptr)->_errno)

View File

@ -82,8 +82,8 @@ QUICKREF
int
_DEFUN (strcmp, (s1, s2),
_CONST char *s1,
_CONST char *s2)
const char *s1,
const char *s2)
{
#ifndef HAVE_HW_PCMP

View File

@ -83,7 +83,7 @@ QUICKREF
char*
_DEFUN (strcpy, (dst0, src0),
char *__restrict dst0,
_CONST char *__restrict src0)
const char *__restrict src0)
{
#ifndef HAVE_HW_PCMP
@ -97,9 +97,9 @@ _DEFUN (strcpy, (dst0, src0),
return s;
#else
char *dst = dst0;
_CONST char *src = src0;
const char *src = src0;
long *aligned_dst;
_CONST long *aligned_src;
const long *aligned_src;
/* If SRC or DEST is unaligned, then copy bytes. */
if (!UNALIGNED (src, dst))

View File

@ -79,20 +79,20 @@ QUICKREF
size_t
_DEFUN (strlen, (str),
_CONST char *str)
const char *str)
{
#ifndef HAVE_HW_PCMP
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
_CONST char *start = str;
const char *start = str;
while (*str)
str++;
return str - start;
#else
_CONST char *start = str;
const char *start = str;
unsigned long *aligned_addr;
if (!UNALIGNED (str))

View File

@ -64,7 +64,7 @@ PORTABILITY
__int16_t
_DEFUN (_atosfix16_r, (reent, s),
struct _reent *reent,
_CONST char *s)
const char *s)
{
return _strtosfix16_r (reent, s, NULL);
}
@ -72,7 +72,7 @@ _DEFUN (_atosfix16_r, (reent, s),
#ifndef _REENT_ONLY
__int16_t
_DEFUN (atosfix16, (s),
_CONST char *s)
const char *s)
{
return strtosfix16 (s, NULL);
}

View File

@ -10,7 +10,7 @@
__int32_t
_DEFUN (_atosfix32_r, (reent, s),
struct _reent *reent,
_CONST char *s)
const char *s)
{
return _strtosfix32_r (reent, s, NULL);
}
@ -18,7 +18,7 @@ _DEFUN (_atosfix32_r, (reent, s),
#ifndef _REENT_ONLY
__int32_t
_DEFUN (atosfix32, (s),
_CONST char *s)
const char *s)
{
return strtosfix32 (s, NULL);
}

View File

@ -10,7 +10,7 @@
__int64_t
_DEFUN (_atosfix64_r, (reent, s),
struct _reent *reent,
_CONST char *s)
const char *s)
{
return _strtosfix64_r (reent, s, NULL);
}
@ -18,7 +18,7 @@ _DEFUN (_atosfix64_r, (reent, s),
#ifndef _REENT_ONLY
__int64_t
_DEFUN (atosfix64, (s),
_CONST char *s)
const char *s)
{
return strtosfix64 (s, NULL);
}

View File

@ -64,7 +64,7 @@ PORTABILITY
__uint16_t
_DEFUN (_atoufix16_r, (reent, s),
struct _reent *reent,
_CONST char *s)
const char *s)
{
return _strtoufix16_r (reent, s, NULL);
}
@ -72,7 +72,7 @@ _DEFUN (_atoufix16_r, (reent, s),
#ifndef _REENT_ONLY
__uint16_t
_DEFUN (atoufix16, (s),
_CONST char *s)
const char *s)
{
return strtoufix16 (s, NULL);
}

View File

@ -10,7 +10,7 @@
__uint32_t
_DEFUN (_atoufix32_r, (reent, s),
struct _reent *reent,
_CONST char *s)
const char *s)
{
return _strtoufix32_r (reent, s, NULL);
}
@ -18,7 +18,7 @@ _DEFUN (_atoufix32_r, (reent, s),
#ifndef _REENT_ONLY
__uint32_t
_DEFUN (atoufix32, (s),
_CONST char *s)
const char *s)
{
return strtoufix32 (s, NULL);
}

View File

@ -10,7 +10,7 @@
__uint64_t
_DEFUN (_atoufix64_r, (reent, s),
struct _reent *reent,
_CONST char *s)
const char *s)
{
return _strtoufix64_r (reent, s, NULL);
}
@ -18,7 +18,7 @@ _DEFUN (_atoufix64_r, (reent, s),
#ifndef _REENT_ONLY
__uint64_t
_DEFUN (atoufix64, (s),
_CONST char *s)
const char *s)
{
return strtoufix64 (s, NULL);
}

View File

@ -94,7 +94,7 @@ PORTABILITY
__int16_t
_DEFUN (_strtosfix16_r, (rptr, nptr, endptr),
struct _reent *rptr,
_CONST char *nptr,
const char *nptr,
char **endptr)
{
union double_union dbl;
@ -170,7 +170,7 @@ _DEFUN (_strtosfix16_r, (rptr, nptr, endptr),
__int16_t
_DEFUN (strtosfix16, (s, ptr, base),
_CONST char *s,
const char *s,
char **ptr)
{
return _strtosfix16_r (_REENT, s, ptr);

View File

@ -15,7 +15,7 @@
__int32_t
_DEFUN (_strtosfix32_r, (rptr, nptr, endptr),
struct _reent *rptr,
_CONST char *nptr,
const char *nptr,
char **endptr)
{
union double_union dbl;
@ -93,7 +93,7 @@ _DEFUN (_strtosfix32_r, (rptr, nptr, endptr),
__int32_t
_DEFUN (strtosfix32, (s, ptr, base),
_CONST char *s,
const char *s,
char **ptr)
{
return _strtosfix32_r (_REENT, s, ptr);

View File

@ -15,7 +15,7 @@
__int64_t
_DEFUN (_strtosfix64_r, (rptr, nptr, endptr),
struct _reent *rptr,
_CONST char *nptr,
const char *nptr,
char **endptr)
{
union long_double_union ldbl;
@ -106,7 +106,7 @@ _DEFUN (_strtosfix64_r, (rptr, nptr, endptr),
__int64_t
_DEFUN (strtosfix64, (s, ptr, base),
_CONST char *s,
const char *s,
char **ptr)
{
return _strtosfix64_r (_REENT, s, ptr);

View File

@ -93,7 +93,7 @@ PORTABILITY
__uint16_t
_DEFUN (_strtoufix16_r, (rptr, nptr, endptr),
struct _reent *rptr,
_CONST char *nptr,
const char *nptr,
char **endptr)
{
union double_union dbl;
@ -161,7 +161,7 @@ _DEFUN (_strtoufix16_r, (rptr, nptr, endptr),
__uint16_t
_DEFUN (strtoufix16, (s, ptr, base),
_CONST char *s,
const char *s,
char **ptr)
{
return _strtoufix16_r (_REENT, s, ptr);

View File

@ -15,7 +15,7 @@
__uint32_t
_DEFUN (_strtoufix32_r, (rptr, nptr, endptr),
struct _reent *rptr,
_CONST char *nptr,
const char *nptr,
char **endptr)
{
union double_union dbl;
@ -90,7 +90,7 @@ _DEFUN (_strtoufix32_r, (rptr, nptr, endptr),
__uint32_t
_DEFUN (strtoufix32, (s, ptr, base),
_CONST char *s,
const char *s,
char **ptr)
{
return _strtoufix32_r (_REENT, s, ptr);

View File

@ -15,7 +15,7 @@
__uint64_t
_DEFUN (_strtoufix64_r, (rptr, nptr, endptr),
struct _reent *rptr,
_CONST char *nptr,
const char *nptr,
char **endptr)
{
union long_double_union ldbl;
@ -105,7 +105,7 @@ _DEFUN (_strtoufix64_r, (rptr, nptr, endptr),
__uint64_t
_DEFUN (strtoufix64, (s, ptr, base),
_CONST char *s,
const char *s,
char **ptr)
{
return _strtoufix64_r (_REENT, s, ptr);

View File

@ -273,7 +273,7 @@ static char *cvt_ufix64 _PARAMS((struct _reent *, unsigned long long, int, int
int
_DEFUN (VFPRINTF, (fp, fmt0, ap),
FILE * fp,
_CONST char *fmt0,
const char *fmt0,
va_list ap)
{
CHECK_INIT (_REENT, fp);
@ -284,7 +284,7 @@ int
_DEFUN (_VFPRINTF_R, (data, fp, fmt0, ap),
struct _reent *data,
FILE * fp,
_CONST char *fmt0,
const char *fmt0,
va_list ap)
{
register char *fmt; /* format string */
@ -350,9 +350,9 @@ _DEFUN (_VFPRINTF_R, (data, fp, fmt0, ap),
* below longer.
*/
#define PADSIZE 16 /* pad chunk size */
static _CONST char blanks[PADSIZE] =
static const char blanks[PADSIZE] =
{' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '};
static _CONST char zeroes[PADSIZE] =
static const char zeroes[PADSIZE] =
{'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'};
/*

Some files were not shown because too many files have changed in this diff Show More