#endif <name> ???

Norman Diamond diamond at csl.sony.co.jp
Thu Oct 5 15:06:15 AEST 1989


In article <JFR.89Oct4133101 at tel3.tel3.tel.vtt.fi> jfr at tel3.tel3.tel.vtt.fi (Jim Reilly) writes:

>`#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 ?

It's something funny with pcc-based compilers.  It's something
funnier with SUN to depend on this particular undefined behavior.
Extra tokens after #endif (or #else) are not permitted by ANSI or
K&R-1, though the processor (e.g. pcc) is not required to notice them.

-- 
Norman Diamond, Sony Corp. (diamond%ws.sony.junet at uunet.uu.net seems to work)
  The above opinions are inherited by your machine's init process (pid 1),
  after being disowned and orphaned.  However, if you see this at Waterloo or
  Anterior, then their administrators must have approved of these opinions.



More information about the Comp.lang.c mailing list