Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: #endif ??? Message-ID: <1989Oct4.204146.11781@utzoo.uucp> Organization: U of Toronto Zoology References: Date: Wed, 4 Oct 89 20:41:46 GMT In article jfr@tel3.tel3.tel.vtt.fi (Jim Reilly) writes: >... The `#endif sparc` >never caused any complaints on the sun's normal C compiler, but our >'Designer C++' compiler doesn't like it. Is this just something >funny with the c compilers on the SUN ? At least I didn't find >it in any C or ANSI C manuals around here. Many Unix implementations have historically permitted putting any sort of garbage after `endif', but neither K&R nor ANSI C has ever endorsed putting anything but a comment there, and many compilers not derived from the original Unix ones are fussier about this. -- Nature is blind; Man is merely | Henry Spencer at U of Toronto Zoology shortsighted (and improving). | uunet!attcan!utzoo!henry henry@zoo.toronto.edu