ptype_dump.c 751 B

1234567891011121314151617181920212223242526
  1. #ifdef DEBUG
  2. /*
  3. * ptype_dump.c
  4. */
  5. #include "private.h"
  6. #include "lub/dump.h"
  7. /*--------------------------------------------------------- */
  8. void clish_ptype_dump(clish_ptype_t * this)
  9. {
  10. lub_dump_printf("ptype(%p)\n", this);
  11. lub_dump_indent();
  12. lub_dump_printf("name : %s\n", clish_ptype__get_name(this));
  13. lub_dump_printf("text : %s\n", LUB_DUMP_STR(clish_ptype__get_text(this)));
  14. lub_dump_printf("pattern : %s\n", LUB_DUMP_STR(this->pattern));
  15. lub_dump_printf("method : %s\n",
  16. clish_ptype_method__get_name(this->method));
  17. lub_dump_printf("postprocess: %s\n",
  18. clish_ptype_preprocess__get_name(this->preprocess));
  19. lub_dump_undent();
  20. }
  21. /*--------------------------------------------------------- */
  22. #endif /* DEBUG */