Bruno Haible <br...@clisp.org> writes:

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

Yeah, I think if there is no known reason to have the backslash there,
it should not be there.

/Simon

Reply via email to