Use sort_template.h for qsort() and qsort_arg().
authorThomas Munro <tmunro@postgresql.org>
Wed, 3 Mar 2021 03:57:26 +0000 (16:57 +1300)
committerThomas Munro <tmunro@postgresql.org>
Wed, 3 Mar 2021 04:02:32 +0000 (17:02 +1300)
commitf374f4d66425060158d3c743dc6fb16cc0a2756a
tree6c61a8b8e559a7e89cbe0baa173d5e068bc51a82
parent0a1f1d3cac6baaa3744b89336673caba702f7628
Use sort_template.h for qsort() and qsort_arg().

Reduce duplication by using the new template.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CA%2BhUKGJ2-eaDqAum5bxhpMNhvuJmRDZxB_Tow0n-gse%2BHG0Yig%40mail.gmail.com
src/port/qsort.c
src/port/qsort_arg.c