Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-06-07 | Account for null terminator in cmark_strbuf_grow | Nick Wellnhofer | |
This simplifies overflow checks. | |||
2015-06-07 | Use custom type bufsize_t for string buffer sizes | Nick Wellnhofer | |
This makes it easier to change the type later. No functional change. The rest of the code base still has to be adjusted to use the new type. Also add some TODO comments in buffer.c. | |||
2015-06-07 | Abort on strbuf errors | Nick Wellnhofer | |
Users of the strbuf API are supposed to check for an OOM condition after appending to strbufs, but: * This is never done in the whole code base. * The implementation was flawed because only `ptr` was set to the OOM value without adjusting `size` and `asize`. After an error, subsequent calls could very well lead to segfaults, contrary to the documentation. Change the code to always abort on errors with a message printed to stderr. The only alternative is to propagate errors throughout the whole library which seems infeasible. | |||
2015-01-05 | Reformatted code consistently with astyle. | John MacFarlane | |
2014-12-15 | Re-added cmark_ prefix to strbuf and chunk. | John MacFarlane | |
Reverts 225d720. | |||
2014-12-13 | Removed 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-28 | Always define short name macros for private symbols | Nick Wellnhofer | |
Since chunk.h and buffer.h are private now, there's no need to optionally disable the short name macros. | |||
2014-11-16 | Move inline function definitions to header files | Nick 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-16 | Feature test for GCC attributes | Nick Wellnhofer | |
2014-11-16 | Declare all functions as extern "C" | Nick Wellnhofer | |
2014-11-16 | Probe for stdbool.h | Nick Wellnhofer | |
Let cmake create a cmark_config.h file to deal with platforms missing stdbool.h. | |||
2014-11-16 | Remove unneeded #includes | Nick Wellnhofer | |
Fixes cross-platform issues. | |||
2014-11-16 | Rename include guards for consistency and to avoid reserved identifiers | Craig Barnes | |
2014-11-15 | Expose 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-14 | Moved code from buffer.h to buffer.c. Make strbuf_cstr static. | John MacFarlane | |
2014-11-14 | Exported some functions from buffer that are used elsewhere. | John MacFarlane | |
2014-11-14 | Use cmake's generate_export_header. | John MacFarlane | |
2014-11-13 | Made buffer functions visible in shared library. | John MacFarlane | |
2014-11-12 | Prefix names in buffer.h | Nick Wellnhofer | |
2014-11-06 | buffer: added strbuf_rtrim function. | John MacFarlane | |
2014-09-10 | Cleanup reference implementation | Vicent Marti | |
2014-09-09 | Rename to strbuf | Vicent Marti | |
2014-09-09 | 338/103 | Vicent Marti | |
2014-09-09 | ffffix | Vicent Marti | |
2014-09-09 | lol | Vicent Marti | |