ext/mkdio.c in rdiscount-1.2.7.1 vs ext/mkdio.c in rdiscount-1.2.9

- old
+ new

@@ -39,11 +39,11 @@ { Line *p = calloc(sizeof *p, 1); unsigned char c; int xp = 0; int size = S(*line); - unsigned char *str = T(*line); + unsigned char *str = (unsigned char*)T(*line); CREATE(p->text); ATTACH(a->content, p); while ( size-- ) { @@ -66,17 +66,19 @@ S(p->text)--; p->dle = mkd_firstnonblank(p); } +#ifdef PANDOC_HEADER /* trim leading blanks from a header line */ static void snip(Line *p) { CLIP(p->text, 0, 1); p->dle = mkd_firstnonblank(p); } +#endif /* build a Document from any old input. */ typedef int (*getc_func)(void*);