wcstold implementation
Corinna Vinschen
vinschen@redhat.com
Thu Jan 22 16:19:00 GMT 2015
On Jan 22 16:28, Corinna Vinschen wrote:
> Hi Nick,
>
> On Jan 22 15:11, Nick Clifton wrote:
> > Hi Corinna, Hi Yaakov,
> >
> > What do you think of the attached patch for an implementation of
> > wcstold() for sizeof (long double) > sizeof (double) ? The patch is
> > against the devo sources, but it could be adapted for FSF newlib
> > easily enough. One thing that you might not like is that the
> > _wcstold_r implementation calls _strtold and not _strtold_r. I can
> > fix this too if you think that it is worth it.
>
> We don't have a _strtold_r function, only _strtold. Along these lines,
> I think it should be sufficent to implement wcstold and just skip
> _wcstold_r.
Hmm, on second thought.
The _strtold function in ldtoa.c is old, it never sets errno, it doesn't
take _localeconv_r (ptr)->decimal_point into account...
Maybe we should in fact start with creating an _strtold_r function from
the _strtod_r function first?
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/20150122/5d39f759/attachment.sig>
More information about the Newlib
mailing list