2 * Sherlock Library -- Universal Sorter
4 * (c) 2001--2002 Martin Mares <mj@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU Lesser General Public License.
12 #include "lib/fastbuf.h"
15 #include <sys/fcntl.h>
17 #define SORT_DECLARE_ONLY
18 #include "lib/sorter.h"
21 uns sorter_presort_bufsize = 65536;
22 uns sorter_stream_bufsize = 65536;
24 static struct cfitem sorter_config[] = {
25 { "Sorter", CT_SECTION, NULL },
26 { "Trace", CT_INT, &sorter_trace },
27 { "PresortBuffer", CT_INT, &sorter_presort_bufsize },
28 { "StreamBuffer", CT_INT, &sorter_stream_bufsize },
29 { NULL, CT_STOP, NULL }
32 static void CONSTRUCTOR sorter_init_config(void)
34 cf_register(sorter_config);
37 uns sorter_pass_counter;