bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new module 'wgetcwd-lgpl'


From: Bruno Haible
Subject: new module 'wgetcwd-lgpl'
Date: Sun, 01 Oct 2023 00:33:59 +0200

For GNU gettext, I need the equivalent of module 'getcwd-lgpl' with a
'wchar_t *' result. Since both the implementation and the unit test are
similar to 'getcwd-lgpl', it makes sense to keep them together, in gnulib,
instead of having 'getcwd-lgpl' in gnulib and 'wgetcwd-lgpl' in gettext.

Done through these patches:


2023-09-30  Bruno Haible  <bruno@clisp.org>

        wgetcwd-lgpl: Add tests.
        * tests/test-wgetcwd-lgpl.c: New file, based on
        tests/test-getcwd-lgpl.c.
        * modules/wgetcwd-lgpl-tests: New file, based on
        modules/getcwd-lgpl-tests.

        wgetcwd-lgpl: New module.
        * lib/wchar.in.h (wgetcwd): New declaration.
        * lib/wgetcwd-lgpl.c: New file, based on lib/getcwd-lgpl.c.
        * m4/wchar_h.m4 (gl_WCHAR_H_REQUIRE_DEFAULTS): Initialize
        GNULIB_WGETCWD.
        * modules/wchar (Makefile.am): Substitute GNULIB_WGETCWD.
        * modules/wgetcwd-lgpl: New file.

2023-09-30  Bruno Haible  <bruno@clisp.org>

        getcwd-lgpl: Tweaks.
        * lib/unistd.in.h (getcwd): Mention the module 'getcwd-lgpl'.
        * lib/getcwd-lgpl.c (rpl_getcwd): Minimize scope of local variables.
        * tests/test-getcwd-lgpl.c (main): Use GNU coding style.

Attachment: 0001-getcwd-lgpl-Tweaks.patch
Description: Text Data

Attachment: 0002-wgetcwd-lgpl-New-module.patch
Description: Text Data

Attachment: 0003-wgetcwd-lgpl-Add-tests.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]