mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 20:44:35 +03:00
Remove superfluous 'extern's from function declarations.
Applied via: $ find * -name '*.h' -exec sed -i -r 's/^extern (.+\()/\1/;' {} + Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com>
This commit is contained in:
@ -27,6 +27,6 @@ Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat
|
||||
// READ FROM /sys
|
||||
// ----------------------------------------
|
||||
|
||||
extern void Battery_getData(double* level, ACPresence* isOnAC);
|
||||
void Battery_getData(double* level, ACPresence* isOnAC);
|
||||
|
||||
#endif
|
||||
|
@ -11,8 +11,8 @@ in the source distribution for its full text.
|
||||
#include "IOPriority.h"
|
||||
#include "ListItem.h"
|
||||
|
||||
extern Panel* IOPriorityPanel_new(IOPriority currPrio);
|
||||
Panel* IOPriorityPanel_new(IOPriority currPrio);
|
||||
|
||||
extern IOPriority IOPriorityPanel_getIOPriority(Panel* this);
|
||||
IOPriority IOPriorityPanel_getIOPriority(Panel* this);
|
||||
|
||||
#endif
|
||||
|
@ -10,6 +10,6 @@ in the source distribution for its full text.
|
||||
#ifdef HAVE_EXECINFO_H
|
||||
#endif
|
||||
|
||||
extern void CRT_handleSIGSEGV(int sgn);
|
||||
void CRT_handleSIGSEGV(int sgn);
|
||||
|
||||
#endif
|
||||
|
@ -159,9 +159,9 @@ extern ProcessPidColumn Process_pidColumns[];
|
||||
|
||||
extern ProcessClass LinuxProcess_class;
|
||||
|
||||
extern LinuxProcess* LinuxProcess_new(Settings* settings);
|
||||
LinuxProcess* LinuxProcess_new(Settings* settings);
|
||||
|
||||
extern void Process_delete(Object* cast);
|
||||
void Process_delete(Object* cast);
|
||||
|
||||
/*
|
||||
[1] Note that before kernel 2.6.26 a process that has not asked for
|
||||
@ -173,18 +173,18 @@ extern io_priority;
|
||||
*/
|
||||
#define LinuxProcess_effectiveIOPriority(p_) (IOPriority_class(p_->ioPriority) == IOPRIO_CLASS_NONE ? IOPriority_tuple(IOPRIO_CLASS_BE, (p_->super.nice + 20) / 5) : p_->ioPriority)
|
||||
|
||||
extern IOPriority LinuxProcess_updateIOPriority(LinuxProcess* this);
|
||||
IOPriority LinuxProcess_updateIOPriority(LinuxProcess* this);
|
||||
|
||||
extern bool LinuxProcess_setIOPriority(LinuxProcess* this, Arg ioprio);
|
||||
bool LinuxProcess_setIOPriority(LinuxProcess* this, Arg ioprio);
|
||||
|
||||
#ifdef HAVE_DELAYACCT
|
||||
extern void LinuxProcess_printDelay(float delay_percent, char* buffer, int n);
|
||||
void LinuxProcess_printDelay(float delay_percent, char* buffer, int n);
|
||||
#endif
|
||||
|
||||
extern void LinuxProcess_writeField(Process* this, RichString* str, ProcessField field);
|
||||
void LinuxProcess_writeField(Process* this, RichString* str, ProcessField field);
|
||||
|
||||
extern long LinuxProcess_compare(const void* v1, const void* v2);
|
||||
long LinuxProcess_compare(const void* v1, const void* v2);
|
||||
|
||||
extern bool Process_isThread(Process* this);
|
||||
bool Process_isThread(Process* this);
|
||||
|
||||
#endif
|
||||
|
@ -109,9 +109,9 @@ typedef struct LinuxProcessList_ {
|
||||
|
||||
#endif
|
||||
|
||||
extern ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId);
|
||||
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId);
|
||||
|
||||
extern void ProcessList_delete(ProcessList* pl);
|
||||
void ProcessList_delete(ProcessList* pl);
|
||||
|
||||
|
||||
#ifdef HAVE_TASKSTATS
|
||||
@ -134,6 +134,6 @@ extern void ProcessList_delete(ProcessList* pl);
|
||||
|
||||
#endif
|
||||
|
||||
extern void ProcessList_goThroughEntries(ProcessList* super);
|
||||
void ProcessList_goThroughEntries(ProcessList* super);
|
||||
|
||||
#endif
|
||||
|
@ -25,27 +25,27 @@ extern const SignalItem Platform_signals[];
|
||||
|
||||
extern const unsigned int Platform_numberOfSignals;
|
||||
|
||||
extern void Platform_setBindings(Htop_Action* keys);
|
||||
void Platform_setBindings(Htop_Action* keys);
|
||||
|
||||
extern MeterClass* Platform_meterTypes[];
|
||||
|
||||
extern int Platform_getUptime();
|
||||
int Platform_getUptime();
|
||||
|
||||
extern void Platform_getLoadAverage(double* one, double* five, double* fifteen);
|
||||
void Platform_getLoadAverage(double* one, double* five, double* fifteen);
|
||||
|
||||
extern int Platform_getMaxPid();
|
||||
int Platform_getMaxPid();
|
||||
|
||||
extern double Platform_setCPUValues(Meter* this, int cpu);
|
||||
double Platform_setCPUValues(Meter* this, int cpu);
|
||||
|
||||
extern void Platform_setMemoryValues(Meter* this);
|
||||
void Platform_setMemoryValues(Meter* this);
|
||||
|
||||
extern void Platform_setSwapValues(Meter* this);
|
||||
void Platform_setSwapValues(Meter* this);
|
||||
|
||||
extern void Platform_setZfsArcValues(Meter* this);
|
||||
void Platform_setZfsArcValues(Meter* this);
|
||||
|
||||
extern void Platform_setZfsCompressedArcValues(Meter* this);
|
||||
extern char* Platform_getProcessEnv(pid_t pid);
|
||||
void Platform_setZfsCompressedArcValues(Meter* this);
|
||||
char* Platform_getProcessEnv(pid_t pid);
|
||||
|
||||
extern void Platform_getPressureStall(const char *file, bool some, double* ten, double* sixty, double* threehundred);
|
||||
void Platform_getPressureStall(const char *file, bool some, double* ten, double* sixty, double* threehundred);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user