From: schwarze@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: use the new function man_validate() here, too
Date: Thu, 22 Oct 2015 17:07:13 -0500 (EST) [thread overview]
Message-ID: <16138716420451614608.enqueue@fantadrom.bsd.lv> (raw)
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
reply other threads:[~2015-10-22 22:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16138716420451614608.enqueue@fantadrom.bsd.lv \
--to=schwarze@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).