X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fsorter.c;h=20db9ef1974e3b86ea9866b1f303bcad63534df6;hb=5a78c3505ae7fa76a061e26676450049ec5946d5;hp=328c671b021af69941841a67c2510fc1d0442386;hpb=8299c27047b1a992e2b38463421ec4a4a69f8cec;p=libucw.git diff --git a/lib/sorter.c b/lib/sorter.c index 328c671b..20db9ef1 100644 --- a/lib/sorter.c +++ b/lib/sorter.c @@ -1,34 +1,13 @@ /* - * Sherlock Library -- Universal Sorter + * UCW Library -- Universal Sorter * * (c) 2001--2002 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #include "lib/lib.h" -#include "lib/conf.h" -#include "lib/fastbuf.h" - -#include -#include - -#define SORT_DECLARE_ONLY -#include "lib/sorter.h" - -uns sorter_trace; -uns sorter_presort_bufsize = 65536; -uns sorter_stream_bufsize = 65536; - -static struct cfitem sorter_config[] = { - { "Sorter", CT_SECTION, NULL }, - { "Trace", CT_INT, &sorter_trace }, - { "PresortBuffer", CT_INT, &sorter_presort_bufsize }, - { "StreamBuffer", CT_INT, &sorter_stream_bufsize }, - { NULL, CT_STOP, NULL } -}; - -static void CONSTRUCTOR sorter_init_config(void) -{ - cf_register(sorter_config); -} +#include "lib/sorter-globals.h" uns sorter_pass_counter;