mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
IWYU update
This commit is contained in:
parent
fecf093367
commit
2bf626c4e4
2
Action.h
2
Action.h
@ -33,7 +33,7 @@ typedef enum {
|
||||
HTOP_RESIZE = 0x80 | HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR,
|
||||
} Htop_Reaction;
|
||||
|
||||
struct MainPanel_;
|
||||
struct MainPanel_; // IWYU pragma: keep
|
||||
|
||||
typedef struct State_ {
|
||||
Settings* settings;
|
||||
|
@ -17,10 +17,8 @@ in the source distribution for its full text.
|
||||
#include "FunctionBar.h"
|
||||
#include "Hashtable.h"
|
||||
#include "ListItem.h"
|
||||
#include "Macros.h"
|
||||
#include "Object.h"
|
||||
#include "Process.h"
|
||||
#include "ProcessList.h"
|
||||
#include "ProvideCurses.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
@ -9,7 +9,6 @@ in the source distribution for its full text.
|
||||
|
||||
#include "Hashtable.h"
|
||||
#include "Panel.h"
|
||||
#include "ProcessList.h"
|
||||
|
||||
|
||||
typedef struct AvailableColumnsPanel_ {
|
||||
|
@ -7,6 +7,8 @@ Released under the GNU GPLv2, see the COPYING file
|
||||
in the source distribution for its full text.
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "Header.h"
|
||||
#include "MetersPanel.h"
|
||||
#include "Panel.h"
|
||||
|
@ -10,7 +10,6 @@ in the source distribution for its full text.
|
||||
#include "CPUMeter.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
1
CRT.c
1
CRT.c
@ -10,6 +10,7 @@ in the source distribution for its full text.
|
||||
#include "CRT.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <langinfo.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
|
@ -18,12 +18,15 @@ in the source distribution for its full text.
|
||||
#include "DisplayOptionsPanel.h"
|
||||
#include "FunctionBar.h"
|
||||
#include "Header.h"
|
||||
#include "HeaderLayout.h"
|
||||
#include "HeaderOptionsPanel.h"
|
||||
#include "ListItem.h"
|
||||
#include "Macros.h"
|
||||
#include "MetersPanel.h"
|
||||
#include "Object.h"
|
||||
#include "ProvideCurses.h"
|
||||
#include "Vector.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
static const char* const CategoriesFunctions[] = {" ", " ", " ", " ", " ", " ", " ", " ", " ", "Done ", NULL};
|
||||
|
@ -13,6 +13,7 @@ in the source distribution for its full text.
|
||||
|
||||
#include "CRT.h"
|
||||
#include "FunctionBar.h"
|
||||
#include "Macros.h"
|
||||
#include "Object.h"
|
||||
#include "OptionItem.h"
|
||||
#include "ProvideCurses.h"
|
||||
|
@ -8,7 +8,6 @@ in the source distribution for its full text.
|
||||
*/
|
||||
|
||||
#include "Panel.h"
|
||||
#include "ScreenManager.h"
|
||||
#include "Settings.h"
|
||||
|
||||
|
||||
|
@ -7,6 +7,7 @@ in the source distribution for its full text.
|
||||
|
||||
#include "ColumnsPanel.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -10,7 +10,6 @@ in the source distribution for its full text.
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "Panel.h"
|
||||
#include "ProcessList.h"
|
||||
#include "Settings.h"
|
||||
|
||||
|
||||
|
@ -14,7 +14,6 @@ in the source distribution for its full text.
|
||||
#include <stddef.h>
|
||||
|
||||
#include "Platform.h"
|
||||
#include "ProcessList.h"
|
||||
#include "RichString.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
@ -1,9 +1,10 @@
|
||||
#ifndef HEADER_DynamicColumn
|
||||
#define HEADER_DynamicColumn
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "Hashtable.h"
|
||||
#include "Process.h"
|
||||
#include "ProcessList.h"
|
||||
#include "RichString.h"
|
||||
|
||||
|
||||
|
@ -12,6 +12,7 @@ in the source distribution for its full text.
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "CRT.h"
|
||||
#include "Object.h"
|
||||
|
@ -18,6 +18,10 @@ in the source distribution for its full text.
|
||||
#include "Macros.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct HashtableItem_ {
|
||||
ht_key_t key;
|
||||
|
2
Header.c
2
Header.c
@ -7,8 +7,10 @@ in the source distribution for its full text.
|
||||
|
||||
#include "Header.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
1
Header.h
1
Header.h
@ -7,6 +7,7 @@ Released under the GNU GPLv2, see the COPYING file
|
||||
in the source distribution for its full text.
|
||||
*/
|
||||
|
||||
#include "HeaderLayout.h"
|
||||
#include "Meter.h"
|
||||
#include "ProcessList.h"
|
||||
#include "Settings.h"
|
||||
|
@ -7,6 +7,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 <assert.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
@ -7,17 +7,17 @@ in the source distribution for its full text.
|
||||
|
||||
#include "HeaderOptionsPanel.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "CRT.h"
|
||||
#include "FunctionBar.h"
|
||||
#include "Header.h"
|
||||
#include "HeaderLayout.h"
|
||||
#include "Object.h"
|
||||
#include "OptionItem.h"
|
||||
#include "ProvideCurses.h"
|
||||
#include "RichString.h"
|
||||
#include "Vector.h"
|
||||
|
||||
|
||||
static const char* const HeaderOptionsFunctions[] = {" ", " ", " ", " ", " ", " ", " ", " ", " ", "Done ", NULL};
|
||||
|
@ -7,15 +7,15 @@ in the source distribution for its full text.
|
||||
|
||||
#include "MemorySwapMeter.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "CRT.h"
|
||||
#include "Macros.h"
|
||||
#include "MemoryMeter.h"
|
||||
#include "Object.h"
|
||||
#include "Platform.h"
|
||||
#include "RichString.h"
|
||||
#include "SwapMeter.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
typedef struct MemorySwapMeterData_ {
|
||||
|
3
Panel.h
3
Panel.h
@ -7,6 +7,9 @@ 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>
|
||||
|
||||
#include "CRT.h"
|
||||
|
@ -9,6 +9,7 @@ in the source distribution for its full text.
|
||||
|
||||
#include "config.h" // IWYU pragma: keep
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/time.h>
|
||||
|
@ -8,7 +8,6 @@ in the source distribution for its full text.
|
||||
#include "RichString.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -12,6 +12,7 @@ in the source distribution for its full text.
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
|
@ -18,7 +18,6 @@ in the source distribution for its full text.
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/select.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "CRT.h"
|
||||
|
@ -8,7 +8,6 @@ in the source distribution for its full text.
|
||||
#include "linux/HugePageMeter.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <limits.h>
|
||||
#include <math.h>
|
||||
#include <stddef.h>
|
||||
|
||||
|
@ -1,13 +1,22 @@
|
||||
#include "linux/LibSensors.h"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_SENSORS_SENSORS_H
|
||||
|
||||
#include <assert.h>
|
||||
#include <dlfcn.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sensors/sensors.h>
|
||||
|
||||
#include "Macros.h"
|
||||
#include "XUtils.h"
|
||||
#include "linux/LinuxProcessList.h"
|
||||
|
||||
|
||||
#ifdef BUILD_STATIC
|
||||
|
@ -1,10 +1,6 @@
|
||||
#ifndef HEADER_LibSensors
|
||||
#define HEADER_LibSensors
|
||||
|
||||
#include "config.h" // IWYU pragma: keep
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "linux/LinuxProcessList.h"
|
||||
|
||||
|
||||
|
@ -8,11 +8,9 @@ in the source distribution for its full text.
|
||||
|
||||
#include "linux/LinuxProcess.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <syscall.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -11,6 +11,7 @@ in the source distribution for its full text.
|
||||
#include "config.h" // IWYU pragma: keep
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "linux/IOPriority.h"
|
||||
#include "Object.h"
|
||||
|
@ -24,7 +24,6 @@ in the source distribution for its full text.
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef HAVE_DELAYACCT
|
||||
@ -47,7 +46,7 @@ in the source distribution for its full text.
|
||||
#include "Settings.h"
|
||||
#include "XUtils.h"
|
||||
#include "linux/LinuxProcess.h"
|
||||
#include "linux/Platform.h" // needed for GNU/hurd to get PATH_MAX
|
||||
#include "linux/Platform.h" // needed for GNU/hurd to get PATH_MAX // IWYU pragma: keep
|
||||
|
||||
#if defined(MAJOR_IN_MKDEV)
|
||||
#include <sys/mkdev.h>
|
||||
|
@ -7,6 +7,8 @@ Released under the GNU GPLv2, see the COPYING file
|
||||
in the source distribution for its full text.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
@ -18,10 +20,12 @@ in the source distribution for its full text.
|
||||
#include "BatteryMeter.h"
|
||||
#include "DiskIOMeter.h"
|
||||
#include "Hashtable.h"
|
||||
#include "Macros.h"
|
||||
#include "Meter.h"
|
||||
#include "NetworkIOMeter.h"
|
||||
#include "Process.h"
|
||||
#include "ProcessLocksScreen.h"
|
||||
#include "RichString.h"
|
||||
#include "SignalsPanel.h"
|
||||
#include "generic/gettime.h"
|
||||
#include "generic/hostname.h"
|
||||
|
Loading…
Reference in New Issue
Block a user