comments before preprocessor directives
Paul Gluckauf Haahr
haahr at phoenix.Princeton.EDU
Fri May 13 11:17:59 AEST 1988
what is an ansi compliant c preprocessor supposed to do with
#/*foo*/define x y
x
or
/*foo*/#define x y
x
the preprocessor that is shipped with sun os 3.5 gives y for the first
case and x for the second. i would assume this is probably the same
behavior as most reiser-derived preprocessors, which probably accounts
for the bulk of unix preprocessors. how do other machines handle it
now?
and has anyone ever used code like that for a good reason? has anyone
even seen any code which counts on one or the other behavior?
paul haahr
princeton!haahr (haahr at princeton.edu)
More information about the Comp.lang.c
mailing list