-static int html_loadcss(struct md_mbuf *,
- const char *);
-static int html_alloc(void **);
-static void html_free(void *);
-static ssize_t html_endtag(struct md_mbuf *, void *,
- const struct md_args *,
- enum md_ns, int);
-static ssize_t html_beginstring(struct md_mbuf *,
- const struct md_args *,
- const char *, size_t);
-static ssize_t html_beginhttp(struct md_mbuf *,
- const struct md_args *,
- const char *, size_t);
-static ssize_t html_endstring(struct md_mbuf *,
- const struct md_args *,
- const char *, size_t);
-static ssize_t html_endhttp(struct md_mbuf *,
- const struct md_args *,
- const char *, size_t);
-static ssize_t html_begintag(struct md_mbuf *, void *,
- const struct md_args *,
- enum md_ns, int,
- const int *, const char **);
-static int html_begin(struct md_mbuf *,
- const struct md_args *,
- const struct tm *,
- const char *, const char *,
- enum roffmsec, enum roffvol);
-static int html_printargs(struct md_mbuf *, int,
- const char *, const int *,
- const char **, size_t *);
-static int html_end(struct md_mbuf *,
- const struct md_args *,
- const struct tm *,
- const char *, const char *,
- enum roffmsec, enum roffvol);
-static int html_blocktagname(struct md_mbuf *,
- const struct md_args *, int,
- struct htmlq *, const int *,
- const char **, size_t *);
-static int html_blocktagargs(struct md_mbuf *,
- const struct md_args *, int,
- const int *, const char **, size_t *);
-static int html_headtagname(struct md_mbuf *,
- const struct md_args *, int,
- struct htmlq *, const int *,
- const char **, size_t *);
-static int html_headtagargs(struct md_mbuf *,
- const struct md_args *, int,
- const int *, const char **, size_t *);
-static int html_bodytagname(struct md_mbuf *,
- const struct md_args *,
- int, struct htmlq *, const int *,
- const char **, size_t *);
-static int html_bodytagargs(struct md_mbuf *,
- const struct md_args *, int,
- const int *, const char **, size_t *);
-static int html_inlinetagname(struct md_mbuf *,
- const struct md_args *, int, size_t *);
-static int html_inlinetagargs(struct md_mbuf *,
- const struct md_args *, int,
- const int *, const char **, size_t *);
-static int html_Bl_bodytagname(struct md_mbuf *,
- struct htmlq *, const int *,
- const char **, size_t *);
-static int html_It_blocktagname(struct md_mbuf *,
- struct htmlq *, const int *,
- const char **, size_t *);
-static int html_It_headtagname(struct md_mbuf *,
- struct htmlq *, const int *,
- const char **, size_t *);
-static int html_It_bodytagname(struct md_mbuf *,
- struct htmlq *, const int *,
- const char **, size_t *);
-static int html_tputln(struct md_mbuf *,
- enum ml_scope, int, enum html_tag);
-static int html_aputln(struct md_mbuf *, enum ml_scope,
- int, enum html_tag,
- int, const struct html_pair *);
-
-
-/* ARGSUSED */
-static int
-html_It_headtagname(struct md_mbuf *mbuf, struct htmlq *q,
- const int *argc, const char **argv, size_t *res)
-{
- struct htmlnode *n;
- int i;
-
- for (n = q->last; n; n = n->parent)
- if (n->tok == ROFF_Bl)
- break;
-
- assert(n);
-
- /* LINTED */
- for (i = 0; ROFF_ARGMAX != n->argc[i] &&
- i < ROFF_MAXLINEARG; i++) {
- switch (n->argc[i]) {
- case (ROFF_Ohang):
- return(html_stput(mbuf, HTML_TAG_DIV, res));
- case (ROFF_Tag):
- /* FALLTHROUGH */
- case (ROFF_Column):
- return(html_stput(mbuf, HTML_TAG_TD, res));
- default:
- break;
- }
- }