This is David Loren Parsons's implementation of John Gruber's Markdown text to html language. There's not much here that differentiates it from any of the existing Markdown implementations except that it's written in C instead of one of the vast flock of scripting languages that are fighting it out for the Perl crown. Markdown provides a library that gives you formatting functions suitable for marking down entire documents or lines of text, a command-line program that you can use to mark down documents interactively or from a script, and a tiny suite of example programs that show how to fully utilize the markdown library.
13 lines
495 B
Plaintext
13 lines
495 B
Plaintext
$OpenBSD: patch-cstring_h,v 1.1.1.1 2009/04/13 20:45:05 sthen Exp $
|
|
--- cstring.h.orig Fri Apr 3 17:57:34 2009
|
|
+++ cstring.h Mon Apr 13 10:39:25 2009
|
|
@@ -16,7 +16,7 @@
|
|
*/
|
|
#define STRING(type) struct { type *text; int size, alloc; }
|
|
|
|
-#define CREATE(x) T(x) = (void*)(S(x) = (x).alloc = 0)
|
|
+#define CREATE(x) T(x) = NULL; (S(x) = (x).alloc = 0)
|
|
#define EXPAND(x) (S(x)++)[(S(x) < (x).alloc) \
|
|
? (T(x)) \
|
|
: (T(x) = T(x) ? realloc(T(x), sizeof T(x)[0] * ((x).alloc += 100)) \
|