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 | e691ea8079e5036d8f6379df2ab72e5f64e05874 (patch) | |
tree | 7cd31d688f722e40ebd24d4714cf58d83ecaaeb3 /xml.c | |
parent | 456172f11ec3868c84c8dc3c56f0b551e3959776 (diff) | |
download | mandoc-e691ea8079e5036d8f6379df2ab72e5f64e05874.tar.gz mandoc-e691ea8079e5036d8f6379df2ab72e5f64e05874.tar.zst mandoc-e691ea8079e5036d8f6379df2ab72e5f64e05874.zip |
Added warnings for using macros in the wrong sections.
Diffstat (limited to 'xml.c')
-rw-r--r-- | xml.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: xml.c,v 1.19 2008/12/07 23:44:19 kristaps Exp $ */ +/* $Id: xml.c,v 1.20 2008/12/08 12:46:28 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -44,7 +44,7 @@ static int xml_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 xml_end(struct md_mbuf *, const struct md_args *); static ssize_t xml_printtagname(struct md_mbuf *, @@ -123,7 +123,7 @@ xml_printtagname(struct md_mbuf *mbuf, enum md_ns ns, int tok) static int 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 *title, enum roffmsec section, const char *vol) { @@ -199,6 +199,7 @@ int xml_alloc(void **p) { + *p = NULL; return(1); } |