Paul Eggert wrote:
> > -#  define AI_ADDRCONFIG  0 /* 0x0020: Use configuration of this host to 
> > choose
> > +#  define AI_ADDRCONFIG  0 /* 0x0020: Use configuration of this host to 
> > choose \
> >                                        returned address type.  */
> 
> A backslash-newline in a /* */ comment that's not in a macro definition?

The comment is part of a macro definition, precisely. I added the backslash
because the syntax highlighting in 'kate' made me think that without the
backslash there was a syntax error. The syntax highlighting in Emacs and
Eclipse is correct, though.

I'm doing C for 20 years now, and discovering today that the code

  #define X foo /* comment
  comment */ bar

is well-formed, and X will expand to   foo bar

Simon, should I revert the commit?

Bruno
-- 
In memoriam Casey Jones <http://en.wikipedia.org/wiki/Casey_Jones>

<<inline: kate.png>>

<<inline: emacs.png>>

<<inline: eclipse.png>>

Reply via email to