From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s2JM9TmK028778 for ; Wed, 19 Mar 2014 18:09:29 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id s2JM9Tgp019926; Wed, 19 Mar 2014 18:09:29 -0400 (EDT) Date: Wed, 19 Mar 2014 18:09:29 -0400 (EDT) Message-Id: <201403192209.s2JM9Tgp019926@krisdoz.my.domain> 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: cope with mparse_alloc() interface change X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 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