[comp.std.c] Whitespace before preprocessor directive

diamond@csl.sony.co.jp (Norman Diamond) (09/29/89)

Consider the following fragment of code:

  x = y + z;  /* comment
  more comment */  #define a b

Is this a legal #define?  I think no, because the comment is replaced
by a single space, so the "#" is preceded by more than whitespace --
it is preceded by "x = y + z;" on the same line.

If my processor encounters and obeys such an illegal #define, is it
required to produce a warning message, or may it obey silently?

-- 
Norman Diamond, Sony Corporation (diamond@ws.sony.junet)
  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.