sort: Get rid of global comparer

This commit is contained in:
Cheer Xiao 2013-01-08 22:40:28 +08:00
parent 137c1d37c2
commit 39e1fb9e5a
2 changed files with 12 additions and 18 deletions

View file

@ -223,11 +223,10 @@ int leasecomp(const void *restrict a, const void *restrict b);
int rangecomp(const void *__restrict r1, const void *__restrict r2)
__attribute__ ((nonnull(1, 2)));
/* sort function pointer and functions */
int (*comparer) (struct range_t *r1, struct range_t *r2);
typedef int (*comparer_t) (struct range_t *r1, struct range_t *r2);
unsigned long int ret_percent(struct range_t r);
unsigned long int ret_tc(struct range_t r);
unsigned long int ret_tcperc(struct range_t r);
void field_selector(char c);
void mergesort_ranges(struct range_t *__restrict orig, int size,
struct range_t *__restrict temp)
__attribute__ ((nonnull(1, 3)));