- 30 Aug, 2016 1 commit
-
-
Explorer09 authored
Specifically, Platform_signals[] and Platform_numberOfSignals. Both are not supposed to be mutable. Marking them 'const' puts them into rodata sections in binary. And for Platform_numberOfSignals, this aids optimization (aids only Link Time Optimization for now). :) Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
-
- 24 Aug, 2016 2 commits
- 23 Aug, 2016 1 commit
-
-
Hisham authored
-
- 11 Aug, 2016 2 commits
-
-
Hisham Muhammad authored
Optimize Strings_startWith()
-
Explorer09 authored
Use strncmp() combined with a strlen() will give better performance than a strstr in worst case. Especially when the match prefix is a constant and not a variable. While we are at it, replace the match() function in linux/Battery.c, which uses a naive algorithm, with a macro that does better job by utilizing Strings_startWith(). $ gcc --version | head -n 1 gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 $ uname -m x86_64 $ size htop.old htop.new text data bss dec hex filename 137929 15112 3776 156817 26491 htop.old 137784 15104 3776 156664 263f8 htop.new Signed-off-by: Kang-Che Sung <explorer09 @ gmail.com>
-
- 09 Aug, 2016 1 commit
-
-
Hisham Muhammad authored
Change scrolling behavior to make it more similar to other applications.
-
- 06 Aug, 2016 1 commit
-
-
Explorer09 authored
Commit "Make PgDown behavior more usual." 759caf0f silently changes the PageDown scrolling behavior that, instead of scrolling one window down until the end of the window touches the end of the list, the window simply repositions itself in a way that the selected item always become the last item in the new window. The commit reverts the behavior, and also fixes sanity conditionals so that the scrollV variable will _never_ become negative or out-of- bound. Fixes issue #532. Also keep the problem #480 addressed. Signed-off-by: Kang-Che Sung <explorer09 @ gmail.com>
-
- 28 Jul, 2016 2 commits
-
-
https://github.com/hishamhm/htopHisham authored
-
Hisham authored
-
- 23 Jul, 2016 1 commit
-
-
Hisham Muhammad authored
Let BarMeterMode_characters[] be const array.
-
- 22 Jul, 2016 1 commit
-
-
Explorer09 authored
-
- 21 Jul, 2016 2 commits
- 12 Jul, 2016 1 commit
-
-
Hisham Muhammad authored
Allow to override ncurses*-config path
-
- 11 Jul, 2016 1 commit
-
-
Ricardo Martincoski authored
This will be used when cross-compiling with ncurses*-config generated for the target, using constructs like HTOP_NCURSES_CONFIG_SCRIPT=/path/to/ncurses5-config Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
-
- 23 Jun, 2016 1 commit
-
-
Hisham authored
Closes #520.
-
- 20 Jun, 2016 1 commit
-
-
Hisham authored
-
- 19 Jun, 2016 3 commits
-
-
Hisham Muhammad authored
* Dynamically adjust the size of line reads. * Remove some more uses of fgets with arbitrary sizes. * Fix reading of lines and width of n column. Fixes #514.
-
Hisham authored
-
Hisham authored
-
- 18 Jun, 2016 1 commit
-
-
Hisham authored
-
- 17 Jun, 2016 2 commits
-
-
Hisham Muhammad authored
Document Alt+{h,j,k,l} and Ctrl+{A,E} into man page
-
Explorer09 authored
Rewrite the scrolling part in the man page so that each key become clearer on what it does. Also officially document the Alt+{h,j,k,l} key alternatives and Ctrl+A, Ctrl+E, '^', '$' keys (see issue #508).
-
- 15 Jun, 2016 3 commits
-
-
https://github.com/hishamhm/htopHisham authored
-
Hisham authored
(Also, '^' and '$') Closes #508.
-
Hisham authored
-
- 04 Jun, 2016 1 commit
-
-
Hisham Muhammad authored
Fix xStrdup debug build failure & allow Clang to use ((nonnull))
-
- 03 Jun, 2016 1 commit
-
-
Explorer09 authored
-
- 02 Jun, 2016 3 commits
-
-
Hisham Muhammad authored
Fixes upon xStrdup(NULL) problem
-
Explorer09 authored
__attribute__((nonnull)) will help catching "calling with NULL" mistake on compile time. I also convert xStrdup into a macro, that will do assert() inline when the code is *not* built with -DNDEBUG . For release builds (with -DNDEBUG), preprocessor trick will ensure that generated code remains the same.
-
Explorer09 authored
This effectively reverts "Stricter strdup." 4674b4a7 If str is NULL upon the calling of strdup(), it should crash with SIGSEGV. Just let it crash. Adding the "if (!str) fail();" code serves nothing but bloat.
-
- 30 May, 2016 5 commits
- 27 May, 2016 2 commits
-
-
Hisham Muhammad authored
Remove redundant is-null checks on free(Meter.drawData)
-
Explorer09 authored
-
- 26 May, 2016 1 commit
-
-
Hisham authored
Closes #483.
-