Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Action.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ in the source distribution for its full text.
#include "Process.h"
#include "ScreenManager.h"
#include "SignalsPanel.h"
#include "StringUtils.h"
#include "TraceScreen.h"
#include "Platform.h"
#include "XUtils.h"

#include <ctype.h>
#include <math.h>
Expand Down
9 changes: 6 additions & 3 deletions AffinityPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/

#include "AffinityPanel.h"
#include "CRT.h"
#include "config.h"

#include "Vector.h"
#include "AffinityPanel.h"

#include <assert.h>
#include <string.h>

#include "CRT.h"
#include "Vector.h"
#include "XUtils.h"

#ifdef HAVE_LIBHWLOC
#include <hwloc.h>
#endif
Expand Down
11 changes: 6 additions & 5 deletions AvailableColumnsPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ in the source distribution for its full text.
*/

#include "AvailableColumnsPanel.h"
#include "Platform.h"

#include "Header.h"
#include "ColumnsPanel.h"

#include <assert.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>

#include "ColumnsPanel.h"
#include "Header.h"
#include "Platform.h"
#include "XUtils.h"


static const char* const AvailableColumnsFunctions[] = {" ", " ", " ", " ", "Add ", " ", " ", " ", " ", "Done ", NULL};

Expand Down
1 change: 1 addition & 0 deletions AvailableMetersPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ in the source distribution for its full text.
#include "Header.h"
#include "ListItem.h"
#include "Platform.h"
#include "XUtils.h"

#include <assert.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion BatteryMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ This meter written by Ian P. Hands (iphands@gmail.com, ihands@redhat.com).
#include "Battery.h"
#include "ProcessList.h"
#include "CRT.h"
#include "StringUtils.h"
#include "Platform.h"
#include "XUtils.h"

#include <math.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions CPUMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ in the source distribution for its full text.
#include "CRT.h"
#include "Settings.h"
#include "Platform.h"
#include "XUtils.h"

#include <assert.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion CRT.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ in the source distribution for its full text.
#include "config.h"
#include "CRT.h"

#include "StringUtils.h"
#include "RichString.h"
#include "XUtils.h"

#include <stdio.h>
#include <errno.h>
Expand Down
1 change: 1 addition & 0 deletions ColorsPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ in the source distribution for its full text.

#include "CRT.h"
#include "CheckItem.h"
#include "XUtils.h"

#include <assert.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion ColumnsPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ in the source distribution for its full text.
#include "ColumnsPanel.h"
#include "Platform.h"

#include "StringUtils.h"
#include "XUtils.h"
#include "ListItem.h"
#include "CRT.h"

Expand Down
2 changes: 1 addition & 1 deletion CommandScreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "IncSet.h"
#include "ListItem.h"
#include "Platform.h"
#include "StringUtils.h"
#include "XUtils.h"

#include <stdlib.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions DiskIOMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ in the source distribution for its full text.

#include "CRT.h"
#include "Platform.h"
#include "XUtils.h"


static const int DiskIOMeter_attributes[] = {
Expand Down
7 changes: 4 additions & 3 deletions DisplayOptionsPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ in the source distribution for its full text.

#include "DisplayOptionsPanel.h"

#include "CheckItem.h"
#include "CRT.h"

#include <assert.h>
#include <stdlib.h>
#include <string.h>

#include "CheckItem.h"
#include "CRT.h"
#include "XUtils.h"


static const char* const DisplayOptionsFunctions[] = {" ", " ", " ", " ", " ", " ", " ", " ", " ", "Done ", NULL};

Expand Down
2 changes: 1 addition & 1 deletion EnvScreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "IncSet.h"
#include "ListItem.h"
#include "Platform.h"
#include "StringUtils.h"
#include "XUtils.h"

#include <stdlib.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion FunctionBar.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ in the source distribution for its full text.
#include "FunctionBar.h"
#include "CRT.h"
#include "RichString.h"
#include "XAlloc.h"
#include "XUtils.h"

#include <assert.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion Hashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ in the source distribution for its full text.
*/

#include "Hashtable.h"
#include "XAlloc.h"
#include "XUtils.h"

#include <stdlib.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion Header.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ in the source distribution for its full text.
#include "Header.h"

#include "CRT.h"
#include "StringUtils.h"
#include "Platform.h"
#include "XUtils.h"

#include <assert.h>
#include <time.h>
Expand Down
3 changes: 2 additions & 1 deletion IncSet.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ in the source distribution for its full text.
*/

#include "IncSet.h"
#include "StringUtils.h"
#include "ListItem.h"
#include "CRT.h"
#include "XUtils.h"

#include <string.h>
#include <stdlib.h>

Expand Down
2 changes: 1 addition & 1 deletion InfoScreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "IncSet.h"
#include "ListItem.h"
#include "Platform.h"
#include "StringUtils.h"
#include "XUtils.h"

#include <stdlib.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion ListItem.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ in the source distribution for its full text.
#include "ListItem.h"

#include "CRT.h"
#include "StringUtils.h"
#include "RichString.h"
#include "XUtils.h"

#include <string.h>
#include <assert.h>
Expand Down
1 change: 1 addition & 0 deletions LoadAverageMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ in the source distribution for its full text.

#include "CRT.h"
#include "Platform.h"
#include "XUtils.h"


static const int LoadAverageMeter_attributes[] = {
Expand Down
6 changes: 2 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ myhtopsources = \
ScreenManager.c \
Settings.c \
SignalsPanel.c \
StringUtils.c \
SwapMeter.c \
TasksMeter.c \
TraceScreen.c \
UptimeMeter.c \
UsersTable.c \
Vector.c \
XAlloc.c
XUtils.c

myhtopheaders = \
Action.h \
Expand Down Expand Up @@ -108,14 +107,13 @@ myhtopheaders = \
ScreenManager.h \
Settings.h \
SignalsPanel.h \
StringUtils.h \
SwapMeter.h \
TasksMeter.h \
TraceScreen.h \
UptimeMeter.h \
UsersTable.h \
Vector.h \
XAlloc.h
XUtils.h

# Linux
# -----
Expand Down
2 changes: 1 addition & 1 deletion Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ in the source distribution for its full text.
#include "RichString.h"
#include "Object.h"
#include "CRT.h"
#include "StringUtils.h"
#include "Settings.h"
#include "XUtils.h"

#include <math.h>
#include <string.h>
Expand Down
3 changes: 2 additions & 1 deletion Object.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ in the source distribution for its full text.
*/

#include "RichString.h"
#include "XAlloc.h"
#include "Macros.h"
#include "XUtils.h"


typedef struct Object_ Object;

Expand Down
2 changes: 1 addition & 1 deletion OpenFilesScreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ in the source distribution for its full text.
#include "CRT.h"
#include "ProcessList.h"
#include "IncSet.h"
#include "StringUtils.h"
#include "FunctionBar.h"
#include "XUtils.h"

#include <string.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ in the source distribution for its full text.
#include "CRT.h"
#include "RichString.h"
#include "ListItem.h"
#include "StringUtils.h"
#include "XUtils.h"

#include <math.h>
#include <stdbool.h>
Expand Down
2 changes: 1 addition & 1 deletion Process.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ in the source distribution for its full text.
#include "config.h"

#include "CRT.h"
#include "StringUtils.h"
#include "RichString.h"
#include "Platform.h"
#include "XUtils.h"

#include <stdio.h>
#include <sys/time.h>
Expand Down
4 changes: 2 additions & 2 deletions ProcessList.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ in the source distribution for its full text.
*/

#include "ProcessList.h"
#include "Platform.h"

#include "CRT.h"
#include "StringUtils.h"
#include "Platform.h"
#include "XUtils.h"

#include <stdlib.h>
#include <string.h>
Expand Down
3 changes: 2 additions & 1 deletion RichString.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ in the source distribution for its full text.
*/

#include "RichString.h"
#include "XAlloc.h"
#include "Macros.h"
#include "XUtils.h"

#include <stdlib.h>
#include <string.h>


#define charBytes(n) (sizeof(CharType) * (n))

static void RichString_extendLen(RichString* this, int len) {
Expand Down
6 changes: 3 additions & 3 deletions Settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ in the source distribution for its full text.
*/

#include "Settings.h"
#include "Platform.h"

#include "StringUtils.h"
#include "Vector.h"
#include "CRT.h"
#include "Platform.h"
#include "Vector.h"
#include "XUtils.h"

#include <sys/stat.h>
#include <stdlib.h>
Expand Down
12 changes: 6 additions & 6 deletions SignalsPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ in the source distribution for its full text.

#include "Panel.h"
#include "SignalsPanel.h"
#include "Platform.h"

#include "ListItem.h"
#include "RichString.h"

#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include <signal.h>
#include <stdlib.h>

#include <ctype.h>
#include "ListItem.h"
#include "Platform.h"
#include "RichString.h"
#include "XUtils.h"


Panel* SignalsPanel_new() {
Expand Down
3 changes: 2 additions & 1 deletion TasksMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ in the source distribution for its full text.

#include "TasksMeter.h"

#include "Platform.h"
#include "CRT.h"
#include "Platform.h"
#include "XUtils.h"


static const int TasksMeter_attributes[] = {
Expand Down
2 changes: 1 addition & 1 deletion TraceScreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ in the source distribution for its full text.
#include "ProcessList.h"
#include "ListItem.h"
#include "IncSet.h"
#include "StringUtils.h"
#include "FunctionBar.h"
#include "XUtils.h"

#include <stdio.h>
#include <unistd.h>
Expand Down
Loading