Re: bool and C23

2022-08-22 Thread Zack Weinberg
Please note consolidated reply to both Paul and Bruno. On Sun, Aug 21, 2022, at 5:25 PM, Paul Eggert wrote: > On 8/21/22 07:59, Zack Weinberg wrote: >> Paul Eggert: >>> Zack Weinberg: @defmac AC_C_BOOL (@ovar{if-required}) >>> >>> How about if we omit the IF-REQUIRED parameter? >> >> Taking o

Re: bool and C23

2022-08-22 Thread Paul Eggert
On 8/22/22 15:58, Zack Weinberg wrote: There isn’t a bool module right now, are you proposing to add one? Yes. I want to get to where _no_ Gnulib module is required for bool; AC_C_BOOL by itself should be enough. Yes, that's the long term goal. But in the shorter term Gnulib-using code ca

Re: bool and C23

2022-08-22 Thread Bruno Haible
Replying to https://lists.gnu.org/archive/html/autoconf/2022-08/msg6.html : > > will quietly bump its minimum C compiler requirement to C99. Are we > > okay with that? > Yes, I think so. I believe Gawk was the last Gnulib-using project that wanted > portability to C89, and Gawk dropped that

Re: bool and C23

2022-08-22 Thread Bruno Haible
Zack Weinberg wrote: > > * In C++ mode, > […] > > [cstdbool may include] various OS stuff, and should therefore be > > avoided when possible. Since a compilation unit cannot be ISO C 23 > > and C++ at the same time, it is easy to achieve: Wrap the new > > config.h additions in > >