summaryrefslogtreecommitdiffstats
path: root/src/basic/sort-util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sort-util: add missing parensYu Watanabe2022-03-181-6/+6
| | | | | | | With this, we can call e.g. ``` typesafe_qsort(buf + m, n - m, comp); ```
* sort-util: avoid using glibc's internal __compar_d_fn_t typeLennart Poettering2021-10-111-4/+10
|
* sort-util: use comparison_fn_t instead of __compar_fn_tLennart Poettering2021-10-111-4/+4
| | | | | | | Let's avoid using the internal type of glibc, and rather use the one they officially export. https://www.gnu.org/software/libc/manual/html_node/Comparison-Functions.html
* sort-util: make cmp_int() generic, so that we can reuse it elsewhereLennart Poettering2020-12-171-0/+2
|
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* basic/sort-util: adorn qsort_safe with a prefix underscoreZbigniew Jędrzejewski-Szmek2020-06-031-2/+2
| | | | | It should not be used directly since we have typesafe_qsort(), so let's mark it appropriately.
* util: split out sorting related calls to new sort-util.[ch]Lennart Poettering2019-03-131-0/+70