* (c) 2002, Robert Spalek <robert@ucw.cz>
*/
-#include "ucw/lib.h"
-#include "ucw/getopt.h"
-#include "ucw/fastbuf.h"
+#include <ucw/lib.h>
+#include <ucw/getopt.h>
+#include <ucw/fastbuf.h>
#include <stdio.h>
#include <stdlib.h>
#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)
#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<len; j++)
txt[j] = random() % 96 + 32;
txt[len] = 0;