=================================================================== RCS file: /cvs/mandoc/Attic/xml.c,v retrieving revision 1.17 retrieving revision 1.19 diff -u -p -r1.17 -r1.19 --- mandoc/Attic/xml.c 2008/12/06 21:10:31 1.17 +++ mandoc/Attic/xml.c 2008/12/07 23:44:19 1.19 @@ -1,4 +1,4 @@ -/* $Id: xml.c,v 1.17 2008/12/06 21:10:31 kristaps Exp $ */ +/* $Id: xml.c,v 1.19 2008/12/07 23:44:19 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -34,6 +34,12 @@ static ssize_t xml_begintag(struct md_mbuf *, void *, const struct md_args *, enum md_ns, int, const int *, const char **); +static ssize_t xml_beginstring(struct md_mbuf *, + const struct md_args *, + const char *, size_t); +static ssize_t xml_endstring(struct md_mbuf *, + const struct md_args *, + const char *, size_t); static int xml_begin(struct md_mbuf *, const struct md_args *, const struct tm *, @@ -125,7 +131,8 @@ xml_begin(struct md_mbuf *mbuf, const struct md_args * "encoding=\"UTF-8\"?>\n", NULL)) return(0); return(ml_puts(mbuf, "", NULL)); } @@ -141,6 +148,28 @@ xml_end(struct md_mbuf *mbuf, const struct md_args *ar /* ARGSUSED */ static ssize_t +xml_beginstring(struct md_mbuf *mbuf, + const struct md_args *args, + const char *buf, size_t sz) +{ + + return(0); +} + + +/* ARGSUSED */ +static ssize_t +xml_endstring(struct md_mbuf *mbuf, + const struct md_args *args, + const char *buf, size_t sz) +{ + + return(0); +} + + +/* ARGSUSED */ +static ssize_t xml_begintag(struct md_mbuf *mbuf, void *data, const struct md_args *args, enum md_ns ns, int tok, const int *argc, const char **argv) @@ -211,6 +240,8 @@ md_init_xml(const struct md_args *args, cbs.ml_endtag = xml_endtag; cbs.ml_begin = xml_begin; cbs.ml_end = xml_end; + cbs.ml_beginstring = xml_beginstring; + cbs.ml_endstring = xml_endstring; return(mlg_alloc(args, rbuf, mbuf, &cbs)); }