bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bad typo in netdb.in.h


From: Simon Josefsson
Subject: Re: bad typo in netdb.in.h
Date: Sun, 01 May 2011 11:42:04 +0200
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.2 (gnu/linux)

Bruno Haible <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]