From: Alexander Monakov <amonakov@ispras.ru>
To: musl@lists.openwall.com
Subject: Re: superfluous space char in marco
Date: Mon, 17 Apr 2017 18:28:58 +0300 (MSK) [thread overview]
Message-ID: <alpine.LNX.2.20.13.1704171825470.26181@monopod.intra.ispras.ru> (raw)
In-Reply-To: <20170417144841.GZ17319@brightrain.aerifal.cx>
On Mon, 17 Apr 2017, Rich Felker wrote:
> This is odd and looks like a gcc bug. Preprocessor macros definitions
> are sequences of PP tokens, not literal code strings, meaning that
> whitespace is irrelevant as long as the resulting sequence of PP
> tokens remains the same; it's a matching definition not a
> redefinition.
No, according to C11 6.10.3 p1 presence of whitespace is significant (its
contents are not), and 6.10.3.5 example 6 corroborates that. GCC, Clang,
ICC and MSVC on Godbolt all agree with that.
Alexander
next prev parent reply other threads:[~2017-04-17 15:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-16 7:58 Syrone Wong
2017-04-17 14:48 ` Rich Felker
2017-04-17 15:28 ` Alexander Monakov [this message]
2017-04-17 17:02 ` Rich Felker
2017-04-17 17:29 ` Szabolcs Nagy
2017-04-17 17:35 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.20.13.1704171825470.26181@monopod.intra.ispras.ru \
--to=amonakov@ispras.ru \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).