version 1.11, 2008/12/03 19:21:58 |
version 1.14, 2008/12/04 23:10:51 |
Line 31 static ssize_t xml_begintag(struct md_mbuf *, |
|
Line 31 static ssize_t xml_begintag(struct md_mbuf *, |
|
const struct md_args *, |
const struct md_args *, |
enum md_ns, int, |
enum md_ns, int, |
const int *, const char **); |
const int *, const char **); |
static int xml_begin(struct md_mbuf *, |
static int xml_begin(struct md_mbuf *, |
const struct md_args *); |
const struct md_args *, |
|
const struct tm *, |
|
const char *, const char *, |
|
const char *, const char *); |
static int xml_end(struct md_mbuf *, |
static int xml_end(struct md_mbuf *, |
const struct md_args *); |
const struct md_args *); |
|
|
|
|
|
/* ARGSUSED */ |
static int |
static int |
xml_begin(struct md_mbuf *mbuf, const struct md_args *args) |
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 *vol) |
{ |
{ |
size_t res; |
size_t res; |
|
|
Line 54 xml_begin(struct md_mbuf *mbuf, const struct md_args * |
|
Line 61 xml_begin(struct md_mbuf *mbuf, const struct md_args * |
|
} |
} |
|
|
|
|
|
/* ARGSUSED */ |
static int |
static int |
xml_end(struct md_mbuf *mbuf, const struct md_args *args) |
xml_end(struct md_mbuf *mbuf, const struct md_args *args) |
{ |
{ |
Line 67 xml_end(struct md_mbuf *mbuf, const struct md_args *ar |
|
Line 75 xml_end(struct md_mbuf *mbuf, const struct md_args *ar |
|
} |
} |
|
|
|
|
|
/* ARGSUSED */ |
static ssize_t |
static ssize_t |
xml_begintag(struct md_mbuf *mbuf, const struct md_args *args, |
xml_begintag(struct md_mbuf *mbuf, const struct md_args *args, |
enum md_ns ns, int tok, |
enum md_ns ns, int tok, |
Line 74 xml_begintag(struct md_mbuf *mbuf, const struct md_arg |
|
Line 83 xml_begintag(struct md_mbuf *mbuf, const struct md_arg |
|
{ |
{ |
size_t res; |
size_t res; |
|
|
|
/* FIXME: doesn't print arguments! */ |
|
|
res = 0; |
res = 0; |
|
|
switch (ns) { |
switch (ns) { |
Line 97 xml_begintag(struct md_mbuf *mbuf, const struct md_arg |
|
Line 108 xml_begintag(struct md_mbuf *mbuf, const struct md_arg |
|
break; |
break; |
} |
} |
|
|
if ( ! ml_nputs(mbuf, toknames[tok], |
if ( ! ml_puts(mbuf, toknames[tok], &res)) |
strlen(toknames[tok]), &res)) |
|
return(-1); |
return(-1); |
|
|
return((ssize_t)res); |
return((ssize_t)res); |
} |
} |
|
|
|
|
|
/* ARGSUSED */ |
static ssize_t |
static ssize_t |
xml_endtag(struct md_mbuf *mbuf, const struct md_args *args, |
xml_endtag(struct md_mbuf *mbuf, const struct md_args *args, |
enum md_ns ns, int tok) |
enum md_ns ns, int tok) |
Line 134 xml_endtag(struct md_mbuf *mbuf, const struct md_args |
|
Line 145 xml_endtag(struct md_mbuf *mbuf, const struct md_args |
|
break; |
break; |
} |
} |
|
|
if ( ! ml_nputs(mbuf, toknames[tok], |
if ( ! ml_puts(mbuf, toknames[tok], &res)) |
strlen(toknames[tok]), &res)) |
|
return(-1); |
return(-1); |
|
|
return((ssize_t)res); |
return((ssize_t)res); |