summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry V. Levin <[email protected]>2020-12-16 08:00:00 +0000
committerDmitry V. Levin <[email protected]>2020-12-16 10:01:52 +0000
commit0a5defb64e94ecb2847b98b2c29155131edeaf97 (patch)
tree2fbbe796e985ad1cefdf4234de8654ce56c14d5e /src
parent2e0ae048de8ada585e8ba7d505aad5c3268f8433 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/unstrip.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 72f70343..27e64384 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2020-12-16 Dmitry V. Levin <[email protected]>
+
+ * unstrip.c (_): Remove.
+
2020-12-15 Mark Wielaard <[email protected]>
* elflint.c (check_symtab): Always print symbol name (if known)
diff --git a/src/unstrip.c b/src/unstrip.c
index 231b941d..85803295 100644
--- a/src/unstrip.c
+++ b/src/unstrip.c
@@ -52,10 +52,6 @@
#include "libeu.h"
#include "printversion.h"
-#ifndef _
-# define _(str) gettext (str)
-#endif
-
/* Name and version of program. */
ARGP_PROGRAM_VERSION_HOOK_DEF = print_version;