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 r574pRFm027959 for ; Fri, 7 Jun 2013 00:51:27 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id r574pQLH031521; Fri, 7 Jun 2013 00:51:26 -0400 (EDT) Date: Fri, 7 Jun 2013 00:51:26 -0400 (EDT) Message-Id: <201306070451.r574pQLH031521@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: In .Xr database entries, mention the manual section again; the X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- In .Xr database entries, mention the manual section again; the section was dropped when switching from db to sqlite. Use the customary format foo(N). 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.66 retrieving revision 1.67 diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.66 -r1.67 --- mandocdb.c +++ mandocdb.c @@ -1446,12 +1446,23 @@ parse_mdoc_St(struct of *of, const struc static int parse_mdoc_Xr(struct of *of, const struct mdoc_node *n) { + char *cp; if (NULL == (n = n->child)) return(0); - putkey(of, n->string, TYPE_Xr); - return(1); + if (NULL == n->next) { + putkey(of, n->string, TYPE_Xr); + return(0); + } + + if (-1 == asprintf(&cp, "%s(%s)", n->string, n->next->string)) { + perror(NULL); + exit((int)MANDOCLEVEL_SYSERR); + } + putkey(of, cp, TYPE_Xr); + free(cp); + return(0); } static int -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv