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: Importing inttypes methods from FreeBSD


On Jul 19 10:13, Craig Howland wrote:
> On 07/19/2017 08:28 AM, Corinna Vinschen wrote:
> > What you really want is to define a static function which takes the
> > reent pointer and strtoimax_l/strtoimax only calling that, like this:
> > 
> > --- snip ---
> > static intmax_t
> > _strtoimax_r(struct _reent *rptr, const char * __restrict nptr,
> > 	     char ** __restrict endptr, int base, locale_t loc)
> Corinna:
>      Why static?  In general, the reentrant forms are included in the header
> files so that they can be called directly if an application so desires.

Good point.  Yes, the function should better be non-static and added
to inttypes.h as well (unconditionally).


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]