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/node.c | |
parent | fc1299a51ede05b3a76ae2f5a3ce882741a43a8b (diff) |
mem: Rename the new APIs
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -75,7 +75,7 @@ static bool S_can_contain(cmark_node *node, cmark_node *child) { return false; } -cmark_node *cmark_node_new2(cmark_node_type type, cmark_mem *mem) { +cmark_node *cmark_node_new_with_mem(cmark_node_type type, cmark_mem *mem) { cmark_node *node = (cmark_node *)mem->calloc(1, sizeof(*node)); cmark_strbuf_init(mem, &node->content, 0); node->type = type; @@ -102,7 +102,7 @@ cmark_node *cmark_node_new2(cmark_node_type type, cmark_mem *mem) { cmark_node *cmark_node_new(cmark_node_type type) { extern cmark_mem DEFAULT_MEM_ALLOCATOR; - return cmark_node_new2(type, &DEFAULT_MEM_ALLOCATOR); + return cmark_node_new_with_mem(type, &DEFAULT_MEM_ALLOCATOR); } // Free a cmark_node list and any children. |