aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-11-13 10:06:43 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-11-13 10:06:43 -0800
commite5fd42248067b4e8f29a9c2ed9d224ded4526c24 (patch)
tree9e795179ea25aacc99c1e8de5a500b3485ffd10c /src
parent91642ceee7a2a2c05d9561c0e22b2f15111ac603 (diff)
Rename cmark_free_nodes -> cmark_free_blocks.
Diffstat (limited to 'src')
-rw-r--r--src/ast.c2
-rw-r--r--src/ast.h2
-rw-r--r--src/cmark.c2
-rw-r--r--src/main.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/ast.c b/src/ast.c
index 1622568..8ccf184 100644
--- 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
index decf5eb..f8e0345 100644
--- 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
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);
diff --git a/src/main.c b/src/main.c
index e3b58d5..2bfe291 100644
--- 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);
}
}