| 574 | } |
| 575 | |
| 576 | const char *cmark_node_get_on_enter(cmark_node *node) { |
| 577 | if (node == NULL) { |
| 578 | return NULL; |
| 579 | } |
| 580 | |
| 581 | switch (node->type) { |
| 582 | case CMARK_NODE_CUSTOM_INLINE: |
| 583 | case CMARK_NODE_CUSTOM_BLOCK: |
| 584 | return node->as.custom.on_enter ? (char *)node->as.custom.on_enter : ""; |
| 585 | default: |
| 586 | break; |
| 587 | } |
| 588 | |
| 589 | return NULL; |
| 590 | } |
| 591 | |
| 592 | int cmark_node_set_on_enter(cmark_node *node, const char *on_enter) { |
| 593 | if (node == NULL) { |
no outgoing calls
no test coverage detected