delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/05/04:34:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 5 Dec 2002 10:34:07 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Cc: newlib AT sources DOT redhat DOT com
Subject: Re: strtof is missing
Message-ID: <20021205103407.N1140@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, newlib AT sources DOT redhat DOT com
References: <200211240004 DOT 04863 DOT jblazi AT gmx DOT de> <177909597 DOT 20021124103437 AT vtc DOT ru> <20021124105015 DOT X1398 AT cygbert DOT vinschen DOT de> <3DEE5BD8 DOT 5000408 AT redhat DOT com>
Mime-Version: 1.0
In-Reply-To: <3DEE5BD8.5000408@redhat.com>
User-Agent: Mutt/1.3.22.1i

On Wed, Dec 04, 2002 at 02:47:36PM -0500, J. Johnston wrote:
> It is not a typo.  Newlib was created to be ANSI with some Unix extensions.
> Originally, strtodf was added in 1992 as an extension.  Since then, C99
> has defined strtof.
> 
> Now, that said, since there is a strtof() routine defined in C99, we might
> as well rename the extension.
> 
> The following is a patch which renames strtodf to be strtof and leaves a
> #define mapping in stdlib for anybody using the old name.  Eventually, we 
> should
> be able to remove the old name entirely.

Thanks Jeff,

but I guess it's better to keep the strtodf() function for backward
compatibility.  I would suggest just to add another function strtof()
so that old applications (linked e.g. against old versions of Cygwin)
will keep running under newer versions.  Removing the symbol might
break these applications (though I assume there aren't that much apps
using strtodf).

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019