X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fsorter%2Fs-internal.h;h=e581cecb7443b886b3c6954f9510d194051f3764;hb=1f05348cde42852d77da3457b96a33dff1600ca4;hp=765ed4b9892806855c0d0228261fd61fde038137;hpb=556cfa14c25a4124673e2a7489308e82021cf58b;p=libucw.git diff --git a/lib/sorter/s-internal.h b/lib/sorter/s-internal.h index 765ed4b9..e581cecb 100644 --- a/lib/sorter/s-internal.h +++ b/lib/sorter/s-internal.h @@ -17,6 +17,12 @@ typedef struct { #define ASORT_PREFIX(x) SORT_PREFIX(array_##x) #define ASORT_KEY_TYPE P(internal_item_t) #define ASORT_LT(x,y) (P(compare)((x).key, (y).key) < 0) +#ifdef SORT_INTERNAL_RADIX +# define ASORT_HASH(x) P(hash)((x).key) +# ifdef SORT_LONG_HASH +# define ASORT_LONG_HASH +# endif +#endif #include "lib/sorter/array.h" /*