diff options
author | Vicent Marti <tanoku@gmail.com> | 2014-09-15 15:28:49 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2014-09-15 15:28:49 +0200 |
commit | 118e3d3c39242225baa876319cdbfbb1adadc77b (patch) | |
tree | f3ee75c973eb8f64bb843e7d5980d02a9940481e /src/main.c | |
parent | 0ae7f4f53720e867c92ac9465062285293568856 (diff) |
Cleanup external APIs
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -17,9 +17,9 @@ static void print_document(node_block *document, bool ast) strbuf html = GH_BUF_INIT; if (ast) { - print_blocks(document, 0); + stmd_debug_print(document); } else { - blocks_to_html(&html, document, false); + stmd_render_html(&html, document); printf("%s", html.ptr); strbuf_free(&html); } @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) if (numfps == 0) { document = stmd_parse_file(stdin); print_document(document, ast); - free_blocks(document); + stmd_free_nodes(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 = stmd_parse_file(fp); print_document(document, ast); - free_blocks(document); + stmd_free_nodes(document); fclose(fp); } } |