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

15 files changed:
ChangeLog
doc/posix-headers/langinfo.texi
modules/duplocale-tests
modules/langinfo
modules/langinfo-c++-tests [deleted file]
modules/langinfo-h [new file with mode: 0644]
modules/langinfo-h-c++-tests [new file with mode: 0644]
modules/langinfo-h-tests [new file with mode: 0644]
modules/langinfo-tests [deleted file]
modules/localename-unsafe
modules/nl_langinfo
modules/posixcheck
modules/regex
tests/test-langinfo-h-c++.cc [moved from tests/test-langinfo-c++.cc with 100% similarity]
tests/test-langinfo-h.c [moved from tests/test-langinfo.c with 100% similarity]

index c118d64bacb003fb03916ac83753082a3b9015c6..dfd3baac6b8f39a732e404d2efc523cc1462ba7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2024-12-27  Bruno Haible  <bruno@clisp.org>
+
+       Rename module langinfo to langinfo-h.
+       * modules/langinfo-h: Renamed from modules/langinfo.
+       * modules/langinfo-h-tests: Renamed from modules/langinfo-tests.
+       * modules/langinfo-h-c++-tests: Renamed from modules/langinfo-c++-tests.
+       * tests/test-langinfo-h.c: Renamed from tests/test-langinfo.c.
+       * tests/test-langinfo-h-c++.cc: Renamed from tests/test-langinfo-c++.cc.
+       * doc/posix-headers/langinfo.texi: Update.
+       * modules/* (Depends-on): Update.
+       * modules/langinfo: New file.
+
 2024-12-27  Bruno Haible  <bruno@clisp.org>
 
        Rename module inttypes to inttypes-h.
index 8375da8c90ce2429b4087b56e222f4cc682b792b..a0f8fcf5934684154894c00218db5747a66d93de 100644 (file)
@@ -3,8 +3,8 @@
 
 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/langinfo.h.html}
 
-Gnulib module: langinfo
-@mindex langinfo
+Gnulib module: langinfo-h
+@mindex langinfo-h
 
 Portability problems fixed by Gnulib:
 @itemize
index 77295bb38a19a71feb5a49ac33027afbedf170d5..395d252dc8793155de120165defa0ce118e65f2d 100644 (file)
@@ -5,7 +5,7 @@ tests/macros.h
 m4/intl-thread-locale.m4
 
 Depends-on:
-langinfo
+langinfo-h
 
 configure.ac:
 AC_CHECK_FUNCS_ONCE([strfmon_l snprintf_l])
index 24d14883b88d6bc15a21a816ff56ec305dc42bdf..60e5055cf1dcd976e22dc547911982290ff2a063 100644 (file)
@@ -1,49 +1,20 @@
 Description:
 A GNU-like <langinfo.h>.
 
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'langinfo-h' instead.
+
 Files:
-lib/langinfo.in.h
-m4/langinfo_h.m4
 
 Depends-on:
-extensions
-gen-header
-include_next
-snippet/c++defs
-snippet/warn-on-use
+langinfo-h
 
 configure.ac:
-gl_LANGINFO_H
-gl_LANGINFO_H_REQUIRE_DEFAULTS
-AC_PROG_MKDIR_P
 
 Makefile.am:
-BUILT_SOURCES += langinfo.h
-
-# We need the following in order to create an empty placeholder for
-# <langinfo.h> when the system doesn't have one.
-langinfo.h: langinfo.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
-@NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
-       $(gl_V_at)$(SED_HEADER_STDOUT) \
-             -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
-             -e 's|@''HAVE_LANGINFO_H''@|$(HAVE_LANGINFO_H)|g' \
-             -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-             -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-             -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
-             -e 's|@''NEXT_LANGINFO_H''@|$(NEXT_LANGINFO_H)|g' \
-             -e 's/@''GNULIB_NL_LANGINFO''@/$(GNULIB_NL_LANGINFO)/g' \
-             -e 's|@''HAVE_LANGINFO_CODESET''@|$(HAVE_LANGINFO_CODESET)|g' \
-             -e 's|@''HAVE_LANGINFO_T_FMT_AMPM''@|$(HAVE_LANGINFO_T_FMT_AMPM)|g' \
-             -e 's|@''HAVE_LANGINFO_ALTMON''@|$(HAVE_LANGINFO_ALTMON)|g' \
-             -e 's|@''HAVE_LANGINFO_ERA''@|$(HAVE_LANGINFO_ERA)|g' \
-             -e 's|@''HAVE_LANGINFO_YESEXPR''@|$(HAVE_LANGINFO_YESEXPR)|g' \
-             -e 's|@''HAVE_NL_LANGINFO''@|$(HAVE_NL_LANGINFO)|g' \
-             -e 's|@''REPLACE_NL_LANGINFO''@|$(REPLACE_NL_LANGINFO)|g' \
-             -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
-             -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
-             $(srcdir)/langinfo.in.h > $@-t
-       $(AM_V_at)mv $@-t $@
-MOSTLYCLEANFILES += langinfo.h langinfo.h-t
 
 Include:
 <langinfo.h>
@@ -52,4 +23,3 @@ License:
 LGPLv2+
 
 Maintainer:
-all
diff --git a/modules/langinfo-c++-tests b/modules/langinfo-c++-tests
deleted file mode 100644 (file)
index 653637f..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-Files:
-tests/test-langinfo-c++.cc
-tests/signature.h
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-langinfo-c++
-check_PROGRAMS += test-langinfo-c++
-test_langinfo_c___SOURCES = test-langinfo-c++.cc
-endif
diff --git a/modules/langinfo-h b/modules/langinfo-h
new file mode 100644 (file)
index 0000000..24d1488
--- /dev/null
@@ -0,0 +1,55 @@
+Description:
+A GNU-like <langinfo.h>.
+
+Files:
+lib/langinfo.in.h
+m4/langinfo_h.m4
+
+Depends-on:
+extensions
+gen-header
+include_next
+snippet/c++defs
+snippet/warn-on-use
+
+configure.ac:
+gl_LANGINFO_H
+gl_LANGINFO_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += langinfo.h
+
+# We need the following in order to create an empty placeholder for
+# <langinfo.h> when the system doesn't have one.
+langinfo.h: langinfo.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
+@NMD@  $(AM_V_GEN)$(MKDIR_P) '%reldir%'
+       $(gl_V_at)$(SED_HEADER_STDOUT) \
+             -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
+             -e 's|@''HAVE_LANGINFO_H''@|$(HAVE_LANGINFO_H)|g' \
+             -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+             -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+             -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+             -e 's|@''NEXT_LANGINFO_H''@|$(NEXT_LANGINFO_H)|g' \
+             -e 's/@''GNULIB_NL_LANGINFO''@/$(GNULIB_NL_LANGINFO)/g' \
+             -e 's|@''HAVE_LANGINFO_CODESET''@|$(HAVE_LANGINFO_CODESET)|g' \
+             -e 's|@''HAVE_LANGINFO_T_FMT_AMPM''@|$(HAVE_LANGINFO_T_FMT_AMPM)|g' \
+             -e 's|@''HAVE_LANGINFO_ALTMON''@|$(HAVE_LANGINFO_ALTMON)|g' \
+             -e 's|@''HAVE_LANGINFO_ERA''@|$(HAVE_LANGINFO_ERA)|g' \
+             -e 's|@''HAVE_LANGINFO_YESEXPR''@|$(HAVE_LANGINFO_YESEXPR)|g' \
+             -e 's|@''HAVE_NL_LANGINFO''@|$(HAVE_NL_LANGINFO)|g' \
+             -e 's|@''REPLACE_NL_LANGINFO''@|$(REPLACE_NL_LANGINFO)|g' \
+             -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
+             -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
+             $(srcdir)/langinfo.in.h > $@-t
+       $(AM_V_at)mv $@-t $@
+MOSTLYCLEANFILES += langinfo.h langinfo.h-t
+
+Include:
+<langinfo.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all
diff --git a/modules/langinfo-h-c++-tests b/modules/langinfo-h-c++-tests
new file mode 100644 (file)
index 0000000..720dcc9
--- /dev/null
@@ -0,0 +1,18 @@
+Files:
+tests/test-langinfo-h-c++.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-langinfo-h-c++
+check_PROGRAMS += test-langinfo-h-c++
+test_langinfo_h_c___SOURCES = test-langinfo-h-c++.cc
+endif
diff --git a/modules/langinfo-h-tests b/modules/langinfo-h-tests
new file mode 100644 (file)
index 0000000..efad452
--- /dev/null
@@ -0,0 +1,11 @@
+Files:
+tests/test-langinfo-h.c
+
+Depends-on:
+langinfo-h-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-langinfo-h
+check_PROGRAMS += test-langinfo-h
diff --git a/modules/langinfo-tests b/modules/langinfo-tests
deleted file mode 100644 (file)
index ef94dfc..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-Files:
-tests/test-langinfo.c
-
-Depends-on:
-langinfo-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-langinfo
-check_PROGRAMS += test-langinfo
index 3bcdbcad7bc68a45b161458042a9270dcc1c9c34..6f9437c661cf92c7118a5d937d7ca2004059ac1d 100644 (file)
@@ -23,7 +23,7 @@ flexmember
 free-posix
 strdup
 lock
-langinfo
+langinfo-h
 setlocale-null
 setlocale-null-unlocked
 thread-optim
index 3d014c91c2efd5ee8315a691a90be772e56bada9..b553cfb99b72388661c8adab16b3e97ecf85e566 100644 (file)
@@ -10,7 +10,7 @@ m4/threadlib.m4
 m4/visibility.m4
 
 Depends-on:
-langinfo
+langinfo-h
 localeconv      [test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1]
 setlocale-null  [test $HAVE_NL_LANGINFO = 0 || test $HAVE_LANGINFO_CODESET = 0]
 
index 0460a5f20b869fb9e76cf1ed85963096634d32bf..01fa5eccae7a9d017c0185a7af234be5cf2d80be 100644 (file)
@@ -15,7 +15,7 @@ fnmatch-h
 glob-h
 iconv-h
 inttypes-h-incomplete
-langinfo
+langinfo-h
 locale
 malloc-h
 math
index 325df23e2e9fda052ce2b89c3825621ac84f3cd3..5e7feef3747607537befdf8a24a9a104725b4c08 100644 (file)
@@ -26,7 +26,7 @@ glibc-internal/dynarray [test $ac_use_included_regex = yes]
 gnulib-i18n             [test $ac_use_included_regex = yes]
 intprops                [test $ac_use_included_regex = yes]
 iswctype                [test $ac_use_included_regex = yes]
-langinfo                [test $ac_use_included_regex = yes]
+langinfo-h              [test $ac_use_included_regex = yes]
 libc-config             [test $ac_use_included_regex = yes]
 limits-h                [test $ac_use_included_regex = yes]
 lock                    [test $ac_use_included_regex = yes]