diff options
author | morganamilo <morganamilo@archlinux.org> | 2020-01-26 08:01:42 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-01-28 01:46:27 +0100 |
commit | d0c487d4dcc6fec6f4bd8e1cefa1de9ffbe0e460 (patch) | |
tree | a93e22ff2ae481767df86a651352c424f57cc850 /lib/libalpm/version.c | |
parent | 0a25548cd0910f66dea2dfab21f75a6d15366d64 (diff) | |
download | pacman-d0c487d4dcc6fec6f4bd8e1cefa1de9ffbe0e460.tar.gz pacman-d0c487d4dcc6fec6f4bd8e1cefa1de9ffbe0e460.tar.xz |
Docs docs docs
libalpm: move docs from .c files into alpm.h And fix/expand some
along the way.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/version.c')
-rw-r--r-- | lib/libalpm/version.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/libalpm/version.c b/lib/libalpm/version.c index 5ae3b341..ae220ff6 100644 --- a/lib/libalpm/version.c +++ b/lib/libalpm/version.c @@ -216,20 +216,6 @@ cleanup: return ret; } -/** Compare two version strings and determine which one is 'newer'. - * Returns a value comparable to the way strcmp works. Returns 1 - * if a is newer than b, 0 if a and b are the same version, or -1 - * if b is newer than a. - * - * Different epoch values for version strings will override any further - * comparison. If no epoch is provided, 0 is assumed. - * - * Keep in mind that the pkgrel is only compared if it is available - * on both versions handed to this function. For example, comparing - * 1.5-1 and 1.5 will yield 0; comparing 1.5-1 and 1.5-2 will yield - * -1 as expected. This is mainly for supporting versioned dependencies - * that do not include the pkgrel. - */ int SYMEXPORT alpm_pkg_vercmp(const char *a, const char *b) { char *full1, *full2; |