X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Fredblack-test.c;h=6ec1b9f7424f54b764f23cd71919654a6b871720;hb=1e5ae8a779b693d8023ce9821b839f29e210d9e8;hp=cd0efee1040bc7a3f0e7a6b6543cd7591066cd64;hpb=1cf8ac51f5495ccd5187dc220ffc69e95d6e0cfc;p=libucw.git diff --git a/ucw/redblack-test.c b/ucw/redblack-test.c index cd0efee1..6ec1b9f7 100644 --- a/ucw/redblack-test.c +++ b/ucw/redblack-test.c @@ -4,9 +4,9 @@ * (c) 2002, Robert Spalek */ -#include "ucw/lib.h" -#include "ucw/getopt.h" -#include "ucw/fastbuf.h" +#include +#include +#include #include #include @@ -39,6 +39,7 @@ static void my_dump_data(struct fastbuf *fb, struct my1_node *n) #define TREE_WANT_ITERATOR #define TREE_WANT_DUMP #define TREE_CONSERVE_SPACE +#define TREE_AUTO_POOL 4096 #include "redblack.h" static void my_check_order(struct fastbuf *fb, struct my_tree *t) @@ -87,14 +88,14 @@ static void my2_dump_data(struct fastbuf *fb UNUSED, struct my2_node *n UNUSED) #define TREE_WANT_FIND_NEXT #define TREE_WANT_ITERATOR #define TREE_WANT_DUMP -#define TREE_STATIC #define TREE_CONSERVE_SPACE +#define TREE_AUTO_POOL 4096 #include "redblack.h" -static void random_string(char *txt, uns max_len) +static void random_string(char *txt, uint max_len) { - uns len = random() % max_len; - uns j; + uint len = random() % max_len; + uint j; for (j=0; j