1
0

tree_dump.c 880 B

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