From 9ce5071a3d3af1b7837b1a081548fdd945a66efe Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 21 Apr 1998 19:09:49 +0000 Subject: Update. 1998-04-21 19:05 Ulrich Drepper * iconv/gconv.h (struct gconv_step): Add element stateful. * iconv/gconv_builtin.c (__gconv_builtin_trans): Initialize stateful to zero for all internal conversions. * iconv/skeleton.c: Initialize stateful depending on whether or not RESET_STATE is defined to one or zero respectively. * stdlib/mblen.c: Use stateful element of currently selected converter for result if S is NULL. * stdlib/mbtowc.c: Likewise. * stdlib/wctomb.c: Likewise. --- iconv/gconv.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'iconv/gconv.h') diff --git a/iconv/gconv.h b/iconv/gconv.h index cd0e3de..b359c92 100644 --- a/iconv/gconv.h +++ b/iconv/gconv.h @@ -87,6 +87,9 @@ struct gconv_step int min_needed_to; int max_needed_to; + /* Flag whether this is a stateful encoding or not. */ + int stateful; + void *data; /* Pointer to step-local data. */ }; -- cgit v1.1