Subject: Re: stdio FILE extension
To: None <tech-userlevel@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-userlevel
Date: 10/13/2001 01:40:25
hi.
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
> > I'm working on wide char i/o functions like fputwc.
> > in order to support them, FILE should contain
> > more data like shift-states.
> >
> > I made patches to do it, keeping binary compatibility
> > as far as possible.
> new one is here:
> http://cesia3.hoops.jp/file/wcio-20011007.tgz
no one is interested in this? ;-)
overview:
- rename FILE::_ub to _ext.
- use FILE::_ext._base to point to file-associated extended
storage. (_ext._size is now unused.)
- and use _ext._base->_ub instead of _ub.
- extended storage is allocated when FILE itsself is allocated.
- fputwc/fgetwc/ungetc/fwide is already implemented using it.
- these changes may not break binary compatibility unless
applications use FILE::_ub directly.
thanks.
---
YAMAMOTO Takashi<yamt@mwd.biglobe.ne.jp>