diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-04-26 14:03:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-04-26 14:03:20 +0000 |
commit | 8babd571bf5d07755947de8ad0bea1895df2df81 (patch) | |
tree | b5786fbd48e24d4c28a849751a9ac4bb2682038a /iconvdata/iso-2022-jp.c | |
parent | bc900b1118e1fc7b065b37e4d28aa7c998ce5a66 (diff) | |
download | glibc-8babd571bf5d07755947de8ad0bea1895df2df81.zip glibc-8babd571bf5d07755947de8ad0bea1895df2df81.tar.gz glibc-8babd571bf5d07755947de8ad0bea1895df2df81.tar.bz2 |
Update.
* iconvdata/Makefile: Add rules for ISO-2022-KR.
* iconvdata/iso-2022-kr.c: New file.
* iconvdata/gconv-modules: Add entry for ISO-2022-JP, ISO-2022-JP-2,
and ISO-2022-KR.
Diffstat (limited to 'iconvdata/iso-2022-jp.c')
-rw-r--r-- | iconvdata/iso-2022-jp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/iconvdata/iso-2022-jp.c b/iconvdata/iso-2022-jp.c index afd6579..9ca648c 100644 --- a/iconvdata/iso-2022-jp.c +++ b/iconvdata/iso-2022-jp.c @@ -54,6 +54,7 @@ struct gap #define PREPARE_LOOP \ enum direction dir = ((struct iso2022jp_data *) step->data)->dir; \ enum variant var = ((struct iso2022jp_data *) step->data)->var; \ + int save_state; \ int set = data->statep->count; #define END_LOOP \ data->statep->count = set; @@ -81,7 +82,6 @@ struct iso2022jp_data { enum direction dir; enum variant var; - mbstate_t save_state; }; @@ -211,11 +211,9 @@ gconv_end (struct gconv_step *data) and retore the state. */ #define SAVE_RESET_STATE(Save) \ if (Save) \ - ((struct iso2022jp_data *) step->data)->save_state.count \ - = data->statep->count; \ + save_set = set; \ else \ - data->statep->count \ - = ((struct iso2022jp_data *) step->data)->save_state.count + set = save_set /* First define the conversion function from ISO-2022-JP to UCS4. */ |