9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Inf isInf, NaN, isNaN
@ 2004-03-05 13:04 David Tolpin
  2004-03-05 14:43 ` Charles Forsyth
  0 siblings, 1 reply; 5+ messages in thread
From: David Tolpin @ 2004-03-05 13:04 UTC (permalink / raw)
  To: 9fans

Hi,

ape/math.h defines Inf, isInf, NaN, isNaN; but I cannot find them
in either ISO C standard, or my POSIX reference. Inf results in
a name conflict with an otherwise POSIX compliant source.

Instead, ISO/IEC 9989:1999 (The ISO C Standard) defines

isinf() and  isnan() macros, which are absent from the library.

David Tolpin


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Inf isInf, NaN, isNaN
  2004-03-05 13:04 [9fans] Inf isInf, NaN, isNaN David Tolpin
@ 2004-03-05 14:43 ` Charles Forsyth
  2004-03-05 14:47   ` David Tolpin
  0 siblings, 1 reply; 5+ messages in thread
From: Charles Forsyth @ 2004-03-05 14:43 UTC (permalink / raw)
  To: 9fans

>>Instead, ISO/IEC 9989:1999 (The ISO C Standard) defines
>>isinf() and  isnan() macros, which are absent from the library.

ape predates c9x, which (i suspect) added those--i don't remember
them from the earlier standard--but that's really just a cue
for doug gwyn to contradict me.  i'd check myself, but
for some reason, my c book is always where i am not.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Inf isInf, NaN, isNaN
  2004-03-05 14:43 ` Charles Forsyth
@ 2004-03-05 14:47   ` David Tolpin
  2004-03-05 17:13     ` David Tolpin
  0 siblings, 1 reply; 5+ messages in thread
From: David Tolpin @ 2004-03-05 14:47 UTC (permalink / raw)
  To: 9fans

> >>Instead, ISO/IEC 9989:1999 (The ISO C Standard) defines
> >>isinf() and  isnan() macros, which are absent from the library.
>
> ape predates c9x, which (i suspect) added those--i don't remember
> them from the earlier standard--but that's really just a cue
> for doug gwyn to contradict me.  i'd check myself, but
> for some reason, my c book is always where i am not.
>

For me, the problem was not that isnan was not declared, but that
isNaN was. 

David


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Inf isInf, NaN, isNaN
  2004-03-05 14:47   ` David Tolpin
@ 2004-03-05 17:13     ` David Tolpin
  2004-03-05 19:26       ` David Presotto
  0 siblings, 1 reply; 5+ messages in thread
From: David Tolpin @ 2004-03-05 17:13 UTC (permalink / raw)
  To: 9fans

> > ape predates c9x, which (i suspect) added those--i don't remember
> > them from the earlier standard--but that's really just a cue
> > for doug gwyn to contradict me.  i'd check myself, but
> > for some reason, my c book is always where i am not.
> >
>
> For me, the problem was not that isnan was not declared, but that
> isNaN was. 
>

That is, any chance Inf, isInf, NaN, isNaN can be locked out by
_POSIX_SOURCE or will it break something important enough?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Inf isInf, NaN, isNaN
  2004-03-05 17:13     ` David Tolpin
@ 2004-03-05 19:26       ` David Presotto
  0 siblings, 0 replies; 5+ messages in thread
From: David Presotto @ 2004-03-05 19:26 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 18 bytes --]

For you, anything.

[-- Attachment #2: Type: message/rfc822, Size: 2554 bytes --]

From: David Tolpin <dvd@davidashen.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Inf isInf, NaN, isNaN
Date: Fri, 5 Mar 2004 21:13:28 +0400 (AMT)
Message-ID: <200403051713.i25HDSt7060442@adat.davidashen.net>

> > ape predates c9x, which (i suspect) added those--i don't remember
> > them from the earlier standard--but that's really just a cue
> > for doug gwyn to contradict me.  i'd check myself, but
> > for some reason, my c book is always where i am not.
> >
>
> For me, the problem was not that isnan was not declared, but that
> isNaN was. 
>

That is, any chance Inf, isInf, NaN, isNaN can be locked out by
_POSIX_SOURCE or will it break something important enough?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-03-05 19:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-05 13:04 [9fans] Inf isInf, NaN, isNaN David Tolpin
2004-03-05 14:43 ` Charles Forsyth
2004-03-05 14:47   ` David Tolpin
2004-03-05 17:13     ` David Tolpin
2004-03-05 19:26       ` David Presotto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).