diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-27 22:30:01 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-28 16:26:59 -0800 |
commit | bf44064d09afd04039058a00c32c1532fb5e2b61 (patch) | |
tree | 2a1be37623ba2071a90a3eab7911e4d4cf99992b /src | |
parent | 072b4313a4de233df624776dcd9892e5dd24b8d8 (diff) |
Expose cmark_node_type_string in node.h (private header).
Previously was static function S_type_string.
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); |