Skip to content

Commit 6490590

Browse files
committed
Relocate include of config.h from header to source modeule
1 parent cf9abeb commit 6490590

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+26
-56
lines changed

Action.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <stdbool.h>
1311
#include <sys/types.h>
1412

Affinity.h

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
88
in the source distribution for its full text.
99
*/
1010

11-
#include "config.h" // IWYU pragma: keep
12-
1311
#include "Machine.h"
1412

1513
#if defined(HAVE_LIBHWLOC) || defined(HAVE_AFFINITY)

CRT.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <stdbool.h>
1311

1412
#include "Macros.h"

ColorsPanel.c

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
55
in the source distribution for its full text.
66
*/
77

8+
#include "config.h" // IWYU pragma: keep
9+
810
#include "ColorsPanel.h"
911

1012
#include <assert.h>

Compat.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <assert.h> // IWYU pragma: keep
1311
#include <fcntl.h>
1412
#include <stddef.h> // IWYU pragma: keep

HeaderLayout.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <assert.h>
1311
#include <stddef.h>
1412
#include <stdint.h>

HeaderOptionsPanel.c

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
55
in the source distribution for its full text.
66
*/
77

8+
#include "config.h" // IWYU pragma: keep
9+
810
#include "HeaderOptionsPanel.h"
911

1012
#include <assert.h>

Machine.h

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
88
in the source distribution for its full text.
99
*/
1010

11-
#include "config.h" // IWYU pragma: keep
12-
1311
#include <limits.h>
1412
#include <stdbool.h>
1513
#include <stdint.h>

MainPanel.h

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
88
in the source distribution for its full text.
99
*/
1010

11-
#include "config.h" // IWYU pragma: keep
12-
1311
#include <stdbool.h>
1412

1513
#include "Action.h"

MemoryMeter.c

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
55
in the source distribution for its full text.
66
*/
77

8+
#include "config.h" // IWYU pragma: keep
9+
810
#include "MemoryMeter.h"
911

1012
#include <assert.h>

Meter.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <stdbool.h>
1311
#include <stddef.h>
1412
#include <stdint.h>

MetersPanel.c

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
55
in the source distribution for its full text.
66
*/
77

8+
#include "config.h" // IWYU pragma: keep
9+
810
#include "MetersPanel.h"
911

1012
#include <stdlib.h>

Object.c

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Released under the GNU GPLv2+, see the COPYING file
66
in the source distribution for its full text.
77
*/
88

9+
#include "config.h" // IWYU pragma: keep
10+
911
#include "Object.h"
1012

1113
#include <stddef.h>

Object.h

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
88
in the source distribution for its full text.
99
*/
1010

11-
#include "config.h" // IWYU pragma: keep
12-
1311
#include <assert.h>
1412
#include <stdbool.h>
1513

Panel.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <assert.h>
1311
#include <stdbool.h>
1412

ProcessTable.c

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
55
in the source distribution for its full text.
66
*/
77

8+
#include "config.h" // IWYU pragma: keep
9+
810
#include "ProcessTable.h"
911

1012
#include <assert.h>

ProcessTable.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <stdbool.h>
1311
#include <sys/types.h>
1412

RichString.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include "ProvideCurses.h"
1311

1412

Scheduling.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <sched.h>
1311
#include <stdbool.h>
1412

Settings.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <stdbool.h>
1311
#include <stddef.h>
1412
#include <stdint.h>

SignalsPanel.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include "Panel.h"
1311

1412
#ifndef HTOP_SOLARIS

Table.c

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Released under the GNU GPLv2+, see the COPYING file
66
in the source distribution for its full text.
77
*/
88

9+
#include "config.h" // IWYU pragma: keep
10+
911
#include "Table.h"
1012

1113
#include <assert.h>

Table.h

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
88
in the source distribution for its full text.
99
*/
1010

11-
#include "config.h" // IWYU pragma: keep
12-
1311
#include <stdbool.h>
1412

1513
#include "Hashtable.h"

linux/HugePageMeter.c

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
55
in the source distribution for its full text.
66
*/
77

8+
#include "config.h" // IWYU pragma: keep
9+
810
#include "linux/HugePageMeter.h"
911

1012
#include <assert.h>

linux/LinuxMachine.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <stdbool.h>
1311

1412
#include "Machine.h"

linux/LinuxProcess.h

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
88
in the source distribution for its full text.
99
*/
1010

11-
#include "config.h" // IWYU pragma: keep
12-
1311
#include <stdbool.h>
1412

1513
#include "Machine.h"

linux/LinuxProcessTable.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <stdbool.h>
1311

1412
#include "ProcessTable.h"

linux/Platform.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <limits.h>
1311
#include <stdbool.h>
1412
#include <stddef.h>

linux/ZramMeter.c

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Released under the GNU GPLv2+, see the COPYING file
66
in the source distribution for its full text.
77
*/
88

9+
#include "config.h" // IWYU pragma: keep
10+
911
#include "linux/ZramMeter.h"
1012

1113
#include <stddef.h>

pcp/InDomTable.h

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
88
in the source distribution for its full text.
99
*/
1010

11-
#include "config.h" // IWYU pragma: keep
12-
1311
#include <stdbool.h>
1412
#include <sys/types.h>
1513

pcp/PCPMachine.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <stdbool.h>
1311
#include <sys/types.h>
1412

pcp/PCPProcess.h

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ Released under the GNU GPLv2+, see the COPYING file
99
in the source distribution for its full text.
1010
*/
1111

12-
#include "config.h" // IWYU pragma: keep
13-
1412
#include <stdbool.h>
1513

1614
#include "Machine.h"

pcp/PCPProcessTable.h

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
77
in the source distribution for its full text.
88
*/
99

10-
#include "config.h" // IWYU pragma: keep
11-
1210
#include <stdbool.h>
1311
#include <sys/types.h>
1412

solaris/Platform.h

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ Released under the GNU GPLv2+, see the COPYING file
99
in the source distribution for its full text.
1010
*/
1111

12-
#include "config.h" // IWYU pragma: keep
13-
1412
#include <kstat.h>
1513

1614
/* On OmniOS /usr/include/sys/regset.h redefines ERR to 13 - \r, breaking the Enter key.

solaris/SolarisMachine.c

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Released under the GNU GPLv2+, see the COPYING file
66
in the source distribution for its full text.
77
*/
88

9+
#include "config.h" // IWYU pragma: keep
910

1011
#include "solaris/SolarisMachine.h"
1112

solaris/SolarisMachine.h

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
88
in the source distribution for its full text.
99
*/
1010

11-
#include "config.h" // IWYU pragma: keep
12-
1311
#include <kstat.h>
1412
#include <stdbool.h>
1513
#include <stdint.h>

solaris/SolarisProcess.c

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Released under the GNU GPLv2+, see the COPYING file
66
in the source distribution for its full text.
77
*/
88

9+
#include "config.h" // IWYU pragma: keep
10+
911
#include "solaris/SolarisProcess.h"
1012

1113
#include <stdlib.h>

solaris/SolarisProcess.h

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
88
in the source distribution for its full text.
99
*/
1010

11-
#include "config.h" // IWYU pragma: keep
12-
1311
#include <zone.h>
1412
#include <sys/proc.h>
1513

solaris/SolarisProcessTable.c

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Released under the GNU GPLv2+, see the COPYING file
66
in the source distribution for its full text.
77
*/
88

9+
#include "config.h" // IWYU pragma: keep
910

1011
#include "solaris/SolarisProcessTable.h"
1112

solaris/SolarisProcessTable.h

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ Released under the GNU GPLv2+, see the COPYING file
88
in the source distribution for its full text.
99
*/
1010

11-
#include "config.h" // IWYU pragma: keep
12-
1311
#include <kstat.h>
1412
#include <stdbool.h>
1513
#include <stdint.h>

unsupported/UnsupportedProcessTable.c

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
55
in the source distribution for its full text.
66
*/
77

8+
#include "config.h" // IWYU pragma: keep
9+
810
#include "UnsupportedProcessTable.h"
911

1012
#include <stdlib.h>

zfs/ZfsArcMeter.c

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Released under the GNU GPLv2+, see the COPYING file
55
in the source distribution for its full text.
66
*/
77

8+
#include "config.h" // IWYU pragma: keep
9+
810
#include "zfs/ZfsArcMeter.h"
911

1012
#include <stddef.h>

0 commit comments

Comments
 (0)