guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding new information to scm_t_port (was Re: always O_BINARY?)


From: Andy Wingo
Subject: Re: Adding new information to scm_t_port (was Re: always O_BINARY?)
Date: Thu, 28 Feb 2013 09:53:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

On Thu 28 Feb 2013 04:24, Mark H Weaver <address@hidden> 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))

MHO :)

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]