summaryrefslogtreecommitdiffstats
path: root/AffinityPanel.c
Commit message (Collapse)AuthorAgeFilesLines
* Rework drawing of FunctionBarChristian Göttsche2020-12-201-1/+0
| | | | | | | | | | | Draw the FunctionBar within Panel_draw instead of manually throughout the code. Add an optional PanelClass function drawFunctionBar, to allow specific panels to override the default FunctionBar_draw call. Rework the code on color change, to really change all colors (selection markers and panel headers). Closes: #402
* Use upper case numeric literalsChristian Göttsche2020-12-201-3/+3
| | | | See https://rules.sonarsource.com/c/RSPEC-818
* Split RichString_(append|appendn|write) into wide and asciiChristian Göttsche2020-12-081-13/+13
| | | | | | | | RichString_writeFrom takes a top spot during performance analysis due to the calls to mbstowcs() and iswprint(). Most of the time we know in advance that we are only going to print regular ASCII characters.
* Update even more snprintfsChristian Göttsche2020-11-281-1/+1
| | | | Use size of actual buffers instead of magic numbers
* Embracing branchesBenny Baumann2020-11-021-12/+21
|
* Spacing around operatorsBenny Baumann2020-11-021-7/+7
|
* Whitespace and indentation issuesBenny Baumann2020-11-021-2/+2
|
* Make all required includes explicitBenny Baumann2020-10-181-1/+10
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann2020-10-161-1/+1
|
* Move xAsprintf, xSnprintf and xStrdup to StringUtils.hBenny Baumann2020-10-161-3/+6
|
* Mark remaining classes constChristian Göttsche2020-10-131-1/+1
|
* Add key to pause process list updatesChristian Göttsche2020-10-121-1/+1
|
* Mark Object pointer to _display function constChristian Göttsche2020-10-101-2/+2
|
* Mark Object instances constChristian Göttsche2020-10-071-1/+1
|
* Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
|
* Add clang analyzer CI jobChristian Göttsche2020-10-031-3/+4
|
* Do not drop qualifier in castChristian Göttsche2020-09-241-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ListItem.c:73:33: warning: cast from 'const void *' to 'struct ListItem_ *' drops const qualifier [-Wcast-qual] ListItem* obj1 = (ListItem*) cast1; ^ ListItem.c:74:33: warning: cast from 'const void *' to 'struct ListItem_ *' drops const qualifier [-Wcast-qual] ListItem* obj2 = (ListItem*) cast2; ^ Process.c:434:28: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Process* p1 = (Process*)v1; ^ Process.c:435:28: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Process* p2 = (Process*)v2; ^ Process.c:441:36: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Settings *settings = ((Process*)v1)->settings; ^ Process.c:443:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p1 = (Process*)v1; ^ Process.c:444:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p2 = (Process*)v2; ^ Process.c:446:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p2 = (Process*)v1; ^ Process.c:447:22: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] p1 = (Process*)v2; ^ AffinityPanel.c:37:16: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] free((void*)this->text); ^ AffinityPanel.c:39:19: warning: cast from 'const char *' to 'void *' drops const qualifier [-Wcast-qual] free((void*)this->indent); ^ linux/LinuxProcess.c:294:36: warning: cast from 'const void *' to 'struct Process_ *' drops const qualifier [-Wcast-qual] Settings *settings = ((Process*)v1)->settings; ^ linux/LinuxProcess.c:296:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p1 = (LinuxProcess*)v1; ^ linux/LinuxProcess.c:297:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p2 = (LinuxProcess*)v2; ^ linux/LinuxProcess.c:299:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p2 = (LinuxProcess*)v1; ^ linux/LinuxProcess.c:300:27: warning: cast from 'const void *' to 'struct LinuxProcess_ *' drops const qualifier [-Wcast-qual] p1 = (LinuxProcess*)v2; ^ linux/LinuxProcessList.c:62:32: warning: cast from 'const void *' to 'struct TtyDriver_ *' drops const qualifier [-Wcast-qual] TtyDriver* a = (TtyDriver*) va; ^ linux/LinuxProcessList.c:63:32: warning: cast from 'const void *' to 'struct TtyDriver_ *' drops const qualifier [-Wcast-qual] TtyDriver* b = (TtyDriver*) vb; ^ linux/Battery.c:130:21: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] free((char *) isOnline); ^ linux/Battery.c:197:26: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/type", entryName); ^ linux/Battery.c:209:29: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/uevent", entryName); ^ linux/Battery.c:262:29: warning: cast from 'const char *' to 'char *' drops const qualifier [-Wcast-qual] xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/online", entryName); ^
* Drop unnecessary usage of comma operatorChristian Göttsche2020-09-241-2/+4
|
* Avoid arithmetic on booleansChristian Göttsche2020-09-231-3/+2
|
* Merge branch 'avoid-shadowing' of https://github.com/BenBE/htop into ↵Nathan Scott2020-09-091-3/+3
|\ | | | | | | BenBE-avoid-shadowing
| * Avoid shadowing of variablesBenny Baumann2020-09-071-3/+3
| |
* | Axe automated header generation.Zev Weiss2020-09-031-7/+0
|/ | | | | | | | | | | | | | 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.
* affinity panel: use the tree collapsing as in the process listBert Wesarg2020-08-311-12/+12
| | | | With one exception, the root node does also have a `-`/`+` as a prefix.
* affinity panel: show CPUs in the topology tree as `CPU x`Bert Wesarg2020-08-311-2/+2
| | | | As it is in the non-topology list.
* Revert "Use UTF-8 for check buttons and tree open/closed"Bert Wesarg2020-08-311-8/+8
| | | | This reverts commit 5d5913d355b3a9f03da589b3542b8f55467b4ed6.
* fix width of `AffinitPanel`Bert Wesarg2020-08-261-1/+3
| | | | | | The panel size of 15 includes the gap to the next panel, thus use 14 as the minimum size and let the caller of `AffinityPanel_new` handle the gap.
* Merge branch 'ci-hwloc-job' of https://github.com/bertwesarg/htop into ↵Nathan Scott2020-08-261-26/+373
| | | | bertwesarg-ci-hwloc-job
* Security review: check results of snprintf.Hisham Muhammad2017-07-271-1/+1
| | | | | Calls marked with xSnprintf shouldn't fail. Abort program cleanly if any of them does.
* Check for failure in allocations.Hisham2016-02-021-1/+1
|
* Handle KEY_RECLICK events generated by ScreenManagerHisham Muhammad2015-08-271-0/+2
|
* Avoid future confusions with how default values are set.Hisham Muhammad2015-08-121-1/+1
|
* Simplify constructors.Hisham Muhammad2015-03-231-5/+1
|
* Move FunctionBar inside PanelHisham Muhammad2015-03-231-1/+5
|
* Sorry about the mega-patch.Hisham Muhammad2015-01-211-3/+3
| | | | | This is a work-in-progress, code is currently broken. (Some actions, and notably, the header, are missing.)
* Changes in object model: separate class objects to store vtable. Also, nicer ↵Hisham Muhammad2012-12-051-2/+10
| | | | UTF-8 display of big numbers.
* Add IO priority support ('i' key)Hisham Muhammad2012-10-041-1/+1
|
* Remove old memory debugging routines. We have Valgrind nowadays.Hisham Muhammad2011-12-261-1/+0
|
* major header cleanupHisham Muhammad2011-12-261-3/+16
|
* Use strdup explicitlyHisham Muhammad2011-12-251-1/+1
|
* simplify codeHisham Muhammad2011-11-051-6/+3
|
* Convert affinity control from the deprecated PLPA to HWLOCHisham Muhammad2011-09-241-8/+15
|
* Fix off-by-one error in PROCESSOR displayHisham Muhammad2011-09-081-1/+1
|
* * Option for counting CPUs from zeroHisham Muhammad2011-03-221-3/+4
| | | | | | (thanks to Sean Noonan) * Meters update in every screen (no longer halting while on Setup, etc.)
* changes for htop 0.8.2Hisham Muhammad2009-06-021-1/+1
|
* Let mouseclicks tick/untick checkboxesHisham Muhammad2008-05-071-0/+1
|
* Clean up headers by using 'static' whenever possible.Hisham Muhammad2008-03-091-17/+17
| | | | | Reduces resulting code size.
* Adding affinity panelHisham Muhammad2007-12-171-0/+48

© 2014-2024 Faster IT GmbH | imprint | privacy policy