MCPcopy Create free account
hub / github.com/commonmark/cmark / cmark_node_set_on_exit

Function cmark_node_set_on_exit

src/node.c:625–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625int 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
642int cmark_node_get_start_line(cmark_node *node) {
643 if (node == NULL) {

Callers 1

custom_nodesFunction · 0.85

Calls 1

cmark_set_cstrFunction · 0.85

Tested by

no test coverage detected