public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Joseph Myers <joseph@codesourcery.com>
To: peter0x44 <peter0x44@disroot.org>
Cc: Gcc <gcc@gcc.gnu.org>
Subject: Re: Suboptimal warning formatting with `bool` type in C
Date: Wed, 1 Nov 2023 23:13:06 +0000	[thread overview]
Message-ID: <586ce4ef-2760-3f79-627e-ca34e345319d@codesourcery.com> (raw)
In-Reply-To: <ac008db44fa681b1b1ac0bda785a11db@disroot.org>

On Wed, 1 Nov 2023, peter0x44 via Gcc wrote:

> Why is #define used instead of typedef? I can't imagine how this could
> possibly break any existing code.

That's how stdbool.h is specified up to C17.  In C23, bool is a keyword 
instead.

-- 
Joseph S. Myers
joseph@codesourcery.com

  reply	other threads:[~2023-11-01 23:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-01 23:10 peter0x44
2023-11-01 23:13 ` Joseph Myers [this message]
2023-11-01 23:28   ` peter0x44
2023-11-02  9:24     ` David Brown

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=586ce4ef-2760-3f79-627e-ca34e345319d@codesourcery.com \
    --to=joseph@codesourcery.com \
    --cc=gcc@gcc.gnu.org \
    --cc=peter0x44@disroot.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 read-only IMAP folder(s) and NNTP newsgroup(s).