=================================================================== RCS file: /cvs/mandoc/Attic/xml.c,v retrieving revision 1.19 retrieving revision 1.22 diff -u -p -r1.19 -r1.22 --- mandoc/Attic/xml.c 2008/12/07 23:44:19 1.19 +++ mandoc/Attic/xml.c 2008/12/10 00:53:40 1.22 @@ -1,4 +1,4 @@ -/* $Id: xml.c,v 1.19 2008/12/07 23:44:19 kristaps Exp $ */ +/* $Id: xml.c,v 1.22 2008/12/10 00:53:40 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -20,7 +20,6 @@ #include #include -#include "libmdocml.h" #include "private.h" #include "ml.h" @@ -44,7 +43,7 @@ static int xml_begin(struct md_mbuf *, const struct md_args *, const struct tm *, const char *, const char *, - const char *, const char *); + enum roffmsec, const char *); static int xml_end(struct md_mbuf *, const struct md_args *); static ssize_t xml_printtagname(struct md_mbuf *, @@ -69,6 +68,8 @@ xml_printtagargs(struct md_mbuf *mbuf, const int *argc if ( ! ml_nputs(mbuf, " ", 1, &res)) return(-1); + /* FIXME: should puke on some, no? */ + if ( ! ml_puts(mbuf, tokargnames[c], &res)) return(-1); if ( ! ml_nputs(mbuf, "=\"", 2, &res)) @@ -123,7 +124,7 @@ xml_printtagname(struct md_mbuf *mbuf, enum md_ns ns, static int xml_begin(struct md_mbuf *mbuf, const struct md_args *args, const struct tm *tm, const char *os, - const char *title, const char *section, + const char *title, enum roffmsec section, const char *vol) { @@ -199,6 +200,7 @@ int xml_alloc(void **p) { + *p = NULL; return(1); }