comments before preprocessor directives

Henry Spencer henry at utzoo.uucp
Mon May 16 15:58:03 AEST 1988


> what is an ansi compliant c preprocessor supposed to do with
> 	#/*foo*/define	x y
> or
> 	/*foo*/#define	x y

X3J11 sayeth that comments vanish (more precisely, turn into a single space)
before preprocessor directives are even thought about.  Also that white space
may occur before or after the #.  So the two examples above are equivalent
and define x to be y.
-- 
NASA is to spaceflight as            |  Henry Spencer @ U of Toronto Zoology
the Post Office is to mail.          | {ihnp4,decvax,uunet!mnetor}!utzoo!henry



More information about the Comp.lang.c mailing list