Use sort_template.h for qsort() and qsort_arg().

Thomas Munro <tmunro@postgresql.org>

Commit: f374f4d66425060158d3c743dc6fb16cc0a2756a
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2021-03-03T04:02:32Z
Releases: 14.0
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

Files

PathChange+/−
src/port/qsort_arg.c modified +8 −220
src/port/qsort.c modified +7 −220

Discussion