Thread View: comp.bugs.sys5
1 messages
1 total messages
Started by David F. Carlson
Tue, 08 Aug 1989 18:39
bug in cpp in SV/363 r3.2 and older
Author: David F. Carlson
Date: Tue, 08 Aug 1989 18:39
Date: Tue, 08 Aug 1989 18:39
26 lines
1025 bytes
1025 bytes
For the following program:
#include <stdio.h>
#include <nan.h>
float g = 1.0;
main()
{
fprintf(stderr,"I'm OK = %d.\n", IsNANorINF(g));
}
Firstly, required define _IEEE is missing from cpp(1).
Secondly, putting a #define _IEEE before the include of <nan.h>
above will cause cpp to barf on the next line of the file nan.h
after the #if _IEEE. However, -D_IEEE on the command line will
cause the file to parse and compile and execute correctly.
This is true under ESIX 3.2 and Microport 3.0e.
--
David F. Carlson, Micropen, Inc.
micropen!dave@ee.rochester.edu
"The faster I go, the behinder I get." --Lewis Carroll
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads