mirror of https://github.com/xzeldon/htop.git
Rename StringUtils.[ch] to XUtils.[ch]
This commit is contained in:
parent
c6f04a9c5d
commit
872e542f4e
2
Action.c
2
Action.c
|
@ -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>
|
||||
|
|
|
@ -13,8 +13,8 @@ in the source distribution for its full text.
|
|||
#include <string.h>
|
||||
|
||||
#include "CRT.h"
|
||||
#include "StringUtils.h"
|
||||
#include "Vector.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#ifdef HAVE_LIBHWLOC
|
||||
#include <hwloc.h>
|
||||
|
|
|
@ -15,7 +15,7 @@ in the source distribution for its full text.
|
|||
#include "ColumnsPanel.h"
|
||||
#include "Header.h"
|
||||
#include "Platform.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
static const char* const AvailableColumnsFunctions[] = {" ", " ", " ", " ", "Add ", " ", " ", " ", " ", "Done ", NULL};
|
||||
|
|
|
@ -12,7 +12,7 @@ in the source distribution for its full text.
|
|||
#include "Header.h"
|
||||
#include "ListItem.h"
|
||||
#include "Platform.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -10,7 +10,7 @@ in the source distribution for its full text.
|
|||
#include "CRT.h"
|
||||
#include "Settings.h"
|
||||
#include "Platform.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
|
2
CRT.c
2
CRT.c
|
@ -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>
|
||||
|
|
|
@ -9,7 +9,7 @@ in the source distribution for its full text.
|
|||
|
||||
#include "CRT.h"
|
||||
#include "CheckItem.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -11,7 +11,7 @@ in the source distribution for its full text.
|
|||
|
||||
#include "CRT.h"
|
||||
#include "Platform.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
static const int DiskIOMeter_attributes[] = {
|
||||
|
|
|
@ -13,7 +13,7 @@ in the source distribution for its full text.
|
|||
|
||||
#include "CheckItem.h"
|
||||
#include "CRT.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
static const char* const DisplayOptionsFunctions[] = {" ", " ", " ", " ", " ", " ", " ", " ", " ", "Done ", NULL};
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -8,8 +8,8 @@ in the source distribution for its full text.
|
|||
#include "FunctionBar.h"
|
||||
#include "CRT.h"
|
||||
#include "RichString.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XAlloc.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
|
2
Header.c
2
Header.c
|
@ -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>
|
||||
|
|
3
IncSet.c
3
IncSet.c
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -9,7 +9,7 @@ in the source distribution for its full text.
|
|||
|
||||
#include "CRT.h"
|
||||
#include "Platform.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
static const int LoadAverageMeter_attributes[] = {
|
||||
|
|
|
@ -56,14 +56,14 @@ myhtopsources = \
|
|||
ScreenManager.c \
|
||||
Settings.c \
|
||||
SignalsPanel.c \
|
||||
StringUtils.c \
|
||||
SwapMeter.c \
|
||||
TasksMeter.c \
|
||||
TraceScreen.c \
|
||||
UptimeMeter.c \
|
||||
UsersTable.c \
|
||||
Vector.c \
|
||||
XAlloc.c
|
||||
XAlloc.c \
|
||||
XUtils.c
|
||||
|
||||
myhtopheaders = \
|
||||
Action.h \
|
||||
|
@ -108,14 +108,14 @@ myhtopheaders = \
|
|||
ScreenManager.h \
|
||||
Settings.h \
|
||||
SignalsPanel.h \
|
||||
StringUtils.h \
|
||||
SwapMeter.h \
|
||||
TasksMeter.h \
|
||||
TraceScreen.h \
|
||||
UptimeMeter.h \
|
||||
UsersTable.h \
|
||||
Vector.h \
|
||||
XAlloc.h
|
||||
XAlloc.h \
|
||||
XUtils.h
|
||||
|
||||
# Linux
|
||||
# -----
|
||||
|
|
2
Meter.c
2
Meter.c
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
2
Panel.c
2
Panel.c
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -16,7 +16,7 @@ in the source distribution for its full text.
|
|||
#include "ListItem.h"
|
||||
#include "Platform.h"
|
||||
#include "RichString.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
Panel* SignalsPanel_new() {
|
||||
|
|
|
@ -9,7 +9,7 @@ in the source distribution for its full text.
|
|||
|
||||
#include "CRT.h"
|
||||
#include "Platform.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
static const int TasksMeter_attributes[] = {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -9,7 +9,7 @@ in the source distribution for its full text.
|
|||
|
||||
#include "CRT.h"
|
||||
#include "Platform.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
static const int UptimeMeter_attributes[] = {
|
||||
|
|
|
@ -17,8 +17,8 @@ in the source distribution for its full text.
|
|||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "StringUtils.h"
|
||||
#include "XAlloc.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
UsersTable* UsersTable_new() {
|
||||
|
|
|
@ -7,7 +7,7 @@ in the source distribution for its full text.
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef HEADER_StringUtils
|
||||
#define HEADER_StringUtils
|
||||
#ifndef HEADER_XUtils
|
||||
#define HEADER_XUtils
|
||||
/*
|
||||
htop - StringUtils.h
|
||||
(C) 2004-2011 Hisham H. Muhammad
|
2
htop.c
2
htop.c
|
@ -16,9 +16,9 @@ in the source distribution for its full text.
|
|||
#include "ProcessList.h"
|
||||
#include "ScreenManager.h"
|
||||
#include "Settings.h"
|
||||
#include "StringUtils.h"
|
||||
#include "UsersTable.h"
|
||||
#include "Platform.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#include <getopt.h>
|
||||
#include <locale.h>
|
||||
|
|
|
@ -7,11 +7,10 @@ in the source distribution for its full text.
|
|||
Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat.com).
|
||||
*/
|
||||
|
||||
#include "config.h" // IWYU pragma: keep
|
||||
|
||||
#include "Battery.h"
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
@ -20,7 +19,9 @@ Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat
|
|||
#include <fcntl.h>
|
||||
#include <time.h>
|
||||
#include <math.h>
|
||||
#include "StringUtils.h"
|
||||
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
#define SYS_POWERSUPPLY_DIR "/sys/class/power_supply"
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ in the source distribution for its full text.
|
|||
|
||||
#include "IOPriorityPanel.h"
|
||||
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
Panel* IOPriorityPanel_new(IOPriority currPrio) {
|
||||
|
|
|
@ -11,7 +11,7 @@ in the source distribution for its full text.
|
|||
#include "LinuxProcess.h"
|
||||
#include "CRT.h"
|
||||
#include "Platform.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
@ -20,6 +20,7 @@ in the source distribution for its full text.
|
|||
#include <time.h>
|
||||
#include <math.h>
|
||||
|
||||
|
||||
/* semi-global */
|
||||
long long btime;
|
||||
|
||||
|
|
|
@ -8,7 +8,8 @@ in the source distribution for its full text.
|
|||
#include "LinuxProcessList.h"
|
||||
#include "LinuxProcess.h"
|
||||
#include "CRT.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/utsname.h>
|
||||
|
|
|
@ -30,7 +30,7 @@ in the source distribution for its full text.
|
|||
#include "zfs/ZfsCompressedArcMeter.h"
|
||||
#include "LinuxProcess.h"
|
||||
#include "SELinuxMeter.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <assert.h>
|
||||
|
|
|
@ -12,7 +12,7 @@ in the source distribution for its full text.
|
|||
|
||||
#include "CRT.h"
|
||||
#include "Platform.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
|
||||
static const int PressureStallMeter_attributes[] = {
|
||||
|
|
|
@ -10,7 +10,7 @@ in the source distribution for its full text.
|
|||
|
||||
#include "CRT.h"
|
||||
#include "Platform.h"
|
||||
#include "StringUtils.h"
|
||||
#include "XUtils.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
Loading…
Reference in New Issue