From 8f523b0149f250f733d80357320f92ffbe2a8b8f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 14 Nov 2014 23:07:28 -0800 Subject: Expose lower-level parsing API. The new functions cmark_new_doc_parser, cmark_free_doc_parser, cmark_process_line, and cmark_finish allow you to feed lines one by one (possibly from several files) to the parser and call finish when you're done. This is now used in main for mulitple files. --- src/buffer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/buffer.h') diff --git a/src/buffer.h b/src/buffer.h index fc0a6c2..7dfc600 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -81,6 +81,8 @@ void cmark_strbuf_attach(cmark_strbuf *buf, unsigned char *ptr, int asize); CMARK_EXPORT unsigned char *cmark_strbuf_detach(cmark_strbuf *buf); CMARK_EXPORT +inline const char *cmark_strbuf_cstr(const cmark_strbuf *buf); +CMARK_EXPORT void cmark_strbuf_copy_cstr(char *data, int datasize, const cmark_strbuf *buf); #define cmark_strbuf_at(buf, n) ((buf)->ptr[n]) -- cgit v1.2.3