From: Bruno Haible Date: Fri, 27 Dec 2024 22:18:10 +0000 (+0100) Subject: Rename module stdbool-c99 to stdbool-h-c99. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f53fd50a2f646b5ca45011ce94f20fc4270ae7a;p=thirdparty%2Fgnulib.git 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/* (Depends-on): Update. * modules/stdbool-c99: New file. --- diff --git a/ChangeLog b/ChangeLog index 7237379aca..43138b765b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2024-12-27 Bruno Haible + + 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 Rename module stdarg to stdarg-h. diff --git a/doc/posix-headers/stdbool.texi b/doc/posix-headers/stdbool.texi index 163cc85e38..d3a9e20985 100644 --- a/doc/posix-headers/stdbool.texi +++ b/doc/posix-headers/stdbool.texi @@ -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. diff --git a/modules/stdbool-c99 b/modules/stdbool-c99 index 985ba78892..9adc88e249 100644 --- a/modules/stdbool-c99 +++ b/modules/stdbool-c99 @@ -1,45 +1,20 @@ Description: A 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 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: @@ -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 index 073ef893c4..0000000000 --- a/modules/stdbool-c99-c++-tests +++ /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 index e507f9493a..0000000000 --- a/modules/stdbool-c99-tests +++ /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 index 0000000000..985ba78892 --- /dev/null +++ b/modules/stdbool-h-c99 @@ -0,0 +1,51 @@ +Description: +A 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 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: + + +License: +LGPLv2+ + +Maintainer: +all diff --git a/modules/stdbool-h-c99-c++-tests b/modules/stdbool-h-c99-c++-tests new file mode 100644 index 0000000000..d946164af3 --- /dev/null +++ b/modules/stdbool-h-c99-c++-tests @@ -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 index 0000000000..bee24f4556 --- /dev/null +++ b/modules/stdbool-h-c99-tests @@ -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 diff --git a/tests/test-stdbool-c99-c++.cc b/tests/test-stdbool-h-c99-c++.cc similarity index 100% rename from tests/test-stdbool-c99-c++.cc rename to tests/test-stdbool-h-c99-c++.cc diff --git a/tests/test-stdbool-c99.c b/tests/test-stdbool-h-c99.c similarity index 100% rename from tests/test-stdbool-c99.c rename to tests/test-stdbool-h-c99.c