2025-02-14 Bruno Haible <bruno@clisp.org>
+ isalnum_l: Fix errors in C++ mode.
+ * lib/ctype.in.h (isalnum_l): Disable _GL_CXXALIASWARN invocation on
+ non-glibc systems.
+ * tests/test-ctype-h-c++.cc (isalnum_l): Fix typo.
+ * doc/posix-functions/isalnum_l.texi: Correct platforms list.
+
isalnum_l: Add tests.
* tests/test-isalnum_l.c: New file, based on tests/test-c32isalnum.c.
* modules/isalnum_l-tests: New file.
@itemize
@item
This function is missing on many platforms:
-FreeBSD 6.0, NetBSD 5.0, OpenBSD 6.0, Minix 3.1.8, AIX 5.1, HP-UX 11, Solaris 11.3, Cygwin 1.7.x, mingw, MSVC 14, Android 4.4.
+FreeBSD 9.0, NetBSD 6.1, OpenBSD 6.1, Minix 3.1.8, AIX 6.1, HP-UX 11, Solaris 11.3, Cygwin 2.5.x, mingw, MSVC 14, Android 4.4.
@end itemize
Portability problems not fixed by Gnulib:
_GL_ARG_NONNULL ((2)));
# endif
_GL_CXXALIAS_SYS (isalnum_l, int, (int c, locale_t locale));
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (isalnum_l);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef isalnum_l
# if HAVE_RAW_DECL_ISALNUM_L
#if GNULIB_TEST_ISALNUM_L
-SIGNATURE_CHECK (GNULIB_NAMESPACE::isalnum_l, int, (int, locale-t));
+SIGNATURE_CHECK (GNULIB_NAMESPACE::isalnum_l, int, (int, locale_t));
#endif
#if 0