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: Adding Methods related to inttypes.h


On Jun 14 07:42, Sebastian Huber wrote:
> On 13/06/17 21:03, aditya upadhyay wrote:
> 
> > Hello Developers,
> > 
> > I have ported the methods what are declared inside the inttypes.h
> > header file from freebsd. I am requesting you to please review the
> > code.
> > 
> > I am not able to push the code of ccoshl.c in my forked repo. It is
> > saying fatal error. I do not know how to apply the signature.asc file.
> > Please have a look on my issue.
> > [...]
> >   newlib/libc/Makefile.am          |   4 +-
> >   newlib/libc/inttypes/Makefile.am |  24 +++++++
> >   newlib/libc/inttypes/imaxabs.c   |  44 ++++++++++++
> >   newlib/libc/inttypes/imaxdiv.c   |  53 ++++++++++++++
> >   newlib/libc/inttypes/strtoimax.c | 144 +++++++++++++++++++++++++++++++++++++
> >   newlib/libc/inttypes/strtoumax.c | 135 ++++++++++++++++++++++++++++++++++
> >   newlib/libc/inttypes/wcstoimax.c | 151 +++++++++++++++++++++++++++++++++++++++
> >   newlib/libc/inttypes/wcstoumax.c | 144 +++++++++++++++++++++++++++++++++++++
> 
> These functions should probably go into "newlib/libc/stdlib" just like on
> FreeBSD and NetBSD. Where does this "inttypes" directory come from?

ACK.

Also, newlib already has functions strtoll, strtoull, wcstoll, wcstoull.
So the aliasing to strtoimax, etc, seems like a bad idea.  In theory,
all we need is an aliasing from strtoll to strtoumax, etc, in the existing
sources.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


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