1
0

pargv_dump.c 870 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * pargv_dump.c
  3. */
  4. #include "private.h"
  5. #include "lub/dump.h"
  6. /*--------------------------------------------------------- */
  7. void clish_parg_dump(const clish_parg_t * this)
  8. {
  9. lub_dump_printf("parg(%p)\n", this);
  10. lub_dump_indent();
  11. lub_dump_printf("name : %s\n", clish_parg__get_name(this));
  12. lub_dump_printf("ptype: %s\n",
  13. clish_ptype__get_name(clish_parg__get_ptype(this)));
  14. lub_dump_printf("value: %s\n", clish_parg__get_value(this));
  15. lub_dump_undent();
  16. }
  17. /*--------------------------------------------------------- */
  18. void clish_pargv_dump(const clish_pargv_t * this)
  19. {
  20. unsigned i;
  21. lub_dump_printf("pargv(%p)\n", this);
  22. lub_dump_indent();
  23. for (i = 0; i < this->pargc; i++) {
  24. /* get the appropriate parameter definition */
  25. clish_parg_dump(this->pargv[i]);
  26. }
  27. lub_dump_undent();
  28. }
  29. /*--------------------------------------------------------- */