]> Savannah Git Hosting - gnulib.git/commit
stdbool: port to C23
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 14 Aug 2022 03:00:02 +0000 (20:00 -0700)
committerBruno Haible <bruno@clisp.org>
Wed, 31 Aug 2022 23:25:52 +0000 (01:25 +0200)
commitb5eea98fbc27b0bb6fc250241a7a08dc61432e6e
treeaa553599ec01377346f512ce234ef557ed4e180c
parentab089716f1dd37c71a293ee9f30a7541ecec95fb
stdbool: port to C23

* m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Copy from bleeding-edge
Autoconf.  Don’t define if Autoconf 2.72 or later.
* tests/test-stdbool.c (bool, false, true)
(__bool_true_false_are_defined): Do not require these to be
defined.  C23 still requires __bool_true_false_are_defined but
marks it as obsolescent, and it’s no longer worth testing.
(WORKING_BOOL): New macro, which also tests __STDC_VERSION__.
Use it in tests for working bool.
Test for bool instead of for _Bool, which C23 says is obsolescent.
ChangeLog
m4/stdbool.m4
tests/test-stdbool.c