autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bool and C23


From: Paul Eggert
Subject: Re: bool and C23
Date: Sun, 18 Sep 2022 11:31:15 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 9/18/22 10:10, Bruno Haible wrote:
   #define true (!false)
works! It evaluates to 1 and is of the right type.

Thanks, that's nicer than the tricky "#define true ((bool) +1)" that I was going to suggest.

I did notice one glitch (an unnecessary "#undef true" that is always commented out) and a couple of minor opportunities for simplification, and installed the attached update.

Attachment: 0001-stdbool-omit-undef-true.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]