diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-08 12:46:28 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-08 12:46:28 +0000 |
commit | 590484168e25f0faf46db9b6df44c27b50ffeb50 (patch) | |
tree | 2710f24f8b76175801d4fb7b79499f2425c13e0d /html.c | |
parent | 1dc52a2bad8738c62ac5bc9689c09600eb7b1269 (diff) | |
download | mandoc-590484168e25f0faf46db9b6df44c27b50ffeb50.tar.gz |
Added warnings for using macros in the wrong sections.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -75,7 +75,7 @@ static int html_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 html_printargs(struct md_mbuf *, int, const char *, const int *, const char **, size_t *); @@ -361,7 +361,7 @@ out: static int html_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) { const char *preamble, *css, *trail; @@ -389,7 +389,7 @@ html_begin(struct md_mbuf *mbuf, const struct md_args *args, res = 0; (void)snprintf(buf, sizeof(buf) - 1, - preamble, title, section); + preamble, title, ml_section(section)); if ( ! ml_puts(mbuf, buf, &res)) return(0); |