[CC list trimmed and moved to bug-gnulib@.]

Hi Bruno,

On Tue, Nov 11, 2025 at 01:09:24PM +0100, Bruno Haible wrote:
> Agree; see
> <https://www.gnu.org/software/gnulib/manual/html_node/C99-features-assumed.html>.

After reading that link, and then following
<https://www.gnu.org/software/gnulib/manual/html_node/stdbool_002eh.html>,
I see:

        You cannot assume that _Bool is a typedef; it might be a macro.
        For example, C23 allows _Bool to be a macro.

_Bool was never a typedef.  It's a keyword.  I think you meant 'bool'
instead of '_Bool'?

---

I also see:

        Casts and automatic conversions to ‘bool’ don’t test against the
        zero value or the null pointer, as they should.  Such casts
        should only be used if the value is known to be equal to 0 or 1.

Where does this happen?  It would be good to document which
implementations behave like that.


Have a lovely day!
Alex

-- 
<https://www.alejandro-colomar.es>
Use port 80 (that is, <...:80/>).

Attachment: signature.asc
Description: PGP signature

Reply via email to