diff options
author | Vicent Marti <tanoku@gmail.com> | 2016-06-06 11:47:36 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-06-06 15:39:06 -0700 |
commit | cea908d84fee8daa1da8c6eeec0767dcbc543088 (patch) | |
tree | 69b57c0e32e34c452d51c416dda2999cc123ea8b /src/blocks.c | |
parent | fc1299a51ede05b3a76ae2f5a3ce882741a43a8b (diff) |
mem: Rename the new APIs
Diffstat (limited to 'src/blocks.c')
-rw-r--r-- | src/blocks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blocks.c b/src/blocks.c index 778c330..5ce17ab 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -76,7 +76,7 @@ static cmark_node *make_document(cmark_mem *mem) { return e; } -cmark_parser *cmark_parser_new2(int options, cmark_mem *mem) { +cmark_parser *cmark_parser_new_with_mem(int options, cmark_mem *mem) { cmark_parser *parser = mem->calloc(1, sizeof(cmark_parser)); parser->mem = mem; @@ -108,7 +108,7 @@ cmark_parser *cmark_parser_new2(int options, cmark_mem *mem) { cmark_parser *cmark_parser_new(int options) { extern cmark_mem DEFAULT_MEM_ALLOCATOR; - return cmark_parser_new2(options, &DEFAULT_MEM_ALLOCATOR); + return cmark_parser_new_with_mem(options, &DEFAULT_MEM_ALLOCATOR); } void cmark_parser_free(cmark_parser *parser) { |