cmark

Unnamed repository; edit this file 'description' to name the repository.

commit e5fd42248067b4e8f29a9c2ed9d224ded4526c24
parent 91642ceee7a2a2c05d9561c0e22b2f15111ac603
Author: John MacFarlane <fiddlosopher@gmail.com>
Date:   Thu, 13 Nov 2014 10:06:43 -0800

Rename cmark_free_nodes -> cmark_free_blocks.

Diffstat:
Msrc/ast.c | 2+-
Msrc/ast.h | 2+-
Msrc/cmark.c | 2+-
Msrc/main.c | 4++--
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/ast.c b/src/ast.c
@@ -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) {
diff --git a/src/ast.h b/src/ast.h
@@ -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
@@ -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);
diff --git a/src/main.c b/src/main.c
@@ -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);
 		}
 	}