Consistently define _(Str) using dgettext ("elfutils", Str)
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 16 Dec 2020 08:00:00 +0000 (08:00 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 16 Dec 2020 10:01:52 +0000 (10:01 +0000)
commit0a5defb64e94ecb2847b98b2c29155131edeaf97
tree2fbbe796e985ad1cefdf4234de8654ce56c14d5e
parent2e0ae048de8ada585e8ba7d505aad5c3268f8433
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 <ldv@altlinux.org>
18 files changed:
lib/ChangeLog
lib/eu-config.h
lib/xmalloc.c
libasm/ChangeLog
libasm/libasmP.h
libdw/ChangeLog
libdw/libdwP.h
libdwfl/ChangeLog
libdwfl/argp-std.c
libdwfl/libdwflP.h
libebl/ChangeLog
libebl/libeblP.h
libelf/ChangeLog
libelf/libelfP.h
src/ChangeLog
src/unstrip.c
tests/ChangeLog
tests/dwflmodtest.c