diff options
author | 2014-08-08 15:26:28 +0000 | |
---|---|---|
committer | 2014-08-08 15:26:28 +0000 | |
commit | 8d5916b51305657eb92b61f1716bda0cbaa0fb45 (patch) | |
tree | 59ee6a0d04b436fa6cf4351ff6b52fc02f641abc /usr.bin/mandoc/read.c | |
parent | Remove two useless FATAL errors. (diff) | |
download | wireguard-openbsd-8d5916b51305657eb92b61f1716bda0cbaa0fb45.tar.xz wireguard-openbsd-8d5916b51305657eb92b61f1716bda0cbaa0fb45.zip |
Get rid of the useless FATAL error "child violates parent syntax".
When finding items outside lists, simply skip them and throw an ERROR.
Handle subsections before the first section instead of bailing out.
Diffstat (limited to 'usr.bin/mandoc/read.c')
-rw-r--r-- | usr.bin/mandoc/read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/read.c b/usr.bin/mandoc/read.c index c7d67756a51..bba7c9f3c8c 100644 --- a/usr.bin/mandoc/read.c +++ b/usr.bin/mandoc/read.c @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.50 2014/08/08 15:21:17 schwarze Exp $ */ +/* $Id: read.c,v 1.51 2014/08/08 15:26:28 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -177,6 +177,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "input stack limit exceeded, infinite loop?", "skipping bad character", "skipping unknown macro", + "skipping item outside list", "skipping column outside column list", "skipping end of block that is not open", "inserting missing end of block", @@ -198,7 +199,6 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "input too large", "column syntax is inconsistent", "NOT IMPLEMENTED: .Bd -file", - "child violates parent syntax", "argument count wrong, violates syntax", "NOT IMPLEMENTED: .so with absolute path or \"..\"", ".so request failed", |