From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Added `Er' in ERRORS scan to makewhatis.
Date: Fri, 1 Jul 2011 09:46:40 -0400 (EDT) [thread overview]
Message-ID: <201107011346.p61DkeMv027204@krisdoz.my.domain> (raw)
Log Message:
-----------
Added `Er' in ERRORS scan to makewhatis.
Modified Files:
--------------
mdocml:
makewhatis.1
makewhatis.c
Revision Data
-------------
Index: makewhatis.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/makewhatis.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -Lmakewhatis.c -Lmakewhatis.c -u -p -r1.15 -r1.16
--- makewhatis.c
+++ makewhatis.c
@@ -57,6 +57,7 @@
#define TYPE_XREF 0x200
#define TYPE_PATH 0x400
#define TYPE_ENV 0x800
+#define TYPE_ERR 0x1000
/* Buffer for storing growable data. */
@@ -87,6 +88,7 @@ static int pman_node(MAN_ARGS);
static void pmdoc_node(MDOC_ARGS);
static void pmdoc_An(MDOC_ARGS);
static void pmdoc_Cd(MDOC_ARGS);
+static void pmdoc_Er(MDOC_ARGS);
static void pmdoc_Ev(MDOC_ARGS);
static void pmdoc_Fd(MDOC_ARGS);
static void pmdoc_In(MDOC_ARGS);
@@ -123,7 +125,7 @@ static const pmdoc_nf mdocs[MDOC_MAX]
pmdoc_Cd, /* Cd */
NULL, /* Cm */
NULL, /* Dv */
- NULL, /* Er */
+ pmdoc_Er, /* Er */
pmdoc_Ev, /* Ev */
NULL, /* Ex */
NULL, /* Fa */
@@ -762,6 +764,18 @@ pmdoc_Nd(MDOC_ARGS)
buf_appendmdoc(buf, n->child, 0);
hash_put(hash, buf, TYPE_DESC);
+}
+
+/* ARGSUSED */
+static void
+pmdoc_Er(MDOC_ARGS)
+{
+
+ if (SEC_ERRORS != n->sec)
+ return;
+
+ buf_appendmdoc(buf, n->child, 0);
+ hash_put(hash, buf, TYPE_ERR);
}
/* ARGSUSED */
Index: makewhatis.1
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/makewhatis.1,v
retrieving revision 1.9
retrieving revision 1.10
diff -Lmakewhatis.1 -Lmakewhatis.1 -u -p -r1.9 -r1.10
--- makewhatis.1
+++ makewhatis.1
@@ -122,6 +122,8 @@ If the link has no section, the period t
Path reference as given in the FILES section.
.It Li 0x800
Environment variable as given in the ENVIRONMENT section.
+.It Li 0x1000
+Error codes as given in the ERRORS section.
.El
.Pp
The last four bytes are a host-ordered record number within the
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
reply other threads:[~2011-07-01 13:46 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=201107011346.p61DkeMv027204@krisdoz.my.domain \
--to=kristaps@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).