From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 977459f3; for ; Thu, 4 Dec 2014 13:31:51 -0500 (EST) Date: Thu, 4 Dec 2014 13:31:51 -0500 (EST) Message-Id: <11929248421352662177.enqueue@fantadrom.bsd.lv> 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 the SYNOPSIS, add .Fo and first .Fn arguments to the names X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- in the SYNOPSIS, add .Fo and first .Fn arguments to the names table Modified Files: -------------- mdocml: mandocdb.c Revision Data ------------- Index: mandocdb.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mandocdb.c,v retrieving revision 1.172 retrieving revision 1.173 diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.172 -r1.173 --- mandocdb.c +++ mandocdb.c @@ -165,6 +165,8 @@ static int parse_mdoc_Fd(struct mpage * const struct mdoc_node *); static int parse_mdoc_Fn(struct mpage *, const struct mdoc_meta *, const struct mdoc_node *); +static int parse_mdoc_Fo(struct mpage *, const struct mdoc_meta *, + const struct mdoc_node *); static int parse_mdoc_Nd(struct mpage *, const struct mdoc_meta *, const struct mdoc_node *); static int parse_mdoc_Nm(struct mpage *, const struct mdoc_meta *, @@ -300,7 +302,7 @@ static const struct mdoc_handler mdocs[M { NULL, 0 }, /* Ux */ { NULL, 0 }, /* Xc */ { NULL, 0 }, /* Xo */ - { parse_mdoc_head, 0 }, /* Fo */ + { parse_mdoc_Fo, 0 }, /* Fo */ { NULL, 0 }, /* Fc */ { NULL, 0 }, /* Oo */ { NULL, 0 }, /* Oc */ @@ -1651,6 +1653,8 @@ parse_mdoc_Fn(struct mpage *mpage, const cp++; putkey(mpage, cp, TYPE_Fn); + if (n->sec == SEC_SYNOPSIS) + putkey(mpage, cp, NAME_SYN); if (n->string < cp) putkeys(mpage, n->string, cp - n->string, TYPE_Ft); @@ -1659,6 +1663,17 @@ parse_mdoc_Fn(struct mpage *mpage, const if (MDOC_TEXT == n->type) putkey(mpage, n->string, TYPE_Fa); + return(0); +} + +static int +parse_mdoc_Fo(struct mpage *mpage, const struct mdoc_meta *meta, + const struct mdoc_node *n) +{ + + putmdockey(mpage, n->child, TYPE_Fn); + if (n->sec == SEC_SYNOPSIS) + putmdockey(mpage, n->child, NAME_SYN); return(0); } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv