bug-gnulib
[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: Fri, 9 Sep 2022 00:02:51 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

To help move ahead on this, I propose the attached patches to Gnulib. They use a simpler version of the Autoconf macro, named gl_C_BOOL to avoid collision with any future improvements to Autoconf. My hope is that gl_C_BOOL can be renamed to AC_C_BOOL, or something like that. The idea is that AC_C_BOOL assumes C99 or later; if you want to port to pre-C99 (which pretty much nobody does these days), you can use the Gnulib stdbool module.

The first patch adds a Gnulib module c-bool, which acts like the existing Gnulib module stdbool except it supports C23-style bool (no include file) instead of C99-style bool.

The second patch is mostly mechanical: it changes the other Gnulib modules to prefer c-bool to stdbool.

I haven't installed these.

Attachment: 0001-c-bool-new-module.patch
Description: Text Data

Attachment: 0002-Prefer-c-bool-to-stdbool.patch
Description: Text Data


reply via email to

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