]> mj.ucw.cz Git - libucw.git/blob - lib/sorter.c
Use $(COPT2) instead of -O6.
[libucw.git] / lib / sorter.c
1 /*
2  *      UCW Library -- Universal Sorter
3  *
4  *      (c) 2001--2002 Martin Mares <mj@ucw.cz>
5  *
6  *      This software may be freely distributed and used according to the terms
7  *      of the GNU Lesser General Public License.
8  */
9
10 #include "lib/lib.h"
11 #include "lib/conf.h"
12 #include "lib/fastbuf.h"
13
14 #include <unistd.h>
15 #include <sys/fcntl.h>
16
17 #define SORT_DECLARE_ONLY
18 #include "lib/sorter.h"
19
20 uns sorter_trace;
21 uns sorter_presort_bufsize = 65536;
22 uns sorter_stream_bufsize = 65536;
23
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 }
30 };
31
32 static void CONSTRUCTOR sorter_init_config(void)
33 {
34   cf_register(sorter_config);
35 }
36
37 uns sorter_pass_counter;