]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Simplify code that emits diagnostics with error number.
authorBruno Haible <bruno@clisp.org>
Thu, 5 Oct 2023 21:04:32 +0000 (23:04 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Oct 2023 12:55:58 +0000 (14:55 +0200)
commitb7953995a8defeb439b90bcb16bed9bc8174775e
tree6c83aca66d98fd1c097fd342a50149f1924c538d
parente1140f0c4664e3aa609812da3965e92af793fa66
xgettext: Simplify code that emits diagnostics with error number.

* autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add xstrerror.
(GNULIB_MODULES_LIBGETTEXTPO_OTHER): Add strerror_r-posix.
* gettext-tools/src/x-csharp.c: Include xstrerror.h.
(phase2_getc): Invoke 'xstrerror' and 'if_error' instead of 'error'.
* gettext-tools/src/x-javascript.c: Include xstrerror.h.
(phase2_getc): Invoke 'xstrerror' and 'if_error' instead of 'error'.
* gettext-tools/src/x-python.c: Include xstrerror.h.
(phase2_getc): Invoke 'xstrerror' and 'if_error' instead of 'error'.
autogen.sh
gettext-tools/src/x-csharp.c
gettext-tools/src/x-javascript.c
gettext-tools/src/x-python.c