X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fsorter.c;h=20db9ef1974e3b86ea9866b1f303bcad63534df6;hb=5a78c3505ae7fa76a061e26676450049ec5946d5;hp=bda973e5d7887e8013b8885ea105ac33ba330295;hpb=49ed04e2e93a6a5b01058638224621d5c07db01c;p=libucw.git diff --git a/lib/sorter.c b/lib/sorter.c index bda973e5..20db9ef1 100644 --- a/lib/sorter.c +++ b/lib/sorter.c @@ -1,5 +1,5 @@ /* - * Sherlock Library -- Universal Sorter + * UCW Library -- Universal Sorter * * (c) 2001--2002 Martin Mares * @@ -8,30 +8,6 @@ */ #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;