action_dump.c 968 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. 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_printf("lock : %s\n", LUB_DUMP_BOOL(this->lock));
  17. lub_dump_printf("interrupt : %s\n", LUB_DUMP_BOOL(this->interrupt));
  18. lub_dump_printf("interactive : %s\n", LUB_DUMP_BOOL(this->interactive));
  19. lub_dump_printf("permanent : %s\n", LUB_DUMP_BOOL(this->permanent));
  20. lub_dump_printf("expand : %s\n", LUB_DUMP_TRI(this->expand));
  21. lub_dump_undent();
  22. }
  23. /*--------------------------------------------------------- */
  24. #endif /* DEBUG */