diff options
author | Bruno Haible <bruno@clisp.org> | 2020-01-09 16:20:10 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-01-09 16:20:10 +0100 |
commit | ef3398710f4b3cff37dcbdb4fdb267f3dcdb9fbe (patch) | |
tree | 9bcb6713ea90794557c03eaf02fd5d2b1858ffa7 /tests/test-uchar-c++.cc | |
parent | d6f8671505956401691e3c35d19499470f582a88 (diff) | |
download | gnulib-ef3398710f4b3cff37dcbdb4fdb267f3dcdb9fbe.tar.gz |
c32srtombs: New module.
* lib/uchar.in.h (c32srtombs): New declaration.
* lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
INTERNAL_STATE, WCRTOMB.
* lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
* lib/c32srtombs.c: New file.
* lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
* m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
* modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
* modules/c32srtombs: New file.
* tests/test-uchar-c++.cc: Test the signature of c32srtombs.
* doc/posix-functions/wcsrtombs.texi: Mention the new module.
Diffstat (limited to 'tests/test-uchar-c++.cc')
-rw-r--r-- | tests/test-uchar-c++.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-uchar-c++.cc b/tests/test-uchar-c++.cc index ed45da2e83..e202bbc117 100644 --- a/tests/test-uchar-c++.cc +++ b/tests/test-uchar-c++.cc @@ -33,6 +33,11 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::c32rtomb, size_t, (char *, char32_t , mbstate_t *)); #endif +#if GNULIB_TEST_C32SRTOMBS +SIGNATURE_CHECK (GNULIB_NAMESPACE::c32srtombs, size_t, + (char *, const char32_t **, size_t, mbstate_t *)); +#endif + #if GNULIB_TEST_C32TOB SIGNATURE_CHECK (GNULIB_NAMESPACE::c32tob, int, (wint_t)); #endif |