summaryrefslogtreecommitdiff
path: root/src/cmark.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-15 19:49:26 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-11-16 21:23:01 +0100
commita3ee335cd94818b47b2499568ef4bbc95efd37bb (patch)
treef14780fef6b6bdff66fd13e428dc65eee6c04480 /src/cmark.c
parentb779a59313850e2b7fad45a6da8ed7acfb58d518 (diff)
Use named enum types
Needed for C++ compatibility.
Diffstat (limited to 'src/cmark.c')
-rw-r--r--src/cmark.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmark.c b/src/cmark.c
index ac0c230..14901af 100644
--- a/src/cmark.c
+++ b/src/cmark.c
@@ -108,7 +108,7 @@ inline cmark_node_inl* cmark_make_autolink(cmark_node_inl* label, chunk url, int
return cmark_make_link(label, clean_autolink(&url, is_email), NULL);
}
-inline cmark_node_inl* cmark_make_inlines(int t, cmark_node_inl* contents)
+inline cmark_node_inl* cmark_make_inlines(cmark_inl_tag t, cmark_node_inl* contents)
{
cmark_node_inl * e = (cmark_node_inl *)calloc(1, sizeof(*e));
if(e != NULL) {
@@ -120,7 +120,7 @@ inline cmark_node_inl* cmark_make_inlines(int t, cmark_node_inl* contents)
}
// Create an inline with a literal string value.
-inline cmark_node_inl* cmark_make_literal(int t, cmark_chunk s)
+inline cmark_node_inl* cmark_make_literal(cmark_inl_tag t, cmark_chunk s)
{
cmark_node_inl * e = (cmark_node_inl *)calloc(1, sizeof(*e));
if(e != NULL) {
@@ -132,7 +132,7 @@ inline cmark_node_inl* cmark_make_literal(int t, cmark_chunk s)
}
// Create an inline with no value.
-inline cmark_node_inl* cmark_make_simple(int t)
+inline cmark_node_inl* cmark_make_simple(cmark_inl_tag t)
{
cmark_node_inl* e = (cmark_node_inl *)calloc(1, sizeof(*e));
if(e != NULL) {