* modules/ctype-h: Renamed from modules/ctype.
* modules/ctype-h-tests: Renamed from modules/ctype-tests.
* modules/ctype-h-c++-tests: Renamed from modules/ctype-c++-tests.
* tests/test-ctype-h.c: Renamed from tests/test-ctype.c.
* tests/test-ctype-h-c++.cc: Renamed from tests/test-ctype-c++.cc.
* tests/test-ctype-h-c++2.cc: Renamed from tests/test-ctype-c++2.cc.
* doc/posix-headers/ctype.texi: Update.
* modules/* (Depends-on): Update.
* modules/ctype: New file.
+2025-02-13 Bruno Haible <bruno@clisp.org>
+
+ Rename module ctype to ctype-h.
+ * modules/ctype-h: Renamed from modules/ctype.
+ * modules/ctype-h-tests: Renamed from modules/ctype-tests.
+ * modules/ctype-h-c++-tests: Renamed from modules/ctype-c++-tests.
+ * tests/test-ctype-h.c: Renamed from tests/test-ctype.c.
+ * tests/test-ctype-h-c++.cc: Renamed from tests/test-ctype-c++.cc.
+ * tests/test-ctype-h-c++2.cc: Renamed from tests/test-ctype-c++2.cc.
+ * doc/posix-headers/ctype.texi: Update.
+ * modules/* (Depends-on): Update.
+ * modules/ctype: New file.
+
2025-02-13 Bruno Haible <bruno@clisp.org>
getaddrinfo: Fix a compilation error in C++ mode (regression yesterday).
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/ctype.h.html}
-Gnulib module: ctype
-@mindex ctype
+Gnulib module: ctype-h
+@mindex ctype-h
Portability problems fixed by Gnulib:
@itemize
tests/macros.h
Depends-on:
-ctype
+ctype-h
isblank
configure.ac:
Description:
-A <ctype.h> that conforms to C99.
+A <ctype.h> that works around platform issues.
+
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'ctype-h' instead.
Files:
-lib/ctype.in.h
-m4/ctype_h.m4
Depends-on:
-extern-inline
-gen-header
-include_next
-snippet/c++defs
-snippet/warn-on-use
+ctype-h
configure.ac:
-gl_CTYPE_H
-gl_CTYPE_H_REQUIRE_DEFAULTS
-AC_PROG_MKDIR_P
Makefile.am:
-BUILT_SOURCES += ctype.h
-
-# We need the following in order to create <ctype.h> when the system
-# doesn't have one that works with the given compiler.
-ctype.h: ctype.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|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
- -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
- -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
- -e 's|@''NEXT_CTYPE_H''@|$(NEXT_CTYPE_H)|g' \
- -e 's/@''GNULIB_ISBLANK''@/$(GNULIB_ISBLANK)/g' \
- -e 's/@''HAVE_ISBLANK''@/$(HAVE_ISBLANK)/g' \
- -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
- -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
- $(srcdir)/ctype.in.h > $@-t
- $(AM_V_at)mv $@-t $@
-MOSTLYCLEANFILES += ctype.h ctype.h-t
Include:
<ctype.h>
LGPLv2+
Maintainer:
-all
+++ /dev/null
-Files:
-tests/test-ctype-c++.cc
-tests/test-ctype-c++2.cc
-tests/signature.h
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-ctype-c++
-check_PROGRAMS += test-ctype-c++
-test_ctype_c___SOURCES = test-ctype-c++.cc test-ctype-c++2.cc
-endif
--- /dev/null
+Description:
+A <ctype.h> that conforms to C99.
+
+Files:
+lib/ctype.in.h
+m4/ctype_h.m4
+
+Depends-on:
+extern-inline
+gen-header
+include_next
+snippet/c++defs
+snippet/warn-on-use
+
+configure.ac:
+gl_CTYPE_H
+gl_CTYPE_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += ctype.h
+
+# We need the following in order to create <ctype.h> when the system
+# doesn't have one that works with the given compiler.
+ctype.h: ctype.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|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+ -e 's|@''NEXT_CTYPE_H''@|$(NEXT_CTYPE_H)|g' \
+ -e 's/@''GNULIB_ISBLANK''@/$(GNULIB_ISBLANK)/g' \
+ -e 's/@''HAVE_ISBLANK''@/$(HAVE_ISBLANK)/g' \
+ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
+ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
+ $(srcdir)/ctype.in.h > $@-t
+ $(AM_V_at)mv $@-t $@
+MOSTLYCLEANFILES += ctype.h ctype.h-t
+
+Include:
+<ctype.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all
--- /dev/null
+Files:
+tests/test-ctype-h-c++.cc
+tests/test-ctype-h-c++2.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-ctype-h-c++
+check_PROGRAMS += test-ctype-h-c++
+test_ctype_h_c___SOURCES = test-ctype-h-c++.cc test-ctype-h-c++2.cc
+endif
--- /dev/null
+Files:
+tests/test-ctype-h.c
+
+Depends-on:
+ctype-h-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-ctype-h
+check_PROGRAMS += test-ctype-h
+++ /dev/null
-Files:
-tests/test-ctype.c
-
-Depends-on:
-ctype-c++-tests
-
-configure.ac:
-
-Makefile.am:
-TESTS += test-ctype
-check_PROGRAMS += test-ctype
c32tolower
c32toupper
c99
-ctype
+ctype-h
flexmember
gettext-h
gnulib-i18n
Depends-on:
extensions
-ctype
+ctype-h
configure.ac:
gl_FUNC_ISBLANK
Depends-on:
# All modules that depend on 'snippet/warn-on-use'.
arpa_inet-h
-ctype
+ctype-h
dirent-h
fcntl-h
fnmatch-h
+++ /dev/null
-/* Test of <ctype.h> substitute in C++ mode.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-/* Written by Bruno Haible <bruno@clisp.org>, 2019. */
-
-#define GNULIB_NAMESPACE gnulib
-#include <config.h>
-
-#include <ctype.h>
-
-#include "signature.h"
-
-
-#if 0
-SIGNATURE_CHECK (GNULIB_NAMESPACE::isblank, int, (int));
-#endif
-
-
-int
-main ()
-{
-}
+++ /dev/null
-/* Test of <ctype.h> substitute in C++ mode.
- Copyright (C) 2019-2025 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-#define GNULIB_NAMESPACE gnulib
-#include <config.h>
-
-#include <cctype>
--- /dev/null
+/* Test of <ctype.h> substitute in C++ mode.
+ Copyright (C) 2019-2025 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2019. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <ctype.h>
+
+#include "signature.h"
+
+
+#if 0
+SIGNATURE_CHECK (GNULIB_NAMESPACE::isblank, int, (int));
+#endif
+
+
+int
+main ()
+{
+}
--- /dev/null
+/* Test of <ctype.h> substitute in C++ mode.
+ Copyright (C) 2019-2025 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cctype>
--- /dev/null
+/* Test of <ctype.h> substitute.
+ Copyright (C) 2009-2025 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+/* Written by Eric Blake <ebb9@byu.net>, 2009. */
+
+#include <config.h>
+
+#include <ctype.h>
+
+int
+main (void)
+{
+ return 0;
+}
+++ /dev/null
-/* Test of <ctype.h> substitute.
- Copyright (C) 2009-2025 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
-
-/* Written by Eric Blake <ebb9@byu.net>, 2009. */
-
-#include <config.h>
-
-#include <ctype.h>
-
-int
-main (void)
-{
- return 0;
-}