This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: swprintf() and friends?


On Nov  3 16:26, Jeff Johnston wrote:
> For fwide support, I assume you mean two bits and yes, I believe two bits 
> would work.  One bit would mean decided (0 = undecided) and this should 
> take the free bit I mention above.  The __srefill_r and __sfvwrite_r 
> functions could be modified to stamp a file as being narrow/wide and 
> decided, if currently undecided (an extra argument would be needed to these 
> functions to say which type of fn was calling).  If setting and the file is 
> already undecided, then we must resolve any std stream first.  The decided 
> orientation bit would be in _flags (0 = narrow, 1 = wide).

On second reading... what do you mean by "resolve any std stream first"?


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]