diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-12-11 10:04:39 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-12-26 15:14:19 +0100 |
commit | 6490590dc8510ea1cc89cec666020c83af1046b5 (patch) | |
tree | 5acc3fe94bcf99bcda19e14b329341f8852fa6bb | |
parent | cf9abeb695f2fb62bb27fd36f393e3216ab1927a (diff) |
Relocate include of config.h from header to source modeule
42 files changed, 26 insertions, 56 deletions
@@ -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> @@ -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) @@ -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> @@ -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> @@ -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> @@ -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> @@ -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> @@ -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> @@ -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> @@ -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 @@ -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> @@ -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> |