1
0

action_dump.c 900 B

123456789101112131415161718192021222324252627282930
  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_undent();
  21. }
  22. /*--------------------------------------------------------- */
  23. #endif /* DEBUG */