1
0

action_dump.c 643 B

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