{
if (ch > 0x7f)
{
- if (ucs4_to_ksc5601 (ch, cp, 2) != __UNKNOWN_10646_CHAR)
+ if (ucs4_to_ksc5601 (ch, cp, 2) != UNKNOWN_10646_CHAR)
{
cp[0] |= 0x80;
cp[1] |= 0x80;
else if (ch <= 0xa0 || ch > 0xfe || ch == 0xc9) \
{ \
/* This is illegal. */ \
- result = __GCONV_ILLEGAL_INPUT; \
+ result = GCONV_ILLEGAL_INPUT; \
break; \
} \
else \
if (NEED_LENGTH_TEST && ch == 0) \
{ \
/* The second character is not available. */ \
- result = __GCONV_INCOMPLETE_INPUT; \
+ result = GCONV_INCOMPLETE_INPUT; \
break; \
} \
- if (ch == __UNKNOWN_10646_CHAR) \
+ if (ch == UNKNOWN_10646_CHAR) \
{ \
/* This is an illegal character. */ \
- result = __GCONV_ILLEGAL_INPUT; \
+ result = GCONV_ILLEGAL_INPUT; \
break; \
} \
} \
if (cp[0] == '\0' && ch != 0) \
{ \
/* Illegal character. */ \
- result = __GCONV_ILLEGAL_INPUT; \
+ result = GCONV_ILLEGAL_INPUT; \
break; \
} \
\
{ \
/* The result does not fit into the buffer. */ \
--outptr; \
- result = __GCONV_FULL_OUTPUT; \
+ result = GCONV_FULL_OUTPUT; \
break; \
} \
*outptr++ = cp[1]; \
if (ch < offset || (ch - offset) <= 0x20 || (ch - offset) >= 0x7e
|| (ch - offset) == 0x49)
- return __UNKNOWN_10646_CHAR;
+ return UNKNOWN_10646_CHAR;
if (avail < 2)
return 0;
ch2 = (*s)[1];
if (ch2 < offset || (ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f)
- return __UNKNOWN_10646_CHAR;
+ return UNKNOWN_10646_CHAR;
idx = (ch - offset - 0x21) * 94 + (ch2 - offset - 0x21);
if (idx >= 1410 && idx < 1410 + KSC5601_HANGUL)
return (__ksc5601_hangul_to_ucs[idx - 1410]
- ?: ((*s) -= 2, __UNKNOWN_10646_CHAR));
+ ?: ((*s) -= 2, UNKNOWN_10646_CHAR));
else if (idx >= 3854)
/* Hanja : row 42 - row 93 : 3854 = 94 * (42-1) */
return (__ksc5601_hanja_to_ucs[idx - 3854]
- ?: ((*s) -= 2, __UNKNOWN_10646_CHAR));
+ ?: ((*s) -= 2, UNKNOWN_10646_CHAR));
else if (idx <= 1114)
- return __ksc5601_sym_to_ucs[idx] ?: ((*s) -= 2, __UNKNOWN_10646_CHAR);
+ return __ksc5601_sym_to_ucs[idx] ?: ((*s) -= 2, UNKNOWN_10646_CHAR);
- return __UNKNOWN_10646_CHAR;
+ return UNKNOWN_10646_CHAR;
}
static inline size_t
}
}
- return __UNKNOWN_10646_CHAR;
+ return UNKNOWN_10646_CHAR;
}
}
}
- return __UNKNOWN_10646_CHAR;
+ return UNKNOWN_10646_CHAR;
}
static inline size_t
}
}
- return __UNKNOWN_10646_CHAR;
+ return UNKNOWN_10646_CHAR;
}
/* Reset the state. */
memset (&state, '\0', sizeof state);
- result = __wcsmbs_gconv_fcts.towc->__stateful;
+ result = __wcsmbs_gconv_fcts.towc->stateful;
}
else if (*s == '\0')
/* According to the ISO C 89 standard this is the expected behaviour. */
violate ISO C. */
memset (&__no_r_state, '\0', sizeof __no_r_state);
- result = __wcsmbs_gconv_fcts.towc->__stateful;
+ result = __wcsmbs_gconv_fcts.towc->stateful;
}
else if (*s == '\0')
{