* modules/strings-h: Renamed from modules/strings.
* modules/strings-h-tests: Renamed from modules/strings-tests.
* modules/strings-h-c++-tests: Renamed from modules/strings-c++-tests.
* tests/test-strings-h.c: Renamed from tests/test-strings.c.
* tests/test-strings-h-c++.cc: Renamed from tests/test-strings-c++.cc.
* doc/posix-headers/strings.texi: Update.
* modules/* (Depends-on): Update.
* modules/strings: New file.
+2024-12-27 Bruno Haible <bruno@clisp.org>
+
+ Rename module strings to strings-h.
+ * modules/strings-h: Renamed from modules/strings.
+ * modules/strings-h-tests: Renamed from modules/strings-tests.
+ * modules/strings-h-c++-tests: Renamed from modules/strings-c++-tests.
+ * tests/test-strings-h.c: Renamed from tests/test-strings.c.
+ * tests/test-strings-h-c++.cc: Renamed from tests/test-strings-c++.cc.
+ * doc/posix-headers/strings.texi: Update.
+ * modules/* (Depends-on): Update.
+ * modules/strings: New file.
+
2024-12-27 Bruno Haible <bruno@clisp.org>
Rename module string to string-h.
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/strings.h.html}
-Gnulib module: strings
-@mindex strings
+Gnulib module: strings-h
+@mindex strings-h
Portability problems fixed by Gnulib:
@itemize
lib/bcopy.c
Depends-on:
-strings
+strings-h
configure.ac:
AC_REPLACE_FUNCS(bcopy)
m4/ffs.m4
Depends-on:
-strings
+strings-h
configure.ac:
gl_FUNC_FFS
stdio-h
stdlib-h
string-h
-strings
+strings-h
sys_file
sys_ioctl
sys_random
m4/strcase.m4
Depends-on:
-strings
+strings-h
configure.ac:
gl_STRCASE
Description:
A substitute <strings.h>.
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'strings-h' instead.
+
Files:
-lib/strings.in.h
-m4/strings_h.m4
Depends-on:
-gen-header
-include_next
-snippet/arg-nonnull
-snippet/c++defs
-snippet/warn-on-use
-sys_types
+strings-h
configure.ac:
-gl_STRINGS_H
-gl_STRINGS_H_REQUIRE_DEFAULTS
-AC_PROG_MKDIR_P
Makefile.am:
-BUILT_SOURCES += strings.h
-
-# We need the following in order to create <strings.h> when the system
-# doesn't have one that works with the given compiler.
-strings.h: strings.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_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_STRINGS_H''@|$(HAVE_STRINGS_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_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
- -e 's/@''GNULIB_FFS''@/$(GNULIB_FFS)/g' \
- -e 's|@''HAVE_FFS''@|$(HAVE_FFS)|g' \
- -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
- -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
- -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
- -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
- -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
- $(srcdir)/strings.in.h > $@-t
- $(AM_V_at)mv $@-t $@
-MOSTLYCLEANFILES += strings.h strings.h-t
Include:
<strings.h>
LGPLv2+
Maintainer:
-all
+++ /dev/null
-Files:
-tests/test-strings-c++.cc
-tests/signature.h
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-strings-c++
-check_PROGRAMS += test-strings-c++
-test_strings_c___SOURCES = test-strings-c++.cc
-endif
--- /dev/null
+Description:
+A substitute <strings.h>.
+
+Files:
+lib/strings.in.h
+m4/strings_h.m4
+
+Depends-on:
+gen-header
+include_next
+snippet/arg-nonnull
+snippet/c++defs
+snippet/warn-on-use
+sys_types
+
+configure.ac:
+gl_STRINGS_H
+gl_STRINGS_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += strings.h
+
+# We need the following in order to create <strings.h> when the system
+# doesn't have one that works with the given compiler.
+strings.h: strings.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_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_STRINGS_H''@|$(HAVE_STRINGS_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_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
+ -e 's/@''GNULIB_FFS''@/$(GNULIB_FFS)/g' \
+ -e 's|@''HAVE_FFS''@|$(HAVE_FFS)|g' \
+ -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
+ -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
+ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
+ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
+ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
+ $(srcdir)/strings.in.h > $@-t
+ $(AM_V_at)mv $@-t $@
+MOSTLYCLEANFILES += strings.h strings.h-t
+
+Include:
+<strings.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all
--- /dev/null
+Files:
+tests/test-strings-h-c++.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-strings-h-c++
+check_PROGRAMS += test-strings-h-c++
+test_strings_h_c___SOURCES = test-strings-h-c++.cc
+endif
--- /dev/null
+Files:
+tests/test-strings-h.c
+
+Depends-on:
+strings-h-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-strings-h
+check_PROGRAMS += test-strings-h
+++ /dev/null
-Files:
-tests/test-strings.c
-
-Depends-on:
-strings-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-strings
-check_PROGRAMS += test-strings