which makes it work... will track things down later.
// @todo - make this configurable in fr_trie_t, and pass fr_trei_t to
// all internal function.
+
+#ifndef DEFAULT_SIZE
#define DEFAULT_SIZE (4)
+#endif
/*
* Macros to swap one for the other.
return NULL;
}
+#ifndef WITH_PATH_COMPRESSION
+ if (size > DEFAULT_SIZE) size = DEFAULT_SIZE;
+#endif
+
node_size = sizeof(fr_trie_node_t) + (sizeof(node->entry[0]) * (1 << size));
node = talloc_zero_size(ctx, node_size);
if (!node) return NULL;
TARGET := nopc
-SRC_CFLAGS := -DTESTING -DNO_PATH_COMPRESSION
+SRC_CFLAGS := -DTESTING -DNO_PATH_COMPRESSION -DDEFAULT_SIZE=1
SOURCES := nopc.c
TGT_LDLIBS := $(LIBS)
TGT_PREREQS := libfreeradius-util.a