Hugo Musso Gualandi
b6828d7b86
Remove some unused #includes
...
As suggested by cppclean.
6 years ago
Hugo Musso Gualandi
a2ef400e43
Merge identical ifdefs in Affinity.h
6 years ago
Hugo Musso Gualandi
5ad3c11eaa
Alignment tweak
6 years ago
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.
6 years ago
Nathan Scott
cd55cfd6d2
Merge branch 'BenBE-avoid-shadowing'
6 years ago
Nathan Scott
35c3a95ff9
Merge branch 'avoid-shadowing' of https://github.com/BenBE/htop into BenBE-avoid-shadowing
6 years ago
Nathan Scott
06ba81beec
Merge branch 'rgouicem-master'
6 years ago
Nathan Scott
4d6e4ef53c
Merge branch 'master' of https://github.com/rgouicem/htop into rgouicem-master
6 years ago
Nathan Scott
4597332959
Switch variable/field naming from WhiteList to MatchList
6 years ago
Nathan Scott
c5808c56db
Consolidate repeated macro definitions into one header
...
The MIN, MAX, CLAMP, MINIMUM, and MAXIMUM macros appear
throughout the codebase with many re-definitions. Make
a single copy of each in a common header file, and use
the BSD variants of MINIMUM/MAXIMUM due to conflicts in
the system <sys/param.h> headers.
6 years ago
Nathan Scott
8ec5d4a3a0
Further, minor cleanups to headers post-MakeHeaders
...
Remove leftover empty ifdef/endif pairs, whitespace.
The generated htop.h file was also unused - removed.
6 years ago
Nathan Scott
eede79b29a
Merge branch 'noheadergen' of https://github.com/zevweiss/htop into zevweiss-noheadergen
6 years ago
Benny Baumann
13b1e96b12
Avoid shadowing of variables
6 years ago
Nathan Scott
85ff6960ed
Merge branch 't6-patch-freebsd-ci'
6 years ago
Nathan Scott
a1f2532630
Merge branch 'patch-freebsd-ci' of https://github.com/t6/htop-1 into t6-patch-freebsd-ci
6 years ago
Dominik Hassler
7805575114
fix for double symbol link error on solaris
6 years ago
Dominik Hassler
f884beda97
htop should report the nice level properly
6 years ago
Nathan Scott
0750ff7e76
Fix regression in -u optional-argument handling
...
Resolves https://github.com/htop-dev/htop/issues/91
6 years ago
Zev Weiss
7758ffcdea
Remove duplicate jail_errmsg declaration.
...
Fixes: 11ecc65ebb
6 years ago
Zev Weiss
7b7822b896
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>
6 years ago
Zev Weiss
a1a027b9bd
Axe automated header generation.
...
Reasoning:
- implementation was unsound -- broke down when I added a fairly
basic macro definition expanding to a struct initializer in a *.c
file.
- made it way too easy (e.g. via otherwise totally innocuous git
commands) to end up with timestamps such that it always ran
MakeHeader.py but never used its output, leading to overbuild noise
when running what should be a null 'make'.
- but mostly: it's just an awkward way of dealing with C code.
6 years ago
Tobias Kortkamp
35d7e42b88
Add FreeBSD to Travis
...
Signed-off-by: Tobias Kortkamp <t@tobik.me>
6 years ago
Nathan Scott
7734dfe55d
Merge pull request #86 from t6/patch-freebsd-fno-common
...
Unbreak with -fno-common on FreeBSD
6 years ago
Tobias Kortkamp
11ecc65ebb
Unbreak with -fno-common on FreeBSD
...
GCC10 and Clang11 now default to -fno-common.
ld: error: duplicate symbol: jail_errmsg
>>> defined at Platform.c
>>> freebsd/Platform.o:(jail_errmsg)
>>> defined at FreeBSDProcessList.c
>>> freebsd/FreeBSDProcessList.o:(.bss+0x90)
Signed-off-by: Tobias Kortkamp <t@tobik.me>
6 years ago
Nathan Scott
dace850fa6
Bump version, changelog for minor htop-3.0.1 release
6 years ago
Nathan Scott
4f00a95364
Merge pull request #66 from ioquatix/patch-1
...
Fix image logo and titles.
6 years ago
Nathan Scott
0ab508e42b
Merge pull request #57 from matthiasbeyer/patch-1
...
Do not link INSTALL file, because link target does not exist
6 years ago
Nathan Scott
f79591ef1b
Merge branch 'eworm-de-unicode-runtime'
6 years ago
Samuel Williams
746a5f279a
Fix image logo and titles.
6 years ago
Matthias Beyer
8ee7d58cb0
Do not link INSTALL file, because link target does not exist
6 years ago
Christian Hesse
db5adbeae0
add option (-U, --no-unicode) to disable unicode at runtime
6 years ago
Nathan Scott
f5b3e8d2a3
Merge branch 'cgzones-oom2'
6 years ago
Nathan Scott
809e4db672
Merge branch 'oom2' of https://github.com/cgzones/htop into cgzones-oom2
6 years ago
Bert Wesarg
e1e60f38dc
CRT: note about possible use of replacement for `+` glyph in tree
6 years ago
Bert Wesarg
19359cec5a
affinity panel: use the tree collapsing as in the process list
...
With one exception, the root node does also have a `-`/`+` as a prefix.
6 years ago
Bert Wesarg
b0f1336f79
affinity panel: show CPUs in the topology tree as `CPU x`
...
As it is in the non-topology list.
6 years ago
Bert Wesarg
f861a2c616
Revert "Use UTF-8 for check buttons and tree open/closed"
...
This reverts commit 5d5913d355b3a9f03da589b3542b8f55467b4ed6.
6 years ago
Redha Gouicem
d0e8ff9319
fix unit (GHz -> MHz)
6 years ago
Redha Gouicem
0f5d2cd1e4
fixed compilation error
6 years ago
Redha Gouicem
293e3a2931
remove unused variable
6 years ago
Christian Göttsche
e7f6d1ce5f
Reduce oom cast from long to int
...
Oom values should never be greater then INT_MAX, they should be in the
range 0 - 1000.
Improves: d9a5dd4b91
6 years ago
Nathan Scott
47a7d0bd74
Merge branch 'configure' of https://github.com/cgzones/htop into cgzones-configure
6 years ago
Nathan Scott
b321177b08
Merge branch 'master' of github.com:htop-dev/htop
6 years ago
Nathan Scott
800d8c735d
Merge branch 'cov_fixes' of https://github.com/cgzones/htop into cgzones-cov_fixes
6 years ago
Daniel Lange
f14173038e
Merge branch 'oom' of https://github.com/cgzones/htop
...
Closes : #18 , #22
6 years ago
Nathan Scott
fdf8a28e60
Merge branch 'Ckath-vim_mode_setting'
6 years ago
Nathan Scott
244630f67f
Merge branch 'vim_mode_setting' of https://github.com/Ckath/htop into Ckath-vim_mode_setting
6 years ago
Nathan Scott
0a835e13bf
Simplify the --version output, old dates are confusing people
...
Drop the copyright notice from the version output as a number
of people seem to be confused by what this means, and we can
do without all the (well intentioned) bug reports.
6 years ago
Nathan Scott
4bd0859b80
Add a badge/link to the released source tarballs
6 years ago
ckath
338bd829b0
add toggle for vim mode in options
6 years ago