Description: Discount.xs include the header cstring.h which is intended 
 only for internal discount use.
Origin: vendor
Forwarded: no
Author: Alessandro Ghedini <al3xbio@gmail.com>
Reviewed-by: Alessandro Ghedini <al3xbio@gmail.com>
Last-Update: 2012-01-03

--- a/Discount.xs
+++ b/Discount.xs
@@ -6,36 +6,6 @@
 
 #include <string.h>
 #include <mkdio.h>
-#include <cstring.h>
-
-typedef struct line {
-    Cstring text;
-    struct line *next;
-    int dle;
-} Line;
-
-typedef struct paragraph {
-    struct paragraph *next;	/* next paragraph */
-    struct paragraph *down;	/* recompiled contents of this paragraph */
-    struct line *text;		/* all the text in this paragraph */
-    char *ident;		/* %id% tag for QUOTE */
-    enum { WHITESPACE=0, CODE, QUOTE, MARKUP,
-	   HTML, STYLE, DL, UL, OL, AL, LISTITEM,
-	   HDR, HR } typ;
-    enum { IMPLICIT=0, PARA, CENTER} align;
-    int hnumber;		/* <Hn> for typ == HDR */
-} Paragraph;
-
-typedef struct document {
-    Line *headers;		/* title -> author(s) -> date */
-    ANCHOR(Line) content;	/* uncompiled text, not valid after compile() */
-    Paragraph *code;		/* intermediate code generated by compile() */
-    int compiled;		/* set after mkd_compile() */
-    int html;			/* set after (internal) htmlify() */
-    int tabstop;		/* for properly expanding tabs (ick) */
-    MMIOT *ctx;			/* backend buffers, flags, and structures */
-    char *base;			/* url basename for url fragments */
-} Document;
 
 MODULE = Text::Markdown::Discount		PACKAGE = Text::Markdown::Discount	PREFIX = TextMarkdown_
 
@@ -49,7 +19,7 @@
         int flags = MKD_NOHEADER|MKD_NOPANTS;
         char *html = NULL;
         int szhtml;
-        Document *doc;
+        MMIOT *doc;
     CODE:
         if ( (doc = mkd_string(text, strlen(text), flags)) == 0 ) {
             croak("failed at mkd_string");
