]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
Rename module stdbool-c99 to stdbool-h-c99.
authorBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:18:10 +0000 (23:18 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:35:18 +0000 (23:35 +0100)
* modules/stdbool-h-c99: Renamed from modules/stdbool-c99.
* modules/stdbool-h-c99-tests: Renamed from modules/stdbool-c99-tests.
* modules/stdbool-h-c99-c++-tests: Renamed from
modules/stdbool-c99-c++-tests.
* tests/test-stdbool-h-c99.c: Renamed from tests/test-stdbool-c99.c.
* tests/test-stdbool-h-c99-c++.cc: Renamed from
tests/test-stdbool-c99-c++.cc.
* doc/posix-headers/stdbool.texi: Update.
* modules/* (Depends-on): Update.
* modules/stdbool-c99: New file.

ChangeLog
doc/posix-headers/stdbool.texi
modules/stdbool-c99
modules/stdbool-c99-c++-tests [deleted file]
modules/stdbool-c99-tests [deleted file]
modules/stdbool-h-c99 [new file with mode: 0644]
modules/stdbool-h-c99-c++-tests [new file with mode: 0644]
modules/stdbool-h-c99-tests [new file with mode: 0644]
tests/test-stdbool-h-c99-c++.cc [moved from tests/test-stdbool-c99-c++.cc with 100% similarity]
tests/test-stdbool-h-c99.c [moved from tests/test-stdbool-c99.c with 100% similarity]

index 7237379aca56f5e897b25f1ae2df3a79de2373d0..43138b765be27e3cfb4654b38357199c8dc49d51 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2024-12-27  Bruno Haible  <bruno@clisp.org>
+
+       Rename module stdbool-c99 to stdbool-h-c99.
+       * modules/stdbool-h-c99: Renamed from modules/stdbool-c99.
+       * modules/stdbool-h-c99-tests: Renamed from modules/stdbool-c99-tests.
+       * modules/stdbool-h-c99-c++-tests: Renamed from
+       modules/stdbool-c99-c++-tests.
+       * tests/test-stdbool-h-c99.c: Renamed from tests/test-stdbool-c99.c.
+       * tests/test-stdbool-h-c99-c++.cc: Renamed from
+       tests/test-stdbool-c99-c++.cc.
+       * doc/posix-headers/stdbool.texi: Update.
+       * modules/stdbool-c99: New file.
+
 2024-12-27  Bruno Haible  <bruno@clisp.org>
 
        Rename module stdarg to stdarg-h.
index 163cc85e386e3d2bec288623b7e9195383d9085f..d3a9e20985fffe443fbd42242629f3205f25ee79 100644 (file)
@@ -3,11 +3,11 @@
 
 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdbool.h.html}
 
-Gnulib module: stdbool-c99
-@mindex stdbool-c99
+Gnulib module: stdbool-h-c99
+@mindex stdbool-h-c99
 @mindex stdbool
 
-The @code{stdbool-c99} module is present only for programs that
+The @code{stdbool-h-c99} module is present only for programs that
 formerly used the old @code{stdbool} module for C99 compatibility,
 and that for some reason cannot use the current @code{stdbool} module
 for C23 compatibility.
index 985ba78892a2527745881dd9e8fdc69e1c28511f..9adc88e2496ed1af0bde6acb5211f40c05cb52e1 100644 (file)
@@ -1,45 +1,20 @@
 Description:
 A <stdbool.h> that nearly conforms to C99.
-(Nearly: casts to bool may not work.)
 
 Status:
-obsolete
+deprecated
 
 Notice:
-This module is obsolete.  It is present only for programs that
-formerly used the old stdbool module for C99 compatibility,
-and that for some reason cannot use the current stdbool module
-for C23 compatibility.
+This module is deprecated. Use the module 'stdbool-h-c99' instead.
 
 Files:
-lib/stdbool.in.h
-m4/stdbool.m4
 
 Depends-on:
-gen-header
+stdbool-h-c99
 
 configure.ac:
-gl_STDBOOL_H
-gl_CONDITIONAL_HEADER([stdbool.h])
-AC_PROG_MKDIR_P
 
 Makefile.am:
-BUILT_SOURCES += $(STDBOOL_H)
-
-# We need the following in order to create <stdbool.h> when the system
-# doesn't have one that works.
-if GL_GENERATE_STDBOOL_H
-stdbool.h: stdbool.in.h $(top_builddir)/config.status
-@NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
-       $(gl_V_at)$(SED_HEADER_STDOUT) \
-         -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \
-         $(srcdir)/stdbool.in.h > $@-t
-       $(AM_V_at)mv $@-t $@
-else
-stdbool.h: $(top_builddir)/config.status
-       rm -f $@
-endif
-MOSTLYCLEANFILES += stdbool.h stdbool.h-t
 
 Include:
 <stdbool.h>
@@ -48,4 +23,3 @@ License:
 LGPLv2+
 
 Maintainer:
-all
diff --git a/modules/stdbool-c99-c++-tests b/modules/stdbool-c99-c++-tests
deleted file mode 100644 (file)
index 073ef89..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-Files:
-tests/test-stdbool-c99-c++.cc
-tests/test-stdbool-c++.cc
-tests/test-stdbool-c++2.cc
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-stdbool-c99-c++
-check_PROGRAMS += test-stdbool-c99-c++
-test_stdbool_c99_c___SOURCES = test-stdbool-c99-c++.cc test-stdbool-c++2.cc
-endif
diff --git a/modules/stdbool-c99-tests b/modules/stdbool-c99-tests
deleted file mode 100644 (file)
index e507f94..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Files:
-tests/test-stdbool-c99.c
-tests/test-stdbool.c
-
-Depends-on:
-stdbool-c99-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-stdbool-c99
-check_PROGRAMS += test-stdbool-c99
diff --git a/modules/stdbool-h-c99 b/modules/stdbool-h-c99
new file mode 100644 (file)
index 0000000..985ba78
--- /dev/null
@@ -0,0 +1,51 @@
+Description:
+A <stdbool.h> that nearly conforms to C99.
+(Nearly: casts to bool may not work.)
+
+Status:
+obsolete
+
+Notice:
+This module is obsolete.  It is present only for programs that
+formerly used the old stdbool module for C99 compatibility,
+and that for some reason cannot use the current stdbool module
+for C23 compatibility.
+
+Files:
+lib/stdbool.in.h
+m4/stdbool.m4
+
+Depends-on:
+gen-header
+
+configure.ac:
+gl_STDBOOL_H
+gl_CONDITIONAL_HEADER([stdbool.h])
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += $(STDBOOL_H)
+
+# We need the following in order to create <stdbool.h> when the system
+# doesn't have one that works.
+if GL_GENERATE_STDBOOL_H
+stdbool.h: stdbool.in.h $(top_builddir)/config.status
+@NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
+       $(gl_V_at)$(SED_HEADER_STDOUT) \
+         -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \
+         $(srcdir)/stdbool.in.h > $@-t
+       $(AM_V_at)mv $@-t $@
+else
+stdbool.h: $(top_builddir)/config.status
+       rm -f $@
+endif
+MOSTLYCLEANFILES += stdbool.h stdbool.h-t
+
+Include:
+<stdbool.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all
diff --git a/modules/stdbool-h-c99-c++-tests b/modules/stdbool-h-c99-c++-tests
new file mode 100644 (file)
index 0000000..d946164
--- /dev/null
@@ -0,0 +1,19 @@
+Files:
+tests/test-stdbool-h-c99-c++.cc
+tests/test-stdbool-c++.cc
+tests/test-stdbool-c++2.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-stdbool-h-c99-c++
+check_PROGRAMS += test-stdbool-h-c99-c++
+test_stdbool_h_c99_c___SOURCES = test-stdbool-h-c99-c++.cc test-stdbool-h-c++2.cc
+endif
diff --git a/modules/stdbool-h-c99-tests b/modules/stdbool-h-c99-tests
new file mode 100644 (file)
index 0000000..bee24f4
--- /dev/null
@@ -0,0 +1,12 @@
+Files:
+tests/test-stdbool-h-c99.c
+tests/test-stdbool.c
+
+Depends-on:
+stdbool-h-c99-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-stdbool-h-c99
+check_PROGRAMS += test-stdbool-h-c99