glibc/argp
Bruno Haible 1e3d9c1e4d argp: Avoid undefined behaviour when invoking qsort().
This fixes a Gnulib test-argp-2.sh test failure on macOS and FreeBSD.

Reported by Jeffrey Walton <noloader@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.

* argp/argp-help.c (group_cmp): Remove third argument.
(hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
upon hol_cluster_cmp.
(hol_cluster_cmp): Use hol_cousin_cluster_cmp.
(hol_entry_cmp): Rewritten to implement a total order.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2021-02-04 16:44:29 -03:00
..
bits
argp-ba.c
argp-eexst.c
argp-fmtstream.c
argp-fmtstream.h
argp-fs-xinl.c
argp-help.c argp: Avoid undefined behaviour when invoking qsort(). 2021-02-04 16:44:29 -03:00
argp-namefrob.h
argp-parse.c
argp-pv.c
argp-pvh.c
argp-test.c
argp-xinl.c
argp.h
bug-argp1.c
bug-argp2.c
Makefile
tst-argp1.c
tst-argp2.c
tst-ldbl-argp.c
Versions