]> Savannah Git Hosting - gnulib.git/commitdiff
stdbool-c99: fix typo
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Dec 2022 18:17:17 +0000 (10:17 -0800)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Jan 2023 09:20:55 +0000 (10:20 +0100)
Reported against Autoconf by Todd C. Miller in:
https://lists.gnu.org/r/autoconf/2022-12/msg00001.html
* m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Sync from Autoconf master.

ChangeLog
m4/stdbool.m4

index 62ec94f9d4f03299cf02134760e4bdaef80cbcb2..c1d8f780d2108ac8e2b070258a6b681d9c60a34e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-12-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       stdbool-c99: fix typo
+       Reported against Autoconf by Todd C. Miller in:
+       https://lists.gnu.org/r/autoconf/2022-12/msg00001.html
+       * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Sync from Autoconf master.
+
 2022-12-22  Paul Eggert  <eggert@cs.ucla.edu>
 
        posix_spawnp-tests: fix filename typo
index c67908aa87fd1772bd7a0cdc5eac3daa394893f2..18fe4b874fb79193140839d4038c8088b21e09a6 100644 (file)
@@ -5,7 +5,7 @@ dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
-#serial 9
+#serial 10
 
 # Prepare for substituting <stdbool.h> if it is not supported.
 
@@ -57,10 +57,10 @@ AC_DEFUN([AC_CHECK_HEADER_STDBOOL],
                 integer constant expressions, and "bool" should be a valid
                 type name.
 
-                Although C 1999 requires bool, true, and false to be macros,
-                C 2023 and C++ 2011 overrule that, so do not test for that.
-                Although C 1999 requires __bool_true_false_are_defined and
-                _Bool, C 2023 says they are obsolescent, so do not require
+                Although C99 requires bool, true, and false to be macros,
+                C23 and C++11 overrule that, so do not test for that.
+                Although C99 requires __bool_true_false_are_defined and
+                _Bool, C23 says they are obsolescent, so do not require
                 them.  */
 
              #if !true
@@ -108,7 +108,7 @@ AC_DEFUN([AC_CHECK_HEADER_STDBOOL],
 
              /* Refer to every declared value, so they cannot be
                 discarded as unused.  */
-             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
+             return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
                      + !l + !m + !n + !o + !p + !pp + !ps);
            ]])],
         [ac_cv_header_stdbool_h=yes],