Andy Wingo <wi...@pobox.com> skribis:

> On Thu 28 Feb 2013 04:24, Mark H Weaver <m...@netris.org> writes:
>
>> Instead of having 'input_cd' and 'output_cd' point directly to the
>> platform's iconv_t structures, let's have them point to our own internal
>> structure(s) that hold the needed transcoder state.  This could include
>> things like the state for internally-implement encoding(s) (e.g. UTF-8
>> BOM handling), EOL style, and iconv_t pointer(s) if appropriate.
>
> Great idea.
>
> I would call it a generic "port-private" data structure; it is not
> limited to transcoder state.
>
>   struct scm_t_port_private;
>   #define SCM_I_PORT_PRIVATE ((struct scm_t_port_private*)((ptob)->input_cd))
Sounds good to me, perhaps with ‘input_cd’ changed to ‘internal’ or
similar.

Thanks,
Ludo’.

Reply via email to