Subject: Re: scanf misses NAN and INF (patch to review)
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-userlevel
Date: 04/04/2007 21:24:59
In article <1hw2dt9.c4120vozhx6qM%manu@netbsd.org>,
Emmanuel Dreyfus <manu@netbsd.org> wrote:
>Thor Lancelot Simon <tls@rek.tjls.com> wrote:
>
>> No.  Not all floating-point formats have "not a number" or IEEE-style
>> infinities, and we run on at least two machines where there is no
>> floating point format that does, plus at least one where one of the
>> available floating points doesn't (though we don't support it).
>
>Here is an updated version:
>http://ftp.espci.fr/shadow/manu/nan2.diff
>
>The check is now ifdef INFNAN_CHECK, just like in strtod. But here I
>always use -DINFNAN_CHECK. How (where?) to disable it for arches that
>should not have it? (is there any other than vax?)

You need to include "gdtoa/gdtoaimp.h", where it gets conditionally defined.

christos