#define TYPE int #define COMPARE(x,y) (x < y) #define PREFIX(FUN) int_ ## FUN #include "sort.c" #undef TYPE #undef COMPARE #undef PREFIX #define TYPE double #define COMPARE(x,y) (x < y) #define PREFIX(FUN) double_ ## FUN #include "sort.c" #undef TYPE #undef COMPARE #undef PREFIX #define TYPE char * #define PREFIX(FUN) string_ ## FUN #define COMPARE(x,y) (strcmp(x,y) < 0) #include "sort.c" #undef TYPE #undef COMPARE #undef PREFIX