From 0a5defb64e94ecb2847b98b2c29155131edeaf97 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 16 Dec 2020 08:00:00 +0000 Subject: Consistently define _(Str) using dgettext ("elfutils", Str) Move the definition of _(Str) macro to lib/eu-config.h which already provides a definition of N_(Str) macro. Since lib/eu-config.h is appended to config.h, it is included into every compilation unit and therefore both macros are now universally available. Remove all other definitions of N_(Str) and _(Str) macros from other files to avoid conflicts and redundancies. The next step is to replace all uses of gettext(Str) with _(Str). Signed-off-by: Dmitry V. Levin --- libasm/ChangeLog | 4 ++++ libasm/libasmP.h | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'libasm') diff --git a/libasm/ChangeLog b/libasm/ChangeLog index 78f1baa4..98ac3315 100644 --- a/libasm/ChangeLog +++ b/libasm/ChangeLog @@ -1,3 +1,7 @@ +2020-12-16 Dmitry V. Levin + + * libasmP.h (_): Remove. + 2020-12-12 Dmitry V. Levin * asm_begin.c (prepare_binary_output): Fix spelling typo in comment. diff --git a/libasm/libasmP.h b/libasm/libasmP.h index 53d8f3a0..8b72f32b 100644 --- a/libasm/libasmP.h +++ b/libasm/libasmP.h @@ -36,9 +36,6 @@ #include "libdwelf.h" -/* gettext helper macros. */ -#define _(Str) dgettext ("elfutils", Str) - /* Known error codes. */ enum -- cgit v1.2.1