[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bad typo in netdb.in.h
From: |
Bruno Haible |
Subject: |
Re: bad typo in netdb.in.h |
Date: |
Sun, 1 May 2011 02:45:56 +0200 |
User-agent: |
KMail/1.9.9 |
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>