*/
#include "lib/lib.h"
-#include "lib/conf.h"
-#include "lib/fastbuf.h"
-
-#include <unistd.h>
-#include <sys/fcntl.h>
-
-#define SORT_DECLARE_ONLY
-#include "lib/sorter.h"
-
-uns sorter_trace;
-uns sorter_presort_bufsize = 65536;
-uns sorter_stream_bufsize = 65536;
-
-static struct cf_section sorter_config = {
- CF_ITEMS {
- CF_UNS("Trace", &sorter_trace),
- CF_UNS("PresortBuffer", &sorter_presort_bufsize),
- CF_UNS("StreamBuffer", &sorter_stream_bufsize),
- CF_END
- }
-};
-
-static void CONSTRUCTOR sorter_init_config(void)
-{
- cf_declare_section("Sorter", &sorter_config, 0);
-}
+#include "lib/sorter-globals.h"
uns sorter_pass_counter;