diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-02-16 12:06:51 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-02-16 12:06:51 -0800 |
commit | 2bcca4c2118733f14a91eaf585e8ff97e216b6bd (patch) | |
tree | 5302f78894bcf100e7e8172c0289bb30ea3e5f0d /src/html.c | |
parent | 5de2e4e9d39fd918d041169e2759d4f4b57a0cc6 (diff) |
Made 'options' an int rather than a long.
For consistency with the API.
Diffstat (limited to 'src/html.c')
-rw-r--r-- | src/html.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -39,7 +39,7 @@ struct render_state { }; static void -S_render_sourcepos(cmark_node *node, cmark_strbuf *html, long options) +S_render_sourcepos(cmark_node *node, cmark_strbuf *html, int options) { if (CMARK_OPT_SOURCEPOS & options) { cmark_strbuf_printf(html, " data-sourcepos=\"%d:%d-%d:%d\"", @@ -52,7 +52,7 @@ S_render_sourcepos(cmark_node *node, cmark_strbuf *html, long options) static int S_render_node(cmark_node *node, cmark_event_type ev_type, - struct render_state *state, long options) + struct render_state *state, int options) { cmark_node *parent; cmark_node *grandparent; @@ -302,7 +302,7 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, return 1; } -char *cmark_render_html(cmark_node *root, long options) +char *cmark_render_html(cmark_node *root, int options) { char *result; cmark_strbuf html = GH_BUF_INIT; |