htop - an interactive process viewer
Go to file
Hugo Musso Gualandi 9207401f97 Clean up some code duplication in the header files
PR htop-dev/htop#70 got rid of the infrastructure for generating header
files, but it left behind some code duplication.

Some of cases are things that belong in the header file and don't need
to be repeated in the C file. Other cases are things that belong in the
C file and don't need to be in the header file.

In this commit I tried to fix all of these that I could find. When given
a choice I preferred keeping things out of the header file, unless they
were being used by someone else.
2020-09-12 19:20:44 -03:00
.github/workflows Convert hwlock CI run to a full featured one 2020-08-28 13:10:41 +02:00
darwin Switch variable/field naming from WhiteList to MatchList 2020-09-09 19:38:15 +10:00
dragonflybsd Switch variable/field naming from WhiteList to MatchList 2020-09-09 19:38:15 +10:00
freebsd Switch variable/field naming from WhiteList to MatchList 2020-09-09 19:38:15 +10:00
linux Switch variable/field naming from WhiteList to MatchList 2020-09-09 19:38:15 +10:00
openbsd Switch variable/field naming from WhiteList to MatchList 2020-09-09 19:38:15 +10:00
solaris Switch variable/field naming from WhiteList to MatchList 2020-09-09 19:38:15 +10:00
unsupported Switch variable/field naming from WhiteList to MatchList 2020-09-09 19:38:15 +10:00
zfs Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
.editorconfig Add `trim_trailing_whitespace` to editorconfig 2019-10-31 11:39:57 -05:00
.gitignore Axe automated header generation. 2020-09-03 11:58:58 -05:00
.travis.yml Add FreeBSD to Travis 2020-09-03 09:00:17 +02:00
AUTHORS Initial import. 2006-03-04 18:16:49 +00:00
Action.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
Action.h Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
Affinity.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
Affinity.h Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
AffinityPanel.c Merge branch 'avoid-shadowing' of https://github.com/BenBE/htop into BenBE-avoid-shadowing 2020-09-09 19:40:50 +10:00
AffinityPanel.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
AvailableColumnsPanel.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
AvailableColumnsPanel.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
AvailableMetersPanel.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
AvailableMetersPanel.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
BatteryMeter.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
BatteryMeter.h Axe automated header generation. 2020-09-03 11:58:58 -05:00
CONTRIBUTING.md Updates to project URLs in docs and embedded in source code 2020-08-22 15:47:11 +10:00
COPYING Remove trailing whitespaces 2020-08-21 10:37:33 +02:00
CPUMeter.c Merge branch 'master' of https://github.com/rgouicem/htop into rgouicem-master 2020-09-09 19:38:53 +10:00
CPUMeter.h Consolidate repeated macro definitions into one header 2020-09-09 16:56:04 +10:00
CRT.c Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
CRT.h Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
CategoriesPanel.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
CategoriesPanel.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
ChangeLog Bump version, changelog for minor htop-3.0.1 release 2020-09-03 13:23:43 +10:00
CheckItem.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
CheckItem.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
ClockMeter.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
ClockMeter.h Axe automated header generation. 2020-09-03 11:58:58 -05:00
ColorsPanel.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
ColorsPanel.h Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
ColumnsPanel.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
ColumnsPanel.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
DisplayOptionsPanel.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
DisplayOptionsPanel.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
EnvScreen.c Consolidate repeated macro definitions into one header 2020-09-09 16:56:04 +10:00
EnvScreen.h Remove superfluous 'extern's from function declarations. 2020-09-03 11:59:26 -05:00
FunctionBar.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
FunctionBar.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
Hashtable.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
Hashtable.h Remove superfluous 'extern's from function declarations. 2020-09-03 11:59:26 -05:00
Header.c Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
Header.h Consolidate repeated macro definitions into one header 2020-09-09 16:56:04 +10:00
HostnameMeter.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
HostnameMeter.h Axe automated header generation. 2020-09-03 11:58:58 -05:00
IncSet.c Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
IncSet.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
InfoScreen.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
InfoScreen.h Remove superfluous 'extern's from function declarations. 2020-09-03 11:59:26 -05:00
ListItem.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
ListItem.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
LoadAverageMeter.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
LoadAverageMeter.h Axe automated header generation. 2020-09-03 11:58:58 -05:00
Macros.h Consolidate repeated macro definitions into one header 2020-09-09 16:56:04 +10:00
MainPanel.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
MainPanel.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
Makefile.am Consolidate repeated macro definitions into one header 2020-09-09 16:56:04 +10:00
MemoryMeter.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
MemoryMeter.h Axe automated header generation. 2020-09-03 11:58:58 -05:00
Meter.c Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
Meter.h Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
MetersPanel.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
MetersPanel.h Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
NEWS Remove trailing whitespaces 2020-08-21 10:37:33 +02:00
Object.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
Object.h Consolidate repeated macro definitions into one header 2020-09-09 16:56:04 +10:00
OpenFilesScreen.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
OpenFilesScreen.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
Panel.c Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
Panel.h Consolidate repeated macro definitions into one header 2020-09-09 16:56:04 +10:00
Process.c Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
Process.h Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
ProcessList.c Switch variable/field naming from WhiteList to MatchList 2020-09-09 19:38:15 +10:00
ProcessList.h Switch variable/field naming from WhiteList to MatchList 2020-09-09 19:38:15 +10:00
README Merge pull request #66 from ioquatix/patch-1 2020-09-03 08:35:19 +10:00
README.md Add README.md for Github 2014-02-03 09:11:39 -02:00
RichString.c Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
RichString.h Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
ScreenManager.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
ScreenManager.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
Settings.c Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
Settings.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
SignalsPanel.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
SignalsPanel.h Further, minor cleanups to headers post-MakeHeaders 2020-09-08 17:33:50 +10:00
StringUtils.c Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
StringUtils.h Remove superfluous 'extern's from function declarations. 2020-09-03 11:59:26 -05:00
SwapMeter.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
SwapMeter.h Axe automated header generation. 2020-09-03 11:58:58 -05:00
TESTPLAN Remove trailing whitespaces 2020-08-21 10:37:33 +02:00
TasksMeter.c Consolidate repeated macro definitions into one header 2020-09-09 16:56:04 +10:00
TasksMeter.h Axe automated header generation. 2020-09-03 11:58:58 -05:00
TraceScreen.c Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
TraceScreen.h Remove superfluous 'extern's from function declarations. 2020-09-03 11:59:26 -05:00
UptimeMeter.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
UptimeMeter.h Axe automated header generation. 2020-09-03 11:58:58 -05:00
UsersTable.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
UsersTable.h Remove superfluous 'extern's from function declarations. 2020-09-03 11:59:26 -05:00
Vector.c Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
Vector.h Clean up some code duplication in the header files 2020-09-12 19:20:44 -03:00
XAlloc.c Axe automated header generation. 2020-09-03 11:58:58 -05:00
XAlloc.h Remove superfluous 'extern's from function declarations. 2020-09-03 11:59:26 -05:00
autogen.sh Simplify autogen.sh 2016-02-14 22:36:40 +01:00
configure.ac Axe automated header generation. 2020-09-03 11:58:58 -05:00
htop.1.in add option (-U, --no-unicode) to disable unicode at runtime 2020-09-01 10:09:00 +02:00
htop.c Switch variable/field naming from WhiteList to MatchList 2020-09-09 19:38:15 +10:00
htop.desktop Add danish translation to htop.desktop 2019-02-19 01:25:52 +01:00
htop.png Updated icon! 2014-04-09 14:47:58 -03:00
test_spec.lua Remove trailing whitespaces 2020-08-21 10:37:33 +02:00

README.md

htop

CI Coverity Scan Build Status Mailing List IRC #htop Github Release Download

Introduction

htop is a cross-platform interactive process viewer. It requires ncurses.

For more information and details on how to contribute to htop visit htop.dev.

Build instructions

This program is distributed as a standard autotools-based package. For detailed instructions see the INSTALL file, which is created after ./autogen.sh is run.

When compiling from a release tarball, run:

./configure && make

For compiling sources downloaded from the Git repository, run:

./autogen.sh && ./configure && make

By default make install will install into /usr/local, for changing the path use ./configure --prefix=/some/path.

See the manual page (man htop) or the on-line help ('F1' or 'h' inside htop) for a list of supported key commands.

License

GNU General Public License, version 2 (GPL-2.0)