mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
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
15 lines
325 B
C
15 lines
325 B
C
/*
|
|
* qsort_arg.c: qsort with a passthrough "void *" argument
|
|
*/
|
|
|
|
#include "c.h"
|
|
|
|
#define ST_SORT qsort_arg
|
|
#define ST_ELEMENT_TYPE_VOID
|
|
#define ST_COMPARATOR_TYPE_NAME qsort_arg_comparator
|
|
#define ST_COMPARE_RUNTIME_POINTER
|
|
#define ST_COMPARE_ARG_TYPE void
|
|
#define ST_SCOPE
|
|
#define ST_DEFINE
|
|
#include "lib/sort_template.h"
|