1
0

action_dump.c 677 B

12345678910111213141516171819202122232425262728293031
  1. #ifdef DEBUG
  2. /*
  3. * action_dump.c
  4. */
  5. #include "lub/dump.h"
  6. #include "private.h"
  7. /*--------------------------------------------------------- */
  8. void clish_action_dump(const clish_action_t *this)
  9. {
  10. char *builtin_name;
  11. lub_dump_printf("action(%p)\n", this);
  12. lub_dump_indent();
  13. lub_dump_printf("script : %s\n",
  14. this->script ? this->script : "(null)");
  15. builtin_name = clish_sym__get_name(this->builtin);
  16. lub_dump_printf("builtin : %s\n",
  17. builtin_name ? builtin_name : "(null)");
  18. lub_dump_printf("shebang : %s\n",
  19. this->shebang ? this->shebang : "(null)");
  20. lub_dump_undent();
  21. }
  22. /*--------------------------------------------------------- */
  23. #endif /* DEBUG */