🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #53

bug in cpp in SV/363 r3.2 and older

#53
From: David F. Carlson
Date: Tue, 08 Aug 1989 18:39
26 lines
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
Technical Details
Message-ID: <824@micropen>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!mailrus!cornell!rochester!uhura.cc.rochester.edu!ur-valhalla!micropen!dave

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!mailrus!cornell!rochester!uhura.cc.rochester.edu!ur-valhalla!micropen!dave
From: dave@micropen (David F. Carlson)
Newsgroups: comp.bugs.sys5
Subject: bug in cpp in SV/363 r3.2 and older
Message-ID: <824@micropen>
Date: 8 Aug 89 18:39:37 GMT
Organization: Micropen Direct Writing Systems, Pittsford, NY
Lines: 26