summaryrefslogtreecommitdiff
path: root/src/buffer.c
AgeCommit message (Collapse)Author
2015-03-29Fixed bug in cmark_strbuf_unescape (buffer.c).John MacFarlane
The old function called 'continue' when seeing a backslash, but this gave incorrect results on input like: \\* since the next backslash would be treated as escaping the `*` instead of being escaped itself.
2015-01-05Reformatted code consistently with astyle.John MacFarlane
2014-12-31Feature test for va_copyNick Wellnhofer
MSVC doesn't support va_copy.
2014-12-31Add missing va_endNick Wellnhofer
2014-12-30Revert "Remove unneeded va_copy"John MacFarlane
This reverts commit 485ef21b95e257e9d9cbcaa804c3c164f1f49a80. Apparently the va_copy IS needed, because without this code we get segfaults in some cases. Closes #253. @nwellnhof, can you have a look at this issue and comment? I understand that this code was removed for portability reasons. Is there an alternative solution?
2014-12-29Added cmark_ prefix to functions in cmark_ctype.John MacFarlane
2014-12-29Added cmark_ctype.h with locale-independent isspace, ispunct, etc.John MacFarlane
Otherwise cmark's behavior varies unpredictably with the locale. `is_punctuation` in utf8.h has also been adjusted so that everything that counts all ASCII symbol characters count as punctuation, even though some are not in P* character classes.
2014-12-15Re-added cmark_ prefix to strbuf and chunk.John MacFarlane
Reverts 225d720.
2014-12-13Removed cmark_ prefix on chunk and strbuf.John MacFarlane
This isn't needed any more since we don't expose these in the API.
2014-11-16Move inline function definitions to header filesNick Wellnhofer
Inline functions must be defined in header files in order to be inlined in other compilation units. This also fixes the MSVC build where out-of-line versions weren't created and allows to remove the -fgnu89-inline flag.
2014-11-16Remove unneeded va_copyNick Wellnhofer
va_copy isn't needed here. See http://stackoverflow.com/questions/26953289 Remove it because it isn't part of C89 and not implemented by MSVC.
2014-11-16Remove unneeded #includesNick Wellnhofer
Fixes cross-platform issues.
2014-11-16Cast void pointers explicitlyNick Wellnhofer
Needed for C++ compatibility.
2014-11-15Expose lower-level parsing API.John MacFarlane
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.
2014-11-14Moved code from buffer.h to buffer.c. Make strbuf_cstr static.John MacFarlane
2014-11-14buffer: Name functions with cmark_ prefix.John MacFarlane
2014-11-06buffer: added strbuf_rtrim function.John MacFarlane
2014-10-24Only define MIN if it's undefined.John MacFarlane
Note: it is defined in GNU libc (Linux) and FreeBSD and OSX sys/param.h.
2014-10-24Merge branch 'master' of https://github.com/abduelhamit/stmd into ↵John MacFarlane
abduelhamit-master
2014-10-18Reindented c sources.John MacFarlane
2014-10-13Add missing MIN directiveAbdülhamit Yilmaz
It's needed in strbuf_cmp().
2014-09-10Do not create references with empty namesVicent Marti
2014-09-10Cleanup reference implementationVicent Marti
2014-09-09Rename to strbufVicent Marti
2014-09-09338/103Vicent Marti
2014-09-09It buiiiildsVicent Marti
2014-09-09ffffixVicent Marti
2014-09-09lolVicent Marti