diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-07 21:30:49 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-07 21:30:49 +0000 |
commit | cbf4b23303e5c63578526fbe6fa0a5d8eb493fba (patch) | |
tree | 90b5d66bb889bc989e5ae7d725256fefe9316fd5 /xml.c | |
parent | 8fd8d3e8c36a0ca787a81071a2847668e8e91619 (diff) | |
download | mandoc-cbf4b23303e5c63578526fbe6fa0a5d8eb493fba.tar.gz |
*** empty log message ***
Diffstat (limited to 'xml.c')
-rw-r--r-- | xml.c | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -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 *, @@ -141,6 +147,28 @@ xml_end(struct md_mbuf *mbuf, const struct md_args *args) /* 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 +239,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)); } |