]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Move the #include <libintl.h> into eu-config.h
authorYonggang Luo <luoyonggang@gmail.com>
Sat, 15 Oct 2022 16:36:21 +0000 (00:36 +0800)
committerMark Wielaard <mark@klomp.org>
Sun, 16 Oct 2022 20:36:22 +0000 (22:36 +0200)
So we do not need include in each file.
And indeed the macro
#define _(Str) dgettext ("elfutils", Str)
access libintl function dgettext, so it's make more sense
#include <libintl.h> in file eu-config.h

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
32 files changed:
debuginfod/debuginfod.cxx
lib/color.c
lib/eu-config.h
lib/printversion.c
lib/xasprintf.c
lib/xmalloc.c
libasm/asm_end.c
libasm/asm_error.c
libasm/asm_newscn.c
libcpu/i386_lex.l
libcpu/i386_parse.y
libdw/libdwP.h
libdwfl/argp-std.c
libdwfl/dwfl_error.c
libebl/libeblP.h
libelf/elf_error.c
src/addr2line.c
src/ar.c
src/arlib-argp.c
src/arlib.c
src/arlib2.c
src/elfcmp.c
src/elflint.c
src/findtextrel.c
src/nm.c
src/objdump.c
src/ranlib.c
src/readelf.c
src/size.c
src/strings.c
src/strip.c
src/unstrip.c

index 000a41c485ee8ff27499d5d15fe4f4923f60eaf4..8e7ee4997e0ada6d6c91009c4403d6237ff2ae36 100644 (file)
@@ -47,7 +47,6 @@ extern "C" {
 
 #include <unistd.h>
 #include <stdlib.h>
-#include <libintl.h>
 #include <locale.h>
 #include <pthread.h>
 #include <signal.h>
index e43b614397aefdd1b5589296838245029c13838f..bd105ec276a84633fdf3e8defd210f56f1791c06 100644 (file)
@@ -32,7 +32,6 @@
 #endif
 
 #include <argp.h>
-#include <libintl.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
index c7d7cbb2ec1c415372e7ab18a2c30c3a6d23bd90..78a5c4fed1ca49894e7ae7f1096e3b1415508908 100644 (file)
@@ -52,6 +52,7 @@
 # define rwlock_unlock(lock) ((void) (lock))
 #endif /* USE_LOCKS */
 
+#include <libintl.h>
 /* gettext helper macros.  */
 #define N_(Str) Str
 #define _(Str) dgettext ("elfutils", Str)
index f657329c6b464c5a39a45de343e28980d71f7128..7d31fa832b2cf8e60b712aba8e6c575113ab642e 100644 (file)
@@ -30,7 +30,6 @@
 # include <config.h>
 #endif
 
-#include <libintl.h>
 #include "printversion.h"
 
 void
index 179ea2e835a7bb3ecfc210a3602b5c6a5200abfe..d61fad907601b15af3d5c8cc113da3734a189061 100644 (file)
@@ -33,7 +33,6 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <libintl.h>
 #include "libeu.h"
 #include "system.h"
 
index 7c0949857d56588c3ba1fa8967a9905bcda03734..de7211f1aef72af11a2c04336e493a63660182bd 100644 (file)
@@ -30,7 +30,6 @@
 # include <config.h>
 #endif
 
-#include <libintl.h>
 #include <stddef.h>
 #include <stdlib.h>
 #include <sys/types.h>
index 077d2aa5573907669be9624d2af3a08d008b0e88..a26120f26291ed4a3fcfd66ca21ed388c8abf0fc 100644 (file)
@@ -32,7 +32,6 @@
 #endif
 
 #include <assert.h>
-#include <libintl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index cc3e660b5f81fabfcc82bea1ab27633df70b1147..2b76939567f74721691e4833893a9fb5c8326329 100644 (file)
@@ -31,7 +31,6 @@
 # include <config.h>
 #endif
 
-#include <libintl.h>
 #include <stdbool.h>
 #include <stdlib.h>
 
index 1150015faa1f9096c828d6df22aa06027ae37f19..d258d969fef789b0215e84a9f751f4fd703175be 100644 (file)
@@ -32,7 +32,6 @@
 #endif
 
 #include <assert.h>
-#include <libintl.h>
 #include <stdlib.h>
 #include <string.h>
 
index b6ec0f87035b86950f6aa8c14fdf789cbf775d27..9b33ed95907bad72180617cd421b764522274768 100644 (file)
@@ -31,7 +31,6 @@
 #endif
 
 #include <ctype.h>
-#include <libintl.h>
 
 #include <libeu.h>
 #include "system.h"
index 9a92c2e0d7ce21d2f2e2583c77c708cd16cc53cd..d2236d5993543d979f48630997ca13f80638d3b8 100644 (file)
@@ -35,7 +35,6 @@
 #include <ctype.h>
 #include <errno.h>
 #include <inttypes.h>
-#include <libintl.h>
 #include <math.h>
 #include <obstack.h>
 #include <search.h>
index 56b388c1fc55b189075ee3034824a09178dc719f..961fa4e7f917370530ff58aadc47fbf9bb5efcbd 100644 (file)
@@ -29,7 +29,6 @@
 #ifndef _LIBDWP_H
 #define _LIBDWP_H 1
 
-#include <libintl.h>
 #include <stdbool.h>
 #include <pthread.h>
 
index 01ec18e2182d5db7112143d6d8a54875f72633b7..bc013aa097f88fb35c3f1fdd694fad4507b651c3 100644 (file)
@@ -34,7 +34,6 @@
 #include <argp.h>
 #include <stdlib.h>
 #include <assert.h>
-#include <libintl.h>
 #include <fcntl.h>
 #include <unistd.h>
 
index a5c683a92e2b02db90d9b1f73ce96163418c5648..43fa1dcc2895d266205f5cb0e83e4016183e5c6b 100644 (file)
@@ -31,7 +31,6 @@
 #endif
 
 #include <assert.h>
-#include <libintl.h>
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdlib.h>
index fa1c2c9f5ec483f538fdbd753ee57595789cc7e0..c408ed97b1a3279a0142978f6e6ccda78d033d2f 100644 (file)
@@ -32,7 +32,6 @@
 #include <gelf.h>
 #include <libasm.h>
 #include <libebl.h>
-#include <libintl.h>
 
 
 /* Backend handle.  */
index 5364e6853f857e83bfb77000d7725e82c38bd9fe..e596108d48a5ccc94a2725916474b68c1c2052be 100644 (file)
@@ -32,7 +32,6 @@
 #endif
 
 #include <assert.h>
-#include <libintl.h>
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdlib.h>
index 25db2926df66568bbfc55f1bbee72d10f5d40839..7768b266fd8dbde04ee351c9389bec27569e49de 100644 (file)
@@ -28,7 +28,6 @@
 #include <inttypes.h>
 #include <libdwfl.h>
 #include <dwarf.h>
-#include <libintl.h>
 #include <locale.h>
 #include <stdbool.h>
 #include <stdio.h>
index 04456c18a03a04d2153f79bb6353e8c01aa613e6..3bcb18fe827b6c01c6b088c6e20b7680cf4e72e7 100644 (file)
--- a/src/ar.c
+++ b/src/ar.c
@@ -24,7 +24,6 @@
 #include <assert.h>
 #include <fcntl.h>
 #include <gelf.h>
-#include <libintl.h>
 #include <limits.h>
 #include <locale.h>
 #include <search.h>
index a3c12e4d9e5d8f54841cc6d18255b29690a60d27..115b9d76c3657f2b50beba6353ae5e1295deed82 100644 (file)
@@ -20,7 +20,6 @@
 #endif
 
 #include <argp.h>
-#include <libintl.h>
 
 #include "arlib.h"
 
index c09fc3c6fd8491ec44cf824afddffb8d3060c30d..b8f89ba7df8751f1ddbff8ac7a85833dff45cc3f 100644 (file)
@@ -23,7 +23,6 @@
 #include <assert.h>
 #include <gelf.h>
 #include <inttypes.h>
-#include <libintl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
index 11f44e5d3565efc8d221a5a39274a5046aa368e7..9ae6662c59ab0b3ac095dc6b467de27e188f5f20 100644 (file)
@@ -20,7 +20,6 @@
 # include <config.h>
 #endif
 
-#include <libintl.h>
 #include <limits.h>
 #include <string.h>
 
index 21d8d9dc3000eddbcaa4c0876a46bb746ff6bddb..fba67e0252e18ab3b098e80fa0f1fa22ef8f7190 100644 (file)
@@ -25,7 +25,6 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <locale.h>
-#include <libintl.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
index b0e5415ef485ad0dbd461cbcd3833b3f744ebda9..565cffdc6579ece072f2a708b721666e4ab3f449 100644 (file)
@@ -27,7 +27,6 @@
 #include <fcntl.h>
 #include <gelf.h>
 #include <inttypes.h>
-#include <libintl.h>
 #include <locale.h>
 #include <stdbool.h>
 #include <stdlib.h>
index ecb1d11889fa85b02a6df0436c7ba6baa4693978..d3021a3a0ac76ec32ec411e31ac02773cdbc44ce 100644 (file)
@@ -26,7 +26,6 @@
 #include <fcntl.h>
 #include <gelf.h>
 #include <libdw.h>
-#include <libintl.h>
 #include <locale.h>
 #include <search.h>
 #include <stdbool.h>
index 166475891385b90763c3f0beb04109abef9a3521..b46c1fd7d3ff1c1b670a774646fa80570ea827b2 100644 (file)
--- a/src/nm.c
+++ b/src/nm.c
@@ -30,7 +30,6 @@
 #include <gelf.h>
 #include <inttypes.h>
 #include <libdw.h>
-#include <libintl.h>
 #include <locale.h>
 #include <obstack.h>
 #include <search.h>
index b32de17d57b183de94ba2902274ad44a6865e608..d43c1dd65c891da4cc4d4ccde0c0ecee7ffa7554 100644 (file)
@@ -23,7 +23,6 @@
 #include <argp.h>
 #include <fcntl.h>
 #include <inttypes.h>
-#include <libintl.h>
 #include <locale.h>
 #include <stdbool.h>
 #include <stdio.h>
index bd7e1d8a5e3189db27a0932d24c0198bc2c41a9b..7838d69eaec6826f26111de66794df77c1f3fd5b 100644 (file)
@@ -26,7 +26,6 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <gelf.h>
-#include <libintl.h>
 #include <locale.h>
 #include <obstack.h>
 #include <stdlib.h>
index 1a10fd01eabaa1af231335c3c3cbc3ec8b1fdbc3..a206e60ea4cb18527c78744e8a1141a4be74687e 100644 (file)
@@ -30,7 +30,6 @@
 #include <langinfo.h>
 #include <libdw.h>
 #include <libdwfl.h>
-#include <libintl.h>
 #include <locale.h>
 #include <stdarg.h>
 #include <stdbool.h>
index 8f203167bc8b96021030298c14a96ba35bf73f11..ff8ca07531b99060da82eafe16bac8d52315be4b 100644 (file)
@@ -25,7 +25,6 @@
 #include <gelf.h>
 #include <inttypes.h>
 #include <libelf.h>
-#include <libintl.h>
 #include <locale.h>
 #include <stdbool.h>
 #include <stdio.h>
index 04aac3b6be3b52d01decb6a9ab1a56f60dbebf49..55b047be6aa7315176cf5994cdf4f71cb401bf2b 100644 (file)
@@ -28,7 +28,6 @@
 #include <fcntl.h>
 #include <gelf.h>
 #include <inttypes.h>
-#include <libintl.h>
 #include <locale.h>
 #include <stdbool.h>
 #include <stdio.h>
index 452b12796dd3b7ff3a46d13a2bfb9aa0f5c93ac9..2a2cc801b2979c5291a6a6ee88f0f5418478639d 100644 (file)
@@ -28,7 +28,6 @@
 #include <fnmatch.h>
 #include <gelf.h>
 #include <libelf.h>
-#include <libintl.h>
 #include <locale.h>
 #include <stdbool.h>
 #include <stdio.h>
index 3472637a1dce5e261484b76e4ad721e6165522ff..d5bd1821531676d28fa9543b5d5a2c97d51dceed 100644 (file)
@@ -33,7 +33,6 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <fnmatch.h>
-#include <libintl.h>
 #include <locale.h>
 #include <stdbool.h>
 #include <stdio.h>