From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 3aa0809b; for ; Thu, 22 Oct 2015 17:07:13 -0500 (EST) Date: Thu, 22 Oct 2015 17:07:13 -0500 (EST) Message-Id: <16138716420451614608.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: use the new function man_validate() here, too X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- use the new function man_validate() here, too Modified Files: -------------- mdocml: Makefile.depend cgi.c demandoc.c mandocdb.c Revision Data ------------- Index: mandocdb.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mandocdb.c,v retrieving revision 1.204 retrieving revision 1.205 diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.204 -r1.205 --- mandocdb.c +++ mandocdb.c @@ -1176,6 +1176,7 @@ mpages_merge(struct mparse *mp) mpage->arch == NULL ? "" : mpage->arch); mpage->title = mandoc_strdup(man->meta.title); } else if (man != NULL && man->macroset == MACROSET_MAN) { + man_validate(man); mpage->form = FORM_SRC; mpage->sec = mandoc_strdup(man->meta.msec); mpage->arch = mandoc_strdup(mlink->arch); Index: Makefile.depend =================================================================== RCS file: /home/cvs/mdocml/mdocml/Makefile.depend,v retrieving revision 1.18 retrieving revision 1.19 diff -LMakefile.depend -LMakefile.depend -u -p -r1.18 -r1.19 --- Makefile.depend +++ Makefile.depend @@ -1,5 +1,5 @@ att.o: att.c config.h roff.h mdoc.h libmdoc.h -cgi.o: cgi.c config.h mandoc_aux.h mandoc.h roff.h mdoc.h main.h manconf.h mansearch.h cgi.h +cgi.o: cgi.c config.h mandoc_aux.h mandoc.h roff.h mdoc.h man.h main.h manconf.h mansearch.h cgi.h chars.o: chars.c config.h mandoc.h mandoc_aux.h mandoc_ohash.h compat_ohash.h libmandoc.h compat_err.o: compat_err.c config.h compat_fgetln.o: compat_fgetln.c config.h Index: demandoc.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/demandoc.c,v retrieving revision 1.23 retrieving revision 1.24 diff -Ldemandoc.c -Ldemandoc.c -u -p -r1.23 -r1.24 --- demandoc.c +++ demandoc.c @@ -122,8 +122,10 @@ pmandoc(struct mparse *mp, int fd, const if (man->macroset == MACROSET_MDOC) { mdoc_validate(man); pmdoc(man->first->child, &line, &col, list); - } else + } else { + man_validate(man); pman(man->first->child, &line, &col, list); + } if ( ! list) putchar('\n'); Index: cgi.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/cgi.c,v retrieving revision 1.111 retrieving revision 1.112 diff -Lcgi.c -Lcgi.c -u -p -r1.111 -r1.112 --- cgi.c +++ cgi.c @@ -34,6 +34,7 @@ #include "mandoc.h" #include "roff.h" #include "mdoc.h" +#include "man.h" #include "main.h" #include "manconf.h" #include "mansearch.h" @@ -860,8 +861,10 @@ format(const struct req *req, const char if (man->macroset == MACROSET_MDOC) { mdoc_validate(man); html_mdoc(vp, man); - } else + } else { + man_validate(man); html_man(vp, man); + } html_free(vp); mparse_free(mp); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv