aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-06 17:26:04 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-06 17:26:04 +0000
commitc30903de74e443fffffd9d160ef6911d2d434468 (patch)
tree3ef915c858f0f89cb3b1348940352e114086b827 /read.c
parent2da973e1cbee8826e4ccfd50d7f8ab5517bd9006 (diff)
downloadmandoc-c30903de74e443fffffd9d160ef6911d2d434468.tar.gz
mandoc-c30903de74e443fffffd9d160ef6911d2d434468.tar.zst
mandoc-c30903de74e443fffffd9d160ef6911d2d434468.zip
Using .Nd only makes sense in the NAME section.
Warn if that macro occurs elsewhere. Triggered by a question from Dag-Erling Smoergrav <des @ FreeBSD>.
Diffstat (limited to 'read.c')
-rw-r--r--read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/read.c b/read.c
index 3e5d4116..b4718e51 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.161 2017/02/18 17:29:28 schwarze Exp $ */
+/* $Id: read.c,v 1.162 2017/03/06 17:26:05 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -113,6 +113,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"bad NAME section content",
"missing comma before name",
"missing description line, using \"\"",
+ "description line outside NAME section",
"sections out of conventional order",
"duplicate section title",
"unexpected section",