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/cmark.h | |
parent | 5de2e4e9d39fd918d041169e2759d4f4b57a0cc6 (diff) |
Made 'options' an int rather than a long.
For consistency with the API.
Diffstat (limited to 'src/cmark.h')
-rw-r--r-- | src/cmark.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmark.h b/src/cmark.h index f00495a..fc20409 100644 --- a/src/cmark.h +++ b/src/cmark.h @@ -452,13 +452,13 @@ cmark_node *cmark_parser_finish(cmark_parser *parser); * Returns a pointer to a tree of nodes. */ CMARK_EXPORT -cmark_node *cmark_parse_document(const char *buffer, size_t len, long options); +cmark_node *cmark_parse_document(const char *buffer, size_t len, int options); /** Parse a CommonMark document in file 'f', returning a pointer to * a tree of nodes. */ CMARK_EXPORT -cmark_node *cmark_parse_file(FILE *f, long options); +cmark_node *cmark_parse_file(FILE *f, int options); /** * ## Rendering @@ -467,18 +467,18 @@ cmark_node *cmark_parse_file(FILE *f, long options); /** Render a 'node' tree as XML. */ CMARK_EXPORT -char *cmark_render_xml(cmark_node *root, long options); +char *cmark_render_xml(cmark_node *root, int options); /** Render a 'node' tree as an HTML fragment. It is up to the user * to add an appropriate header and footer. */ CMARK_EXPORT -char *cmark_render_html(cmark_node *root, long options); +char *cmark_render_html(cmark_node *root, int options); /** Render a 'node' tree as a groff man page, without the header. */ CMARK_EXPORT -char *cmark_render_man(cmark_node *root, long options); +char *cmark_render_man(cmark_node *root, int options); /** Default writer options. */ |