summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-02-15 18:26:35 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-02-15 18:26:35 -0800
commit376f81ab8aa017ab01040e10d393d7682674562d (patch)
treec6a9c8982f76df9afcc42f3822e339701a08f3c6 /src/main.c
parent982ba5a528111dbf647e90f412498e315fcf432c (diff)
Added options parameter to cmark_parse_document, cmark_parse_file.
Also to some non-exported functions in blocks and inlines.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 6dc3d34..a88a764 100644
--- a/src/main.c
+++ b/src/main.c
@@ -69,7 +69,6 @@ int main(int argc, char *argv[])
_setmode(_fileno(stdout), _O_BINARY);
#endif
- parser = cmark_parser_new();
files = (int *)malloc(argc * sizeof(*files));
for (i = 1; i < argc; i++) {
@@ -117,6 +116,7 @@ int main(int argc, char *argv[])
}
}
+ parser = cmark_parser_new(options);
for (i = 0; i < numfps; i++) {
FILE *fp = fopen(argv[files[i]], "r");
if (fp == NULL) {