summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-12-11 10:04:39 +0100
committerBenBE <BenBE@geshi.org>2023-12-26 15:14:19 +0100
commit6490590dc8510ea1cc89cec666020c83af1046b5 (patch)
tree5acc3fe94bcf99bcda19e14b329341f8852fa6bb
parentcf9abeb695f2fb62bb27fd36f393e3216ab1927a (diff)
Relocate include of config.h from header to source modeule
-rw-r--r--Action.h2
-rw-r--r--Affinity.h2
-rw-r--r--CRT.h2
-rw-r--r--ColorsPanel.c2
-rw-r--r--Compat.h2
-rw-r--r--HeaderLayout.h2
-rw-r--r--HeaderOptionsPanel.c2
-rw-r--r--Machine.h2
-rw-r--r--MainPanel.h2
-rw-r--r--MemoryMeter.c2
-rw-r--r--Meter.h2
-rw-r--r--MetersPanel.c2
-rw-r--r--Object.c2
-rw-r--r--Object.h2
-rw-r--r--Panel.h2
-rw-r--r--ProcessTable.c2
-rw-r--r--ProcessTable.h2
-rw-r--r--RichString.h2
-rw-r--r--Scheduling.h2
-rw-r--r--Settings.h2
-rw-r--r--SignalsPanel.h2
-rw-r--r--Table.c2
-rw-r--r--Table.h2
-rw-r--r--linux/HugePageMeter.c2
-rw-r--r--linux/LinuxMachine.h2
-rw-r--r--linux/LinuxProcess.h2
-rw-r--r--linux/LinuxProcessTable.h2
-rw-r--r--linux/Platform.h2
-rw-r--r--linux/ZramMeter.c2
-rw-r--r--pcp/InDomTable.h2
-rw-r--r--pcp/PCPMachine.h2
-rw-r--r--pcp/PCPProcess.h2
-rw-r--r--pcp/PCPProcessTable.h2
-rw-r--r--solaris/Platform.h2
-rw-r--r--solaris/SolarisMachine.c1
-rw-r--r--solaris/SolarisMachine.h2
-rw-r--r--solaris/SolarisProcess.c2
-rw-r--r--solaris/SolarisProcess.h2
-rw-r--r--solaris/SolarisProcessTable.c1
-rw-r--r--solaris/SolarisProcessTable.h2
-rw-r--r--unsupported/UnsupportedProcessTable.c2
-rw-r--r--zfs/ZfsArcMeter.c2
42 files changed, 26 insertions, 56 deletions
diff --git a/Action.h b/Action.h
index db9d8b52..caade03c 100644
--- a/Action.h
+++ b/Action.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include <sys/types.h>
diff --git a/Affinity.h b/Affinity.h
index 341b0c04..c2189062 100644
--- a/Affinity.h
+++ b/Affinity.h
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include "Machine.h"
#if defined(HAVE_LIBHWLOC) || defined(HAVE_AFFINITY)
diff --git a/CRT.h b/CRT.h
index 5361457c..58097986 100644
--- a/CRT.h
+++ b/CRT.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include "Macros.h"
diff --git a/ColorsPanel.c b/ColorsPanel.c
index 01032bc3..581c3a00 100644
--- a/ColorsPanel.c
+++ b/ColorsPanel.c
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "ColorsPanel.h"
#include <assert.h>
diff --git a/Compat.h b/Compat.h
index 28e420ed..2bc12dc6 100644
--- a/Compat.h
+++ b/Compat.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <assert.h> // IWYU pragma: keep
#include <fcntl.h>
#include <stddef.h> // IWYU pragma: keep
diff --git a/HeaderLayout.h b/HeaderLayout.h
index 0163b5e9..473936e2 100644
--- a/HeaderLayout.h
+++ b/HeaderLayout.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
diff --git a/HeaderOptionsPanel.c b/HeaderOptionsPanel.c
index b69d85bb..7b5c81be 100644
--- a/HeaderOptionsPanel.c
+++ b/HeaderOptionsPanel.c
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "HeaderOptionsPanel.h"
#include <assert.h>
diff --git a/Machine.h b/Machine.h
index f2dabddc..419911c3 100644
--- a/Machine.h
+++ b/Machine.h
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
diff --git a/MainPanel.h b/MainPanel.h
index 5f5a5ca4..105b46de 100644
--- a/MainPanel.h
+++ b/MainPanel.h
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include "Action.h"
diff --git a/MemoryMeter.c b/MemoryMeter.c
index 9e0d7d5c..573b8983 100644
--- a/MemoryMeter.c
+++ b/MemoryMeter.c
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "MemoryMeter.h"
#include <assert.h>
diff --git a/Meter.h b/Meter.h
index 6b14634a..17d77f3e 100644
--- a/Meter.h
+++ b/Meter.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
diff --git a/MetersPanel.c b/MetersPanel.c
index ac118e54..2678fb2f 100644
--- a/MetersPanel.c
+++ b/MetersPanel.c
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "MetersPanel.h"
#include <stdlib.h>
diff --git a/Object.c b/Object.c
index f0091480..ae4d33f2 100644
--- a/Object.c
+++ b/Object.c
@@ -6,6 +6,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "Object.h"
#include <stddef.h>
diff --git a/Object.h b/Object.h
index d5b3bb39..4d7d653e 100644
--- a/Object.h
+++ b/Object.h
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <assert.h>
#include <stdbool.h>
diff --git a/Panel.h b/Panel.h
index 33d532e8..286e4464 100644
--- a/Panel.h
+++ b/Panel.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <assert.h>
#include <stdbool.h>
diff --git a/ProcessTable.c b/ProcessTable.c
index 05839455..ac6fc705 100644
--- a/ProcessTable.c
+++ b/ProcessTable.c
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "ProcessTable.h"
#include <assert.h>
diff --git a/ProcessTable.h b/ProcessTable.h
index 3b35c103..96a517a0 100644
--- a/ProcessTable.h
+++ b/ProcessTable.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include <sys/types.h>
diff --git a/RichString.h b/RichString.h
index ee54e055..70ca2748 100644
--- a/RichString.h
+++ b/RichString.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include "ProvideCurses.h"
diff --git a/Scheduling.h b/Scheduling.h
index 4e4a3455..610503cf 100644
--- a/Scheduling.h
+++ b/Scheduling.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <sched.h>
#include <stdbool.h>
diff --git a/Settings.h b/Settings.h
index 61696064..a7740ff3 100644
--- a/Settings.h
+++ b/Settings.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
diff --git a/SignalsPanel.h b/SignalsPanel.h
index d8676622..20fb4a68 100644
--- a/SignalsPanel.h
+++ b/SignalsPanel.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include "Panel.h"
#ifndef HTOP_SOLARIS
diff --git a/Table.c b/Table.c
index 17750d56..d807ce5f 100644
--- a/Table.c
+++ b/Table.c
@@ -6,6 +6,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "Table.h"
#include <assert.h>
diff --git a/Table.h b/Table.h
index ac6cc361..fa85fd66 100644
--- a/Table.h
+++ b/Table.h
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include "Hashtable.h"
diff --git a/linux/HugePageMeter.c b/linux/HugePageMeter.c
index 3860ead6..058ab4b6 100644
--- a/linux/HugePageMeter.c
+++ b/linux/HugePageMeter.c
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "linux/HugePageMeter.h"
#include <assert.h>
diff --git a/linux/LinuxMachine.h b/linux/LinuxMachine.h
index b21a9848..309b4850 100644
--- a/linux/LinuxMachine.h
+++ b/linux/LinuxMachine.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include "Machine.h"
diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h
index 7c6e2d44..388e50d3 100644
--- a/linux/LinuxProcess.h
+++ b/linux/LinuxProcess.h
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include "Machine.h"
diff --git a/linux/LinuxProcessTable.h b/linux/LinuxProcessTable.h
index 76d9a2d1..b87f9b0a 100644
--- a/linux/LinuxProcessTable.h
+++ b/linux/LinuxProcessTable.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include "ProcessTable.h"
diff --git a/linux/Platform.h b/linux/Platform.h
index ccf14f28..e99d1a22 100644
--- a/linux/Platform.h
+++ b/linux/Platform.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <limits.h>
#include <stdbool.h>
#include <stddef.h>
diff --git a/linux/ZramMeter.c b/linux/ZramMeter.c
index f24aaed7..8329f014 100644
--- a/linux/ZramMeter.c
+++ b/linux/ZramMeter.c
@@ -6,6 +6,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "linux/ZramMeter.h"
#include <stddef.h>
diff --git a/pcp/InDomTable.h b/pcp/InDomTable.h
index 7d848d57..f44a39f6 100644
--- a/pcp/InDomTable.h
+++ b/pcp/InDomTable.h
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include <sys/types.h>
diff --git a/pcp/PCPMachine.h b/pcp/PCPMachine.h
index fe6c503f..6518bd49 100644
--- a/pcp/PCPMachine.h
+++ b/pcp/PCPMachine.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include <sys/types.h>
diff --git a/pcp/PCPProcess.h b/pcp/PCPProcess.h
index aed44eee..e9537571 100644
--- a/pcp/PCPProcess.h
+++ b/pcp/PCPProcess.h
@@ -9,8 +9,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include "Machine.h"
diff --git a/pcp/PCPProcessTable.h b/pcp/PCPProcessTable.h
index 3515393f..e55c85ba 100644
--- a/pcp/PCPProcessTable.h
+++ b/pcp/PCPProcessTable.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <stdbool.h>
#include <sys/types.h>
diff --git a/solaris/Platform.h b/solaris/Platform.h
index 88ea417d..1a31c2e7 100644
--- a/solaris/Platform.h
+++ b/solaris/Platform.h
@@ -9,8 +9,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <kstat.h>
/* On OmniOS /usr/include/sys/regset.h redefines ERR to 13 - \r, breaking the Enter key.
diff --git a/solaris/SolarisMachine.c b/solaris/SolarisMachine.c
index b9da8afd..4f740d32 100644
--- a/solaris/SolarisMachine.c
+++ b/solaris/SolarisMachine.c
@@ -6,6 +6,7 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
#include "solaris/SolarisMachine.h"
diff --git a/solaris/SolarisMachine.h b/solaris/SolarisMachine.h
index 3f0050f5..2208a888 100644
--- a/solaris/SolarisMachine.h
+++ b/solaris/SolarisMachine.h
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <kstat.h>
#include <stdbool.h>
#include <stdint.h>
diff --git a/solaris/SolarisProcess.c b/solaris/SolarisProcess.c
index 5a11011d..449861b2 100644
--- a/solaris/SolarisProcess.c
+++ b/solaris/SolarisProcess.c
@@ -6,6 +6,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "solaris/SolarisProcess.h"
#include <stdlib.h>
diff --git a/solaris/SolarisProcess.h b/solaris/SolarisProcess.h
index 6bb3ca1c..1a8d18c7 100644
--- a/solaris/SolarisProcess.h
+++ b/solaris/SolarisProcess.h
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <zone.h>
#include <sys/proc.h>
diff --git a/solaris/SolarisProcessTable.c b/solaris/SolarisProcessTable.c
index 2d9e6a71..549c753c 100644
--- a/solaris/SolarisProcessTable.c
+++ b/solaris/SolarisProcessTable.c
@@ -6,6 +6,7 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
#include "solaris/SolarisProcessTable.h"
diff --git a/solaris/SolarisProcessTable.h b/solaris/SolarisProcessTable.h
index 40480498..7c5ae8f3 100644
--- a/solaris/SolarisProcessTable.h
+++ b/solaris/SolarisProcessTable.h
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h" // IWYU pragma: keep
-
#include <kstat.h>
#include <stdbool.h>
#include <stdint.h>
diff --git a/unsupported/UnsupportedProcessTable.c b/unsupported/UnsupportedProcessTable.c
index e0325e4d..db43f1eb 100644
--- a/unsupported/UnsupportedProcessTable.c
+++ b/unsupported/UnsupportedProcessTable.c
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "UnsupportedProcessTable.h"
#include <stdlib.h>
diff --git a/zfs/ZfsArcMeter.c b/zfs/ZfsArcMeter.c
index f124272f..32f5bb34 100644
--- a/zfs/ZfsArcMeter.c
+++ b/zfs/ZfsArcMeter.c
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
#include "zfs/ZfsArcMeter.h"
#include <stddef.h>

© 2014-2024 Faster IT GmbH | imprint | privacy policy