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 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
argp-ba.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
argp-eexst.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
argp-fmtstream.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
argp-fmtstream.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
argp-fs-xinl.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
argp-help.c argp: Avoid undefined behaviour when invoking qsort(). 2021-02-04 16:44:29 -03:00
argp-namefrob.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
argp-parse.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
argp-pv.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
argp-pvh.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
argp-test.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
argp-xinl.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
argp.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
bug-argp1.c
bug-argp2.c
Makefile Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-argp1.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-argp2.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-ldbl-argp.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Versions Update ABI information 2012-01-07 19:23:45 -05:00