This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] New functions wprintf, fwprintf, swprintf, vwprintf, vfwprintf, vswprintf
On Mar 5 16:57, Jeff Johnston wrote:
> Corinna Vinschen wrote:
>> Hi,
>>
>> attached inline is a patch which adds the wprintf family of functions
>> according to the POSIX-1.2008 definition.
>>
>> Basically the functions are copied from their non-w counterparts.
>> However, there's one big change. So far there were multiple versions of
>> the __sprint_r functions defined. Since these functions can be shared
>> between all versions of vfprintf/vfwprintf, and since especially the
>> STRING_ONLY variant of these functions is not that small, I made an
>> additional effort to have only one __sprint_r function and only one
>> __ssprint_r function, the latter being the STRING_ONLY version. Using
>> different names was necessary because the functions are naturally not
>> static anymore.
>>
>> The handling of the s, ls, c, lc format specifier follows exactly the
>> POSIX-1.2008 definition.
>>
>> Of course I tested this new functionality on Cygwin. Having said that,
>> I would very much appreciate if other people on this list would give
>> this functionality some additional testing. printf is such a complex
>> function, I could hardly test it all.
>>
>>
> Hi Corinna,
>
> Thanks for doing this. Please feel free to check it in.
Thanks, applied.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat
- References:
- [PATCH] New functions wprintf, fwprintf, swprintf, vwprintf, vfwprintf, vswprintf
- Re: [PATCH] New functions wprintf, fwprintf, swprintf, vwprintf, vfwprintf, vswprintf