return 1;
}
-psplay_delete_t psplay_print_node (PSplay node, const enum psplay_order_e which, int level, void* data)
+psplay_delete_t
+psplay_print_node (PSplay node, const enum psplay_order_e which, int level, void* data)
{
- static char* sp = " ";
- if (level>40) return;
-
FILE* fh = data;
+ static char* sp = " ";
+ if (level>40)
+ {
+ if (which == PSPLAY_PREORDER)
+ fprintf (fh, "%s ...\n", sp+40-level);
+ return PSPLAY_CONT;
+ }
switch (which)
{