]> Savannah Git Hosting - gnulib.git/commit
mbstowcs: New module.
authorBruno Haible <bruno@clisp.org>
Thu, 30 Mar 2023 22:27:20 +0000 (00:27 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 30 Mar 2023 22:27:20 +0000 (00:27 +0200)
commit7595a8817e03c1366817e69aa74263efa2ca4979
tree46d5a26730a36675ee9b9600d86e72f08fa61064
parent8906a5101bf62b719ddafa376fd4e0805e35617b
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.
ChangeLog
doc/posix-functions/mbstowcs.texi
lib/mbstowcs.c [new file with mode: 0644]
lib/stdlib.in.h
m4/mbstowcs.m4 [new file with mode: 0644]
m4/stdlib_h.m4
modules/mbstowcs [new file with mode: 0644]
modules/stdlib
tests/test-stdlib-c++.cc