From: schwarze@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Stop parsing man(7) input when we found all we were searching
Date: Thu, 26 Dec 2013 14:02:04 -0500 (EST) [thread overview]
Message-ID: <201312261902.rBQJ24fE021227@krisdoz.my.domain> (raw)
Log Message:
-----------
Stop parsing man(7) input when we found all we were searching for,
such that we don't trigger an assertion on a duplicate NAME section.
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.76
retrieving revision 1.77
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.76 -r1.77
--- mandocdb.c
+++ mandocdb.c
@@ -1366,8 +1366,11 @@ parse_man(struct of *of, const struct ma
}
}
- for (n = n->child; n; n = n->next)
+ for (n = n->child; n; n = n->next) {
+ if (NULL != of->desc)
+ break;
parse_man(of, n);
+ }
}
static void
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
reply other threads:[~2013-12-26 19:02 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=201312261902.rBQJ24fE021227@krisdoz.my.domain \
--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).