summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-27 22:30:01 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-28 16:26:59 -0800
commitbf44064d09afd04039058a00c32c1532fb5e2b61 (patch)
tree2a1be37623ba2071a90a3eab7911e4d4cf99992b /src
parent072b4313a4de233df624776dcd9892e5dd24b8d8 (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.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);