Initialize stateful depending on whether or not RESET_STATE is defined
authordrepper <drepper>
Tue, 21 Apr 1998 19:08:23 +0000 (19:08 +0000)
committerdrepper <drepper>
Tue, 21 Apr 1998 19:08:23 +0000 (19:08 +0000)
to one or zero respectively.

iconv/skeleton.c

index f905bcd..36cc33c 100644 (file)
@@ -143,6 +143,12 @@ gconv_init (struct gconv_step *step)
   step->min_needed_to = MIN_NEEDED_TO;
   step->max_needed_to = MAX_NEEDED_TO;
 
+#ifdef RESET_STATE
+  step->stateful = 1;
+#else
+  step->stateful = 0;
+#endif
+
   return GCONV_OK;
 }
 #endif