]> 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>
Thu, 1 Sep 2022 12:12:12 +0000 (14:12 +0200)
commitb359033adaa2ab7d4b803df8743514c4ee636503
tree9fdeb1a45432c254f9a14256b458fcd9aad864a4
parent7bccff27642557bcd96f7320859b7d0b1a6309b4
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