[PATCH]: Implement fwide (was Re: swprintf() and friends?)

Howland Craig D (Craig) howland@LGSInnovations.com
Fri Dec 12 02:56:00 GMT 2008


On December 11, 2008 4:06 AM, Corinna Vinschen wrote:
>
> On Dec 10 18:32, Jeff Johnston wrote:
> >
> > I think Craig's idea to move the functions to a wchar directory is a
> > reasonable idea.  ...
>
> I would rather keep them in stdio for the simple reason that they are
> in stdio on the *BSD systems as well.

Just because they arrange things poorly such that they are confusing to
find doesn't seem a good reason for Newlib to leave them that way.  It's
not just the ones that were just put into stdio.  The are also many
wchar.h functions that are under the stdlib and string directories in
newlib, meaning that they are presently scattered into (at least) 3
places.  (FreeBSD appears to have the ones under stdio and string, but
not
the ones under stdlib.)  This is obviously not a priority, but I think
it
would be a good workability aid.
 
On a new subtopic, attached is a small cleanup patch for the new
wide-character I/O stuff, dealing with getting proper function
prototypes.
  
Craig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wc.patch
Type: application/octet-stream
Size: 2044 bytes
Desc: wc.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20081212/5caa7b02/attachment.obj>


More information about the Newlib mailing list