summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-03-31 00:27:20 +0200
committerBruno Haible <bruno@clisp.org>2023-03-31 00:27:20 +0200
commit7595a8817e03c1366817e69aa74263efa2ca4979 (patch)
tree46d5a26730a36675ee9b9600d86e72f08fa61064 /tests
parent8906a5101bf62b719ddafa376fd4e0805e35617b (diff)
downloadgnulib-7595a8817e03c1366817e69aa74263efa2ca4979.tar.gz
mbstowcs: New module.
* lib/stdlib.in.h (mbstowcs): New declaration. * lib/mbstowcs.c: New file, based on lib/mbstoc32s.c. * m4/mbstowcs.m4: New file. * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbstowcs is declared. (gl_STDLIB_H_REQUIRE_DEFAULTS): Initialize GNULIB_MBSTOWCS. (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MBSTOWCS. * modules/stdlib (Makefile.am): Substitute GNULIB_MBSTOWCS, REPLACE_MBSTOWCS. * modules/mbstowcs: New file. * tests/test-stdlib-c++.cc (mbstowcs): Check signature. * doc/posix-functions/mbstowcs.texi: Mention the C locale behaviour bug and the new module.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-stdlib-c++.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-stdlib-c++.cc b/tests/test-stdlib-c++.cc
index 184437c5fd..7683afd154 100644
--- a/tests/test-stdlib-c++.cc
+++ b/tests/test-stdlib-c++.cc
@@ -73,6 +73,11 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::mbtowc, int,
(wchar_t *, const char *, size_t));
#endif
+#if GNULIB_TEST_MBSTOWCS
+SIGNATURE_CHECK (GNULIB_NAMESPACE::mbstowcs, size_t,
+ (wchar_t *, const char *, size_t));
+#endif
+
#if GNULIB_TEST_MKDTEMP
SIGNATURE_CHECK (GNULIB_NAMESPACE::mkdtemp, char *, (char *));
#endif