| 623 | } |
| 624 | |
| 625 | int cmark_node_set_on_exit(cmark_node *node, const char *on_exit) { |
| 626 | if (node == NULL) { |
| 627 | return 0; |
| 628 | } |
| 629 | |
| 630 | switch (node->type) { |
| 631 | case CMARK_NODE_CUSTOM_INLINE: |
| 632 | case CMARK_NODE_CUSTOM_BLOCK: |
| 633 | cmark_set_cstr(node->mem, &node->as.custom.on_exit, on_exit); |
| 634 | return 1; |
| 635 | default: |
| 636 | break; |
| 637 | } |
| 638 | |
| 639 | return 0; |
| 640 | } |
| 641 | |
| 642 | int cmark_node_get_start_line(cmark_node *node) { |
| 643 | if (node == NULL) { |
no test coverage detected