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/blocks.c | |
parent | 5de2e4e9d39fd918d041169e2759d4f4b57a0cc6 (diff) |
Made 'options' an int rather than a long.
For consistency with the API.
Diffstat (limited to 'src/blocks.c')
-rw-r--r-- | src/blocks.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blocks.c b/src/blocks.c index 7470389..c6a468f 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -50,7 +50,7 @@ static cmark_node* make_document() return e; } -cmark_parser *cmark_parser_new(long options) +cmark_parser *cmark_parser_new(int options) { cmark_parser *parser = (cmark_parser*)malloc(sizeof(cmark_parser)); cmark_node *document = make_document(); @@ -317,7 +317,7 @@ static cmark_node* add_child(cmark_parser *parser, cmark_node* parent, // Walk through cmark_node and all children, recursively, parsing // string content into inline content where appropriate. -static void process_inlines(cmark_node* root, cmark_reference_map *refmap, long options) +static void process_inlines(cmark_node* root, cmark_reference_map *refmap, int options) { cmark_iter *iter = cmark_iter_new(root); cmark_node *cur; @@ -422,7 +422,7 @@ static cmark_node *finalize_document(cmark_parser *parser) return parser->root; } -cmark_node *cmark_parse_file(FILE *f, long options) +cmark_node *cmark_parse_file(FILE *f, int options) { unsigned char buffer[4096]; cmark_parser *parser = cmark_parser_new(options); @@ -442,7 +442,7 @@ cmark_node *cmark_parse_file(FILE *f, long options) return document; } -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) { cmark_parser *parser = cmark_parser_new(options); cmark_node *document; |