summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/node.c7
-rw-r--r--src/node.h3
2 files changed, 7 insertions, 3 deletions
diff --git a/src/node.c b/src/node.c
index 1ae5e57..36dc0bc 100644
--- a/src/node.c
+++ b/src/node.c
@@ -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
diff --git a/src/node.h b/src/node.h
index fb3b667..77b5698 100644
--- a/src/node.h
+++ b/src/node.h
@@ -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);