* mdocml: use the new function man_validate() here, too
@ 2015-10-22 22:07 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-10-22 22:07 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-22 22:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-22 22:07 mdocml: use the new function man_validate() here, too schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).