* mdocml: cope with mparse_alloc() interface change
@ 2014-03-19 22:09 schwarze
0 siblings, 0 replies; 3+ messages in thread
From: schwarze @ 2014-03-19 22:09 UTC (permalink / raw)
To: source
Log Message:
-----------
cope with mparse_alloc() interface change
Tags:
----
VERSION_1_12
Modified Files:
--------------
mdocml:
mandocdb.c
Revision Data
-------------
Index: mandocdb.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandocdb.c,v
retrieving revision 1.49.2.11
retrieving revision 1.49.2.12
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.49.2.11 -r1.49.2.12
--- mandocdb.c
+++ mandocdb.c
@@ -288,7 +288,7 @@ static const struct mdoc_handler mdocs[M
};
static const char *progname;
-static int quick; /* abort the parse early */
+static int mparse_options; /* abort the parse early */
static int use_all; /* Use all directories and files. */
static int verb; /* Output verbosity level. */
static int warnings; /* Potential problems in manuals. */
@@ -329,6 +329,7 @@ main(int argc, char *argv[])
hash = NULL;
op = OP_DEFAULT;
dir = NULL;
+ mparse_options = MPARSE_SO;
while (-1 != (ch = getopt(argc, argv, "aC:d:Qtu:vW")))
switch (ch) {
@@ -354,7 +355,7 @@ main(int argc, char *argv[])
op = OP_UPDATE;
break;
case ('Q'):
- quick = 1;
+ mparse_options |= MPARSE_QUICK;
break;
case ('t'):
dup2(STDOUT_FILENO, STDERR_FILENO);
@@ -398,8 +399,7 @@ main(int argc, char *argv[])
info.lorder = 4321;
info.flags = R_DUP;
- mp = mparse_alloc(MPARSE_AUTO,
- MANDOCLEVEL_FATAL, NULL, NULL, quick);
+ mp = mparse_alloc(mparse_options, MANDOCLEVEL_FATAL, NULL, NULL);
memset(&buf, 0, sizeof(struct buf));
memset(&dbuf, 0, sizeof(struct buf));
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] 3+ messages in thread
* mdocml: cope with mparse_alloc() interface change
@ 2014-03-19 22:05 schwarze
0 siblings, 0 replies; 3+ messages in thread
From: schwarze @ 2014-03-19 22:05 UTC (permalink / raw)
To: source
Log Message:
-----------
cope with mparse_alloc() interface change
Modified Files:
--------------
mdocml:
cgi.c
demandoc.c
Revision Data
-------------
Index: demandoc.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/demandoc.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -Ldemandoc.c -Ldemandoc.c -u -p -r1.8 -r1.9
--- demandoc.c
+++ demandoc.c
@@ -76,7 +76,7 @@ main(int argc, char *argv[])
argc -= optind;
argv += optind;
- mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL, 0);
+ mp = mparse_alloc(MPARSE_SO, MANDOCLEVEL_FATAL, NULL, NULL);
assert(mp);
if (0 == argc)
Index: cgi.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/cgi.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -Lcgi.c -Lcgi.c -u -p -r1.47 -r1.48
--- cgi.c
+++ cgi.c
@@ -739,7 +739,7 @@ format(const struct req *req, const char
return;
}
- mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL, 0);
+ mp = mparse_alloc(MPARSE_SO, MANDOCLEVEL_FATAL, NULL, NULL);
rc = mparse_readfd(mp, fd, file);
close(fd);
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] 3+ messages in thread
* mdocml: Cope with mparse_alloc() interface change.
@ 2014-01-05 20:41 schwarze
0 siblings, 0 replies; 3+ messages in thread
From: schwarze @ 2014-01-05 20:41 UTC (permalink / raw)
To: source
Log Message:
-----------
Cope with mparse_alloc() interface change.
Modified Files:
--------------
mdocml:
demandoc.c
cgi.c
Revision Data
-------------
Index: cgi.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/cgi.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -Lcgi.c -Lcgi.c -u -p -r1.46 -r1.47
--- cgi.c
+++ cgi.c
@@ -739,7 +739,7 @@ format(const struct req *req, const char
return;
}
- mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL, NULL);
+ mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL, 0);
rc = mparse_readfd(mp, fd, file);
close(fd);
Index: demandoc.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/demandoc.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -Ldemandoc.c -Ldemandoc.c -u -p -r1.7 -r1.8
--- demandoc.c
+++ demandoc.c
@@ -76,7 +76,7 @@ main(int argc, char *argv[])
argc -= optind;
argv += optind;
- mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL, NULL);
+ mp = mparse_alloc(MPARSE_AUTO, MANDOCLEVEL_FATAL, NULL, NULL, 0);
assert(mp);
if (0 == argc)
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-19 22:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-19 22:09 mdocml: cope with mparse_alloc() interface change schwarze
-- strict thread matches above, loose matches on Subject: below --
2014-03-19 22:05 schwarze
2014-01-05 20:41 mdocml: Cope " 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).