summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mandoc.h
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-08-08 15:26:28 +0000
committerschwarze <schwarze@openbsd.org>2014-08-08 15:26:28 +0000
commit8d5916b51305657eb92b61f1716bda0cbaa0fb45 (patch)
tree59ee6a0d04b436fa6cf4351ff6b52fc02f641abc /usr.bin/mandoc/mandoc.h
parentRemove two useless FATAL errors. (diff)
downloadwireguard-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/mandoc.h')
-rw-r--r--usr.bin/mandoc/mandoc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mandoc.h b/usr.bin/mandoc/mandoc.h
index 8b0ea9bddf1..3763a33cb0b 100644
--- a/usr.bin/mandoc/mandoc.h
+++ b/usr.bin/mandoc/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.89 2014/08/08 15:21:17 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.90 2014/08/08 15:26:28 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -141,6 +141,7 @@ enum mandocerr {
MANDOCERR_ROFFLOOP, /* input stack limit exceeded, infinite loop? */
MANDOCERR_BADCHAR, /* skipping bad character */
MANDOCERR_MACRO, /* skipping unknown macro */
+ MANDOCERR_IT_STRAY, /* skipping item outside list */
MANDOCERR_TA_STRAY, /* skipping column outside column list */
MANDOCERR_BLK_NOTOPEN, /* skipping end of block that is not open */
MANDOCERR_BLK_BROKEN, /* inserting missing end of block: macro ... */
@@ -162,7 +163,6 @@ enum mandocerr {
MANDOCERR_TOOLARGE, /* input too large */
MANDOCERR_COLUMNS, /* column syntax is inconsistent */
MANDOCERR_BADDISP, /* NOT IMPLEMENTED: .Bd -file */
- MANDOCERR_SYNTCHILD, /* child violates parent syntax */
MANDOCERR_SYNTARGCOUNT, /* argument count wrong, violates syntax */
MANDOCERR_SO_PATH, /* NOT IMPLEMENTED: .so with absolute path or ".." */
MANDOCERR_SO_FAIL, /* .so request failed */