From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24282 invoked by alias); 19 Jul 2017 15:44:35 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 23821 invoked by uid 89); 19 Jul 2017 15:44:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:d3a3400, H*i:sk:d3a3400, H*c:application X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Jul 2017 15:44:33 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 690A868E1A for ; Wed, 19 Jul 2017 15:44:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 690A868E1A Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=vinschen@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 690A868E1A Received: from calimero.vinschen.de (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 377B27C740 for ; Wed, 19 Jul 2017 15:44:32 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id F3335A80642; Wed, 19 Jul 2017 17:44:30 +0200 (CEST) Date: Wed, 19 Jul 2017 15:44:00 -0000 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: Importing inttypes methods from FreeBSD Message-ID: <20170719154430.GB6325@calimero.vinschen.de> Reply-To: newlib@sourceware.org Mail-Followup-To: newlib@sourceware.org References: <20170719122806.GA6325@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JYK4vJDZwFMowpUq" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-SW-Source: 2017/txt/msg00604.txt.bz2 --JYK4vJDZwFMowpUq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 744 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: > >=20 > > --- 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 hea= der > 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 --=20 Corinna Vinschen Cygwin Maintainer Red Hat --JYK4vJDZwFMowpUq Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZb35eAAoJEPU2Bp2uRE+g9j4P/RlwDTQ/30GR+lsc2ALuopcH DzfWuYgWeO6DHu5a65S3jyyp3/hYdGD9kcw8x1ohJPl8heG6clb4wPm2C+0/QJ3m 1pbiPb62SSNLoU3F+x42cEx0UynEFbtY1opoUKardtjkg1K/NGorkY6vce0ChGFJ tJbht/Axw33Gua+ZxoWnb7QsY3oy+9T8TycQs6u2iwFyAw1ztuRvN4LbSomI8BJZ IHEV/RpErkUEFhGMMlE/USD++wK9FB3vUvwvPAqLUp1YTqVIZK4R4ighYD6Zclxj ifz/ibObIx6QKGKBx2IIuJyuxGaz56fmaRBiWhbEzAmDAZLahQZutAsAg4YGzphx 959WQBFbvlYrGfPFtn2OHZ+IuFOujHmFC45YSWzS6bYJ9nzBTt9PzyGcZv0wp/1B 2k13oTROIeTIF7yuoTz08yKpnh+ZUAZneBgHP+/PoN7GMLdv8Sk4TTZSYeTcYDHg gSbONDtpbCBzC8oiJM+6RF9ITHRJXYYgGmvV73w0r/uJLfyf6DD9MUwRfD6i5C/v 4GeafI2RdCK0ZKv7RlO+4tS7vL9tEQBd/iB9sxGfUEchpL22JW+d9jX9/itsJqcf xE3Wd/nzBb7uCSDiAVh1eklfADObxBM+p4jxlwuqPvoazyMAqElUDggvOlRscm1U AUnmtBHKeFSOSqc6pe9X =/zvM -----END PGP SIGNATURE----- --JYK4vJDZwFMowpUq--