From: Daniel Jacobowitz <drow@false.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] PPC build errors in CVS
Date: Sun, 7 Oct 2007 18:40:04 -0400 [thread overview]
Message-ID: <20071007224004.GA29260@caradoc.them.org> (raw)
In-Reply-To: <1191793552.9976.53.camel@rapid>
On Sun, Oct 07, 2007 at 11:45:51PM +0200, J. Mayer wrote:
> I also took a look in C 99 specification and I saw no restriction on
> writing:
> do_this(a,
> #ifdef _this_is_defined
> b,
> #else
> c,
> #endif
> d);
> when do_this() is defined as a macro.
>
> May I suggest you to use a C99 compliant compiler ?
> I don't feel like making my code less readable just because some use
> buggy compilers. (but if someone tells me what in the ISO C
> specification, that I would have missed, explicitelly forbids this).
I'm pretty sure that it was either forbidden or unspecified, at least
in C89. I didn't check C99.
http://gcc.gnu.org/ml/gcc/1999-07n/msg00243.html
> ISO says in 6.8.3 (Macro replacement): "If there are sequences of
> preprocessing tokens within the list of arguments that would otherwise
> act as preprocessing directives, the behavior is undefined."
GCC did not support it until here:
http://gcc.gnu.org/ml/gcc-patches/2002-02/msg01874.html
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-10-07 22:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-07 21:06 [Qemu-devel] PPC build errors in CVS Robert Reif
2007-10-07 21:45 ` J. Mayer
2007-10-07 22:40 ` Daniel Jacobowitz [this message]
2007-10-07 23:03 ` J. Mayer
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=20071007224004.GA29260@caradoc.them.org \
--to=drow@false.org \
--cc=qemu-devel@nongnu.org \
/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.
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).