diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-07-28 20:44:57 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-07-28 20:44:57 +0000 |
commit | 1362c6058a0926ffbfcc87add5ef6e281a7beaab (patch) | |
tree | 2c7fcdd68b16e418326747b0d4d0085e8e9d7292 /iconvdata | |
parent | 5159aa5c0202e1da7f71027f3957d758b90d366c (diff) |
Fix typos.
Diffstat (limited to 'iconvdata')
-rw-r--r-- | iconvdata/euc-kr.c | 14 | ||||
-rw-r--r-- | iconvdata/ksc5601.h | 18 |
2 files changed, 16 insertions, 16 deletions
diff --git a/iconvdata/euc-kr.c b/iconvdata/euc-kr.c index f74d7748f9..d6901b830a 100644 --- a/iconvdata/euc-kr.c +++ b/iconvdata/euc-kr.c @@ -28,7 +28,7 @@ euckr_from_ucs4 (uint32_t ch, unsigned char *cp) { 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; @@ -81,7 +81,7 @@ euckr_from_ucs4 (uint32_t ch, unsigned char *cp) else if (ch <= 0xa0 || ch > 0xfe || ch == 0xc9) \ { \ /* This is illegal. */ \ - result = __GCONV_ILLEGAL_INPUT; \ + result = GCONV_ILLEGAL_INPUT; \ break; \ } \ else \ @@ -93,13 +93,13 @@ euckr_from_ucs4 (uint32_t ch, unsigned char *cp) 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; \ } \ } \ @@ -126,7 +126,7 @@ euckr_from_ucs4 (uint32_t ch, unsigned char *cp) if (cp[0] == '\0' && ch != 0) \ { \ /* Illegal character. */ \ - result = __GCONV_ILLEGAL_INPUT; \ + result = GCONV_ILLEGAL_INPUT; \ break; \ } \ \ @@ -138,7 +138,7 @@ euckr_from_ucs4 (uint32_t ch, unsigned char *cp) { \ /* The result does not fit into the buffer. */ \ --outptr; \ - result = __GCONV_FULL_OUTPUT; \ + result = GCONV_FULL_OUTPUT; \ break; \ } \ *outptr++ = cp[1]; \ diff --git a/iconvdata/ksc5601.h b/iconvdata/ksc5601.h index e50d6d6c20..f129735df3 100644 --- a/iconvdata/ksc5601.h +++ b/iconvdata/ksc5601.h @@ -54,14 +54,14 @@ ksc5601_to_ucs4 (const unsigned char **s, size_t avail, unsigned char offset) 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); @@ -72,15 +72,15 @@ ksc5601_to_ucs4 (const unsigned char **s, size_t avail, unsigned char offset) 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 @@ -110,7 +110,7 @@ ucs4_to_ksc5601_hangul (uint32_t wch, unsigned char *s, size_t avail) } } - return __UNKNOWN_10646_CHAR; + return UNKNOWN_10646_CHAR; } @@ -141,7 +141,7 @@ ucs4_to_ksc5601_hanja (uint32_t wch, unsigned char *s, size_t avail) } } - return __UNKNOWN_10646_CHAR; + return UNKNOWN_10646_CHAR; } static inline size_t @@ -171,7 +171,7 @@ ucs4_to_ksc5601_sym (uint32_t wch, unsigned char *s, size_t avail) } } - return __UNKNOWN_10646_CHAR; + return UNKNOWN_10646_CHAR; } |