Subject: Re: Enhanced locale support for 1.4
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Todd Vierling <tv@pobox.com>
List: tech-misc
Date: 06/23/1999 12:14:08
On Wed, 23 Jun 1999, Jason Thorpe wrote:
: > : Since the internal members of FILE aren't available to users, you don't
: > : *have* to keep this info *directly* in FILE. It would be another structure
: > : logically associated with a given instance of a FILE. You could reference
: > : these other structures in a hash table, using a FILE * as a value to hash
: > : for the lookup.
: >
: > Couldn't it be made part of the `cookie'?
:
: Oh my, it certainly could... I forgot all about that :-)
Of course, I should have suffixed that; Charles and I bickered about this
for other reasons at one point.
The problem with putting it into the cookie comes in when someone calls
funopen(), fropen(), or fwopen(). We'd need a flag bit somewhere in the
actual __sFILE that indicates "this cookie is a real stdio cookie, and not
user-supplied" so that we don't tromp on a FILE created by funopen().
--
-- Todd Vierling (tv@pobox.com)