c32srtombs: New module.
commitef3398710f4b3cff37dcbdb4fdb267f3dcdb9fbe
authorBruno Haible <bruno@clisp.org>
Thu, 9 Jan 2020 15:20:10 +0000 (9 16:20 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 9 Jan 2020 15:20:10 +0000 (9 16:20 +0100)
tree9bcb6713ea90794557c03eaf02fd5d2b1858ffa7
parentd6f8671505956401691e3c35d19499470f582a88
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.
ChangeLog
doc/posix-functions/wcsrtombs.texi
lib/c32srtombs-state.c [new file with mode: 0644]
lib/c32srtombs.c [copied from lib/wcsrtombs.c with 51% similarity]
lib/uchar.in.h
lib/wcsrtombs-impl.h
lib/wcsrtombs.c
m4/uchar.m4
modules/c32srtombs [new file with mode: 0644]
modules/uchar
tests/test-uchar-c++.cc