summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-03-31 01:05:32 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-03-31 01:05:32 +0000
commit58fb8b7dc007dbb0556480e6fe27825c26dc52bd (patch)
tree5f84222f0fdfc777e2c726e085e9d5ee41b3f3fe /mdoc_validate.c
parent31f620c338e4694ae72d96330057b88f2e65f394 (diff)
downloadmandoc-58fb8b7dc007dbb0556480e6fe27825c26dc52bd.tar.gz
Support the CONTEXT section for kernel manual pages found in Solaris and
OpenBSD manuals. It describes which contexts you can call functions in. from dlg@, ok jmc@ deraadt@
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index e659f4d4..6f78f7b2 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -332,6 +332,7 @@ static const char * const secnames[SEC__MAX] = {
"LIBRARY",
"SYNOPSIS",
"DESCRIPTION",
+ "CONTEXT",
"IMPLEMENTATION NOTES",
"RETURN VALUES",
"ENVIRONMENT",
@@ -2040,6 +2041,8 @@ post_sh_head(POST_ARGS)
break;
if (*mdoc->meta.msec == '3')
break;
+ /* FALLTHROUGH */
+ case (SEC_CONTEXT):
if (*mdoc->meta.msec == '9')
break;
mandoc_msg(MANDOCERR_SECMSEC, mdoc->parse,