tree_dump.c 914 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifdef DEBUG
  2. /*
  3. * conf_dump.c
  4. */
  5. #include "private.h"
  6. #include "lub/dump.h"
  7. /*--------------------------------------------------------- */
  8. /*void clish_conf_dump(clish_conf_t * this)
  9. {
  10. clish_command_t *c;
  11. lub_bintree_iterator_t iter;
  12. unsigned i;
  13. lub_dump_printf("view(%p)\n", this);
  14. lub_dump_indent();
  15. c = lub_bintree_findfirst(&this->tree);
  16. lub_dump_printf("name : %s\n", clish_view__get_name(this));
  17. lub_dump_printf("depth : %u\n", clish_view__get_depth(this));
  18. */
  19. /* Get each namespace to dump their details */
  20. /* for (i = 0; i < this->nspacec; i++) {
  21. clish_nspace_dump(clish_view__get_nspace(this, i));
  22. }
  23. */
  24. /* iterate the tree of commands */
  25. /* for (lub_bintree_iterator_init(&iter, &this->tree, c);
  26. c; c = lub_bintree_iterator_next(&iter)) {
  27. clish_command_dump(c);
  28. }
  29. lub_dump_undent();
  30. } */
  31. /*--------------------------------------------------------- */
  32. #endif /* DEBUG */