diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-05-15 21:17:11 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-05-15 21:17:11 +0000 |
commit | e3e0a182a7dd19c9e5186d5f5963f584b0eb373a (patch) | |
tree | a1eafeb7c1276d93d32680134e82af57406b8aba /iconv/skeleton.c | |
parent | bd687f7ab43028d3722984a6bcf48115bb82d9bb (diff) | |
download | glibc-e3e0a182a7dd19c9e5186d5f5963f584b0eb373a.zip glibc-e3e0a182a7dd19c9e5186d5f5963f584b0eb373a.tar.gz glibc-e3e0a182a7dd19c9e5186d5f5963f584b0eb373a.tar.bz2 |
Update.
1998-05-15 21:07 Ulrich Drepper <drepper@cygnus.com>
* iconv/gconv.h (gconv_step_data): Add new fields invocation_counter
and internal_use.
* iconv/gconv_open.c (__gconv_open): Initialize invocation_counter
and internal_use.
* iconv/skeleton.c: Increment invocation_counter.
* iconvdata/iso-2022-kr.c: When used in iconv() emit designator
sequence first.
* iconv/skeleton.c (FROM_DIRECTION): Completely embrace expression.
* iconvdata/iso-2022-jp.c: Likewise.
* iconvdata/iso646.c: Likewise.
* iconvdata/Makefile: Correct rpath definition for ISO-2022-KR.
Diffstat (limited to 'iconv/skeleton.c')
-rw-r--r-- | iconv/skeleton.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/iconv/skeleton.c b/iconv/skeleton.c index f0445f1..418247f 100644 --- a/iconv/skeleton.c +++ b/iconv/skeleton.c @@ -90,7 +90,7 @@ static int from_object; static int to_object; # ifndef FROM_DIRECTION -# define FROM_DIRECTION step->data == &from_object +# define FROM_DIRECTION (step->data == &from_object) # endif #else # ifndef FROM_DIRECTION @@ -346,6 +346,9 @@ FUNCTION_NAME (struct gconv_step *step, struct gconv_step_data *data, #ifdef END_LOOP END_LOOP #endif + + /* We finished one use of this step. */ + ++data->invocation_counter; } return status; |