mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-27 21:20:18 +00:00
fd1b5c0fb6
2000-04-09 Ulrich Drepper <drepper@redhat.com> Implement handling of restartable conversion functions according to ISO C. * iconv/gconv.h (__gconv_fct): Add additional parameter. * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise. * iconv/gconv.c: Pass additional parameter to conversion function. * iconv/gconv_simple.c (internal_ucs4_loop_single): New function. (internal_ucs4le_loop_single): New function. (__gconv_transform_ascii_internal): Define ONE_DIRECTION. (__gconv_transform_internal_ascii): Likewise. (__gconv_transform_internal_utf8): Likewise. (__gconv_transform_utf8_internal): Likewise. (__gconv_transform_ucs2_internal): Likewise. (__gconv_transform_internal_ucs2): Likewise. (__gconv_transform_ucs2reverse_internal): Likewise. (__gconv_transform_internal_ucs2reverse): Likewise. (internal_ucs4le_loop_unaligned): Before return __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form a valid character. Otherwise return __GCONV_ILLEGAL_INPUT. (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES. * iconv/loop.c: Fit in definition of function to convert one character for processing of left-over bytes from the state object. * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to inend to match names in loop functions. (RESET_INPUT_BUFFER): Change apprpriately. (gconv): If needed, call function to process bytes from the state object. Similar at the end: store left over bytes if input is incomplete. Take extra argument and add new argument to all calls of the conversion function. * iconvdata/iso-2022-cn.c: Adjust numeric values used to store information in the state object to not conflict with length count. * iconvdata/iso-2022-jp.c: Likewise. * iconvdata/iso-2022-kr.c: Likewise. * iconvdata/unicode.c: Adjust for change change in parameters of skeleton function. * iconvdata/utf-16.c: Likewise. * libio/iofwide.c: Add new parameter to all calls of conversion function. * wcsmbs/btowc.c: Likewise. * wcsmbs/mbrtowc.c: Likewise. * wcsmbs/mbsnrtowcs.c: Likewise. * wcsmbs/mbsrtowcs.c: Likewise. * wcsmbs/wcrtomb.c: Likewise. * wcsmbs/wcsnrtombs.c: Likewise. * wcsmbs/wcsrtombs.c: Likewise. * wcsmbs/wctob.c: Likewise. * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and MAX_NEEDED_INPUT. |
||
---|---|---|
.. | ||
testdata | ||
8bit-gap.c | ||
8bit-generic.c | ||
ansi_x3.110.c | ||
asmo_449.c | ||
big5.c | ||
cns11643.c | ||
cns11643.h | ||
cns11643l1.c | ||
cns11643l1.h | ||
cns11643l2.h | ||
cp737.c | ||
cp737.h | ||
cp775.c | ||
cp775.h | ||
cp1250.c | ||
cp1251.c | ||
cp1252.c | ||
cp1253.c | ||
cp1254.c | ||
cp1255.c | ||
cp1256.c | ||
cp1257.c | ||
cp1258.c | ||
csn_369103.c | ||
cwi.c | ||
dec-mcs.c | ||
ebcdic-at-de-a.c | ||
ebcdic-at-de.c | ||
ebcdic-ca-fr.c | ||
ebcdic-dk-no-a.c | ||
ebcdic-dk-no.c | ||
ebcdic-es-a.c | ||
ebcdic-es-s.c | ||
ebcdic-es.c | ||
ebcdic-fi-se-a.c | ||
ebcdic-fi-se.c | ||
ebcdic-fr.c | ||
ebcdic-is-friss.c | ||
ebcdic-it.c | ||
ebcdic-pt.c | ||
ebcdic-uk.c | ||
ebcdic-us.c | ||
ecma-cyrillic.c | ||
euc-cn.c | ||
euc-jp.c | ||
euc-kr.c | ||
euc-tw.c | ||
extra-module.mk | ||
gap.awk | ||
gaptab.awk | ||
gb2312.c | ||
gb2312.h | ||
gbgbk.c | ||
gbk.c | ||
gconv-modules | ||
gen-8bit-gap-1.sh | ||
gen-8bit-gap.sh | ||
gen-8bit.sh | ||
gost_19768-74.c | ||
greek7-old.c | ||
greek7.c | ||
greek-ccitt.c | ||
hp-roman8.c | ||
ibm037.c | ||
ibm038.c | ||
ibm256.c | ||
ibm273.c | ||
ibm274.c | ||
ibm275.c | ||
ibm277.c | ||
ibm278.c | ||
ibm280.c | ||
ibm281.c | ||
ibm284.c | ||
ibm285.c | ||
ibm290.c | ||
ibm297.c | ||
ibm420.c | ||
ibm423.c | ||
ibm424.c | ||
ibm437.c | ||
ibm500.c | ||
ibm850.c | ||
ibm851.c | ||
ibm852.c | ||
ibm855.c | ||
ibm857.c | ||
ibm860.c | ||
ibm861.c | ||
ibm862.c | ||
ibm863.c | ||
ibm864.c | ||
ibm865.c | ||
ibm866.c | ||
ibm868.c | ||
ibm869.c | ||
ibm870.c | ||
ibm871.c | ||
ibm874.c | ||
ibm875.c | ||
ibm880.c | ||
ibm891.c | ||
ibm903.c | ||
ibm904.c | ||
ibm905.c | ||
ibm918.c | ||
ibm1004.c | ||
ibm1026.c | ||
ibm1047.c | ||
iec_p27-1.c | ||
inis-8.c | ||
inis-cyrillic.c | ||
inis.c | ||
isiri-3342.c | ||
iso646.c | ||
iso8859-1.c | ||
iso8859-2.c | ||
iso8859-3.c | ||
iso8859-4.c | ||
iso8859-5.c | ||
iso8859-6.c | ||
iso8859-7.c | ||
iso8859-8.c | ||
iso8859-9.c | ||
iso8859-10.c | ||
iso8859-11.c | ||
iso8859-11.h | ||
iso8859-13.c | ||
iso8859-14.c | ||
iso8859-15.c | ||
iso8859-16.c | ||
iso_2033.c | ||
iso_5427-ext.c | ||
iso_5427.c | ||
iso_5428.c | ||
iso_6937-2.c | ||
iso_6937.c | ||
iso_10367-box.c | ||
iso-2022-cn.c | ||
iso-2022-jp.c | ||
iso-2022-kr.c | ||
iso-ir-165.c | ||
iso-ir-165.h | ||
iso-ir-197.c | ||
jis0201.c | ||
jis0201.h | ||
jis0208.c | ||
jis0208.h | ||
jis0212.c | ||
jis0212.h | ||
johab.c | ||
koi8-r.c | ||
koi8-u.c | ||
koi-8.c | ||
ksc5601.c | ||
ksc5601.h | ||
latin-greek-1.c | ||
latin-greek.c | ||
mac-is.c | ||
mac-uk.c | ||
macintosh.c | ||
Makefile | ||
nats-dano.c | ||
nats-sefi.c | ||
run-iconv-test.sh | ||
sami-ws2.c | ||
sjis.c | ||
t.61.c | ||
TESTS | ||
tis-620.c | ||
uhc.c | ||
unicode.c | ||
utf-16.c |