diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-02 11:43:20 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-02 11:43:20 +0000 |
commit | 494bb76472a464f4c16c06824742893732fe349e (patch) | |
tree | 36741709a3ab1915d5067f740e44aceec747e304 /read.c | |
parent | 6c161f30c252bf65b27ce98eb9c96681bb45f27e (diff) | |
download | mandoc-494bb76472a464f4c16c06824742893732fe349e.tar.gz mandoc-494bb76472a464f4c16c06824742893732fe349e.tar.zst mandoc-494bb76472a464f4c16c06824742893732fe349e.zip |
Clean up warnings related to macros and nesting.
* Hierarchical naming of enum mandocerr items.
* Improve the wording to make it comprehensible.
* Mention the offending macro.
* Garbage collect one chunk of ancient, long unreachable code.
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.55 2014/07/02 03:48:07 schwarze Exp $ */ +/* $Id: read.c,v 1.56 2014/07/02 11:43:20 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -122,7 +122,8 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "blocks badly nested", "child violates parent syntax", "nested displays are not portable", - "already in literal mode", + "fill mode already enabled, skipping .fi", + "fill mode already disabled, skipping .nf", "line scope broken", /* related to missing macro arguments */ @@ -132,7 +133,6 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "list type must come first", "tag lists require a width argument", "missing font type", - "skipping end of block that is not open", /* related to bad macro arguments */ "skipping argument", |