Commit Graph
9 Commits
Author SHA1 Message Date
jessica parsons 63c7eb3d86 change amalloc so it fills malloc()ed memory with a nun-null pattern, which found a WHOLE BUNCH of places where I was not null-terminating strings but instead was taking advantage of amalloc always zeroing new allocations. 2025-09-08 09:50:17 -07:00
jessica parsons 5e2f73aec4 update my name to the current one 2024-03-29 23:41:29 -07:00
bobsayshilol 87234b3caf Fix memory leak in mkd_xml()
The Cstring |f| wasn't being DELETE()d before returning from mkd_xml(),
leading to a leak every time it was called.
2024-03-17 22:00:10 +00:00
david parsons a0d2a96024 when checking character classes move the utf-8 check in front of all of the other checks; some versions of MSC have a debug mode so if a character isn't either 7-bit ascii or EOF the character class check functions will abort the program. Like, um, yeah, way to creep those standards, people! 2022-05-30 13:32:29 -07:00
david parsons 2ebcb044d2 Take out the T(x) hack from mkd_css() & mkd_xml() and instead
strdup() to return free()able memory.
2017-01-22 00:02:28 -08:00
david parsons 6e4190fa65 Handle error conditions and pass errorcodes out of various mkd_xxx output function
(inspired by a patch written by Koen Punt <koen@koenpunt.nl>)
2015-10-26 14:43:54 -07:00
David Parsons cb40546d8a Change the function type for generatexml from void to int 2009-05-12 12:53:16 -07:00
David Parsons ac59073ea1 1. Attempt to update the documentation for the new functions.
2. Fix broken parameter order in xml.c
3. publish mkd_generatexml, mkd_xml in mkdio.h
2009-05-12 12:37:59 -07:00
David Parsons 70594763c4 Replace the internal function __mkd_xml() with new published
functions `mkd_generatexml()` [write the xml'ed version of a
string to a file] and `mkd_xml()` [write the xml'ed version of
a string into `malloc()`ed memory]
Also move `mkd_text()` into mkdio.c, and put the new xml functions
into their own module.
2009-05-12 10:15:28 -07:00