From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52237 invoked by alias); 19 Jul 2017 14:13:27 -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 52219 invoked by uid 89); 19 Jul 2017 14:13:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=desires, H*RU:sk:mail01., Hx-spam-relays-external:sk:mail01. X-HELO: mail01.lgsinnovations.com Received: from mail01.lgsinnovations.com (HELO mail01.lgsinnovations.com) (184.75.234.233) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Jul 2017 14:13:25 +0000 Subject: Re: Importing inttypes methods from FreeBSD To: References: <20170719122806.GA6325@calimero.vinschen.de> From: Craig Howland Message-ID: Date: Wed, 19 Jul 2017 14:13:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20170719122806.GA6325@calimero.vinschen.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LGS-EX05.lgsdirect.com (135.22.48.227) To LGS-EX01.lgsdirect.com (135.22.77.164) X-IsSubscribed: yes X-SW-Source: 2017/txt/msg00603.txt.bz2 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. Craig