itoa and C++11 std::string
Corinna Vinschen
vinschen@redhat.com
Tue Dec 16 10:57:00 GMT 2014
On Dec 16 09:23, Jon Beniston wrote:
> Hi,
>
> Here's itoa with double underscore and macros.
>
> Cheers,
> Jon
>
> 2014-12-07 Jon Beniston <jon@beniston.com>
>
> * libc/include/stdlib.h (__itoa): Declare prototype.
> (__utoa): Declare prototype.
> (itoa): Define macro.
> (utoa): Define macro.
> * libc/stdlib/Makefile.am: Add itoa.c and utoa.c.
> * libc/stdlib/itoa.c: New file.
> * libc/stdlib/utoa.c: New file.
>
Thanks. I applied the patch with a few changes. On second thought,
itoa and utoa should be functions as well, just not declared if strict
ANSI is required. I tweaked your patch accordingly, so __itoa and
__utoa are always declared, itoa and utoa only if !__STRICT_ANSI__.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20141216/dbc53e0b/attachment.sig>
More information about the Newlib
mailing list