]> git.ipfire.org Git - thirdparty/gettext.git/commit
Refactor: Remove code duplication.
authorBruno Haible <bruno@clisp.org>
Sat, 3 Aug 2024 11:10:46 +0000 (13:10 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Aug 2024 23:03:55 +0000 (01:03 +0200)
commit7795affeb2df547abe201200b33c80678ef5282c
treeba1d6f49a564d4785e3b6d6f0f96cf69af786352
parenta4d91dd1d17af4d7ce6aa24c60fe10d3780998ad
Refactor: Remove code duplication.

* gettext-tools/src/po-xerror.h: Include xerror-handler.h. Remove all
declarations.
(PO_SEVERITY_*): Define as aliases of CAT_SEVERITY_*.
(po_xerror, po_xerror2): New macros.
* gettext-tools/src/po-xerror.c: Remove file.
* gettext-tools/src/Makefile.am (COMMON_SOURCE): Remove po-xerror.c.
* gettext-tools/src/msgmerge.c (silent_xerror2): New function.
(match_domain): Pass a stack-allocated xerror_handler to check_plural_eval.
* gettext-tools/woe32dll/gettextsrc-exports.c (po_xerror, po_xerror2): Remove
exports.
* gettext-tools/po/POTFILES.in: Add src/xerror-handler.c. Remove
src/po-xerror.c.
gettext-tools/po/POTFILES.in
gettext-tools/src/Makefile.am
gettext-tools/src/msgmerge.c
gettext-tools/src/po-xerror.c [deleted file]
gettext-tools/src/po-xerror.h
gettext-tools/woe32dll/gettextsrc-exports.c