pkgconf/libpkgconf
Doug Freed 08db74c474 pkg: make pkgconf_compare_version consistent
The code taken from rpmvercmp in pkg-config returns -1 if a is less than
b, 0 if a is equal to b, and 1 if a is greater than b. This matches the
expectations of the comparison operators that use this function.
However, the tilde handling, the NULL handling, and the docstring all do
the opposite.

This fixes the tilde handling, the NULL handling, and the docstring to
match the behavior of the rpmvercmp code and the expectations of the
comparison operators.
2023-01-20 22:21:31 +00:00
..
argvsplit.c pkgconf: Handle spaces correctly when expanding variables 2023-01-20 22:18:26 +00:00
audit.c libpkgconf: document audit module 2016-12-10 19:28:34 -06:00
bsdstubs.c bsdstubs: include errno.h 2022-08-06 22:30:25 -07:00
bsdstubs.h bsdstubs: add pkgconf_reallocarray 2022-06-26 04:37:18 +00:00
cache.c cache: clear the cache with pkgconf_cache_remove 2022-08-04 15:52:10 -07:00
client.c cache: free the cache table when it is empty and set to NULL 2022-08-04 15:52:10 -07:00
config.h.meson meson: check for reallocarray 2022-06-26 04:33:47 +00:00
dependency.c dependency: zero list after freeing 2022-08-04 15:52:10 -07:00
fileio.c libpkgconf: fileio: pkgconf_fgetline(): handle quoted=true when a comment introduction is encountered 2021-03-18 05:45:41 -06:00
fragment.c fragment: avoid trying to merge fragments where data == NULL 2022-08-16 18:46:43 +00:00
iter.h libpkgconf: Add a helper to zero `pkgconf_list_t`s 2022-06-26 03:12:34 +00:00
libpkgconf-api.h docs: mention Meson instead of CMake for Win build 2021-12-11 14:49:19 +01:00
libpkgconf.h libpkgconf: increase API level to 10903 2022-08-16 19:49:42 +00:00
meson.build meson: install headers into pkgconf/libpkgconf instead of just libpkgconf 2020-11-28 19:42:00 -07:00
parser.c libpkgconf: parser: fix out of boundary access 2020-05-24 14:10:18 -06:00
path.c libpkgconf: zero path lists after freeing 2022-06-26 03:12:34 +00:00
personality.c personality: use an unsigned to track initializations 2022-02-14 21:22:05 -08:00
pkg.c pkg: make pkgconf_compare_version consistent 2023-01-20 22:21:31 +00:00
queue.c queue: add function to free a compiled solution 2022-08-16 19:27:35 +00:00
stdinc.h stdinc: include strings.h on POSIX 2022-02-21 04:42:26 -06:00
tuple.c tuple: test for, and stop string processing, on truncation 2023-01-20 22:07:03 +00:00
win-dirent.h Update dirent.h to latest 2022-01-08 10:55:28 +05:00