diff options
-rw-r--r-- | src/ast.c | 2 | ||||
-rw-r--r-- | src/ast.h | 2 | ||||
-rw-r--r-- | src/cmark.c | 2 | ||||
-rw-r--r-- | src/main.c | 4 |
4 files changed, 5 insertions, 5 deletions
@@ -6,7 +6,7 @@ #include "references.h" // Free a node_block list and any children. -void cmark_free_nodes(node_block *e) +void cmark_free_blocks(node_block *e) { node_block * next; while (e != NULL) { @@ -101,7 +101,7 @@ struct cmark_node_block { typedef struct cmark_node_block cmark_node_block; -void cmark_free_nodes(cmark_node_block *e); +void cmark_free_blocks(cmark_node_block *e); #ifndef CMARK_NO_SHORT_NAMES #define node_inl cmark_node_inl diff --git a/src/cmark.c b/src/cmark.c index ef98d79..8f5c4e8 100644 --- a/src/cmark.c +++ b/src/cmark.c @@ -14,7 +14,7 @@ extern unsigned char *cmark_markdown_to_html(unsigned char *text, int len) blocks = cmark_parse_document(text, len); cmark_render_html(&htmlbuf, blocks); - cmark_free_nodes(blocks); + cmark_free_blocks(blocks); result = strbuf_detach(&htmlbuf); strbuf_free(&htmlbuf); @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) if (numfps == 0) { document = cmark_parse_file(stdin); print_document(document, ast); - cmark_free_nodes(document); + cmark_free_blocks(document); } else { for (i = 0; i < numfps; i++) { FILE *fp = fopen(argv[files[i]], "r"); @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) document = cmark_parse_file(fp); print_document(document, ast); - cmark_free_nodes(document); + cmark_free_blocks(document); fclose(fp); } } |