aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-01 22:37:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-01 22:37:15 +0000
commitc9939e9971e983553a2f3f786d124427b6d4e16e (patch)
treef4e530c43b8a7079a018da09a4fd5240a264ba3f /mdoc.c
parent355ab2dc6a1499cee84317c7fbe304a5c006c3d1 (diff)
downloadmandoc-c9939e9971e983553a2f3f786d124427b6d4e16e.tar.gz
mandoc-c9939e9971e983553a2f3f786d124427b6d4e16e.tar.zst
mandoc-c9939e9971e983553a2f3f786d124427b6d4e16e.zip
Clean up the warnings related to document structure.
* Hierarchical naming of the related enum mandocerr items. * Mention the offending macro, section title, or string. While here, improve some wordings: * Descriptive instead of imperative style. * Uniform style for "missing" and "skipping". * Where applicable, mention the fallback used.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc.c b/mdoc.c
index 38ed0612..04e9d972 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.215 2014/06/20 17:24:00 schwarze Exp $ */
+/* $Id: mdoc.c,v 1.216 2014/07/01 22:37:15 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -35,7 +35,7 @@
#include "libmdoc.h"
#include "libmandoc.h"
-const char *const __mdoc_macronames[MDOC_MAX] = {
+const char *const __mdoc_macronames[MDOC_MAX + 1] = {
"Ap", "Dd", "Dt", "Os",
"Sh", "Ss", "Pp", "D1",
"Dl", "Bd", "Ed", "Bl",
@@ -66,7 +66,7 @@ const char *const __mdoc_macronames[MDOC_MAX] = {
"Lk", "Mt", "Brq", "Bro",
"Brc", "%C", "Es", "En",
"Dx", "%Q", "br", "sp",
- "%U", "Ta", "ll",
+ "%U", "Ta", "ll", "text",
};
const char *const __mdoc_argnames[MDOC_ARG_MAX] = {