summaryrefslogtreecommitdiffstats
path: root/Object.h
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* Object: always include stdbool.hChristian Göttsche2021-03-121-4/+1
| | | | The function Object_isA() returning bool is nowadays unconditional
* Allow meters in text mode to span empty neighbors to the rightChristian Göttsche2021-01-231-4/+0
| | | | Closes: #484
* Object: return int on comparisonChristian Göttsche2021-01-021-1/+1
| | | | | Comparisons do, due to the new introduced shaceship-comparisons, only return -1, 0, 1 or the result of strcmp().
* Object: assert callbacks existsChristian Göttsche2020-11-221-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improves stacktraces. Current stacktrace: ./htop(backtrace+0x5b)[0x45d98b] ./htop(CRT_handleSIGSEGV+0x189)[0x4eb5e9] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x7fbbfb1ea140] New: ./htop(backtrace+0x5b)[0x45d98b] ./htop(CRT_handleSIGSEGV+0x189)[0x4eb7f9] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x7f62b0a65140] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x141)[0x7f62b089ac41] /lib/x86_64-linux-gnu/libc.so.6(abort+0x123)[0x7f62b0884537] /lib/x86_64-linux-gnu/libc.so.6(+0x2540f)[0x7f62b088440f] /lib/x86_64-linux-gnu/libc.so.6(+0x345c2)[0x7f62b08935c2] ./htop(Vector_delete+0x873)[0x54b303] ./htop(Panel_done+0x7b)[0x51abbb] ./htop[0x4ed8ee] ./htop(Vector_delete+0x414)[0x54aea4] ./htop(ScreenManager_delete+0x37)[0x536ea7] ./htop[0x4d9d1a] ./htop[0x4d5516] ./htop[0x5078d7] ./htop(ScreenManager_run+0x69f)[0x5388bf] ./htop(main+0x7c6)[0x4fcf76] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7f62b0885cca] ./htop(_start+0x2a)[0x42688a]
* Remove unnecessary trailing semicolon on macrosBenny Baumann2020-11-021-1/+1
|
* IWYU updateChristian Göttsche2020-10-201-0/+4
| | | | | | | | | | | - Add Settings forward declaration in Process.h - Add assert.h include in XUitls.c - Add conditional stdbool.h include in Object.h - Drop unneeded stddef.h include in Richstring.c - Drop unneeded unistd.h include in Process.h - Drop unneeded string.h include in linux/Platform.c - Use String_eq to avoid string.h include in Action.c - Improve script to run custom iwyu version
* Make all required includes explicitBenny Baumann2020-10-181-3/+3
| | | | Information as seen by IWYU 0.12 + clang 9 on Linux
* Combine XAlloc.[ch] into XUtils.[ch]Benny Baumann2020-10-171-1/+2
|
* Enclose macro argument in parenthesesChristian Göttsche2020-10-131-1/+1
|
* Mark Object pointer to _display function constChristian Göttsche2020-10-101-4/+4
|
* Mark Object classes and Object class fields constChristian Göttsche2020-10-071-5/+5
|
* Merge branch 'update-license-and-copyright-info'Nathan Scott2020-10-061-1/+1
|\
| * Update License consistently to GPLv2 as per COPYING fileDaniel Lange2020-10-051-1/+1
| |
* | Mark argument in Object_isA constChristian Göttsche2020-10-051-1/+1
|/
* Resolve DEBUG compilation issuesChristian Göttsche2020-10-031-2/+2
| | | | | | | Use NDEBUG conditional instead of DEBUG. Do not call static functions in extern inline ones. Vector.c:67:11: error: static function 'Vector_isConsistent' is used in an inline function with external linkage [-Werror,-Wstatic-in-inline]
* Consolidate repeated macro definitions into one headerNathan Scott2020-09-091-0/+1
| | | | | | | | 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.
* Further, minor cleanups to headers post-MakeHeadersNathan Scott2020-09-081-1/+0
| | | | | Remove leftover empty ifdef/endif pairs, whitespace. The generated htop.h file was also unused - removed.
* Remove superfluous 'extern's from function declarations.Zev Weiss2020-09-031-1/+1
| | | | | | | | Applied via: $ find * -name '*.h' -exec sed -i -r 's/^extern (.+\()/\1/;' {} + Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com>
* Axe automated header generation.Zev Weiss2020-09-031-2/+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.
* Merge branch 'hishamhm-pull-960'Nathan Scott2020-08-201-1/+1
|\
| * Clean up existing whitespaceDaniel Flanagan2019-10-311-1/+1
| |
* | Resolve compiler warnings and errors relating to the Arg unionNathan Scott2020-08-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Promote the Arg union to a core data type in Object.c such that it is visible everywhere (many source files need it), and correct declarations of several functions that use it. The Process_sendSignal function is also corrected to have the expected return type (bool, not void) - an error being masked by ignoring this not-quite-harmless warning. I've also added error checking to the kill(2) call here, which was previously overlooked / missing (?).
* | Re-generate all headers with latest scripts/MakeHeader.pyNathan Scott2020-08-181-1/+1
|/ | | | Sync-up missing extern declarations for many functions.
* Check for failure in allocations.Hisham2016-02-021-1/+2
|
* Compare with long, for 64-bit systemsHisham Muhammad2014-04-251-1/+1
|
* Changes in object model: separate class objects to store vtable. Also, nicer ↵Hisham Muhammad2012-12-051-16/+23
| | | | UTF-8 display of big numbers.
* major header cleanupHisham Muhammad2011-12-261-8/+1
|
* Tempus fugit.Hisham Muhammad2011-05-261-1/+1
|
* Tempus fugit.Hisham Muhammad2010-02-251-1/+1
|
* Clean up headers by using 'static' whenever possible.Hisham Muhammad2008-03-091-2/+0
| | | | | Reduces resulting code size.
* Performance improvement hackathon: improve process comparison routines,Hisham Muhammad2006-07-111-6/+17
| | | | | | | | | | disable useless code in release builds such as runtime type-checking on dynamic data structures and process fields that are not being computed, faster(?) method for verifying the process owner (still need to ensure correctness), don't destroy and create process objects for hidden kernel threads over and over. Phew. I shouldn't be doing all this today, but I could not resist.
* Regenerated all headers.Hisham Muhammad2006-06-061-2/+1
|
* Initial import.Hisham Muhammad2006-03-041-0/+44

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