action_dump.c 603 B

1234567891011121314151617181920212223242526
  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. lub_dump_printf("action(%p)\n", this);
  11. lub_dump_indent();
  12. lub_dump_printf("script : %s\n", LUB_DUMP_STR(this->script));
  13. lub_dump_printf("builtin : %s\n",
  14. this->builtin ? clish_sym__get_name(this->builtin) : LUB_DUMP_NULL );
  15. lub_dump_printf("shebang : %s\n", LUB_DUMP_STR(this->shebang));
  16. lub_dump_undent();
  17. }
  18. /*--------------------------------------------------------- */
  19. #endif /* DEBUG */