diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/node.c | 7 | ||||
-rw-r--r-- | src/node.h | 3 |
2 files changed, 7 insertions, 3 deletions
@@ -86,8 +86,8 @@ cmark_node_get_type(cmark_node *node) } } -static const char* -S_type_string(cmark_node *node) +const char* +cmark_node_type_string(cmark_node *node) { if (node == NULL) { return "NONE"; @@ -708,7 +708,8 @@ S_print_error(FILE *out, cmark_node *node, const char *elem) return; } fprintf(out, "Invalid '%s' in node type %s at %d:%d\n", elem, - S_type_string(node), node->start_line, node->start_column); + cmark_node_type_string(node), node->start_line, + node->start_column); } int @@ -66,6 +66,9 @@ struct cmark_node { } as; }; +const char* +cmark_node_type_string(cmark_node *node); + CMARK_EXPORT int cmark_node_check(cmark_node *node, FILE *out); |