aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-05 15:37:30 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-05 15:37:30 +0000
commitb35e18840fdc536364e4d41b021fe53af309bb59 (patch)
treee3a70878bf36aefdb4f8f568eb3a38a112e3dbda /mandoc.h
parent41593da964a8b2d9a3a505a574df65af794a486c (diff)
downloadmandoc-b35e18840fdc536364e4d41b021fe53af309bb59.tar.gz
mandoc-b35e18840fdc536364e4d41b021fe53af309bb59.tar.zst
mandoc-b35e18840fdc536364e4d41b021fe53af309bb59.zip
Merge schwarze@'s changes allowing nested displays. Tweak the patch by
making sure output doesn't add a superfluous newline with the nested displays. Also add a COMPATIBILITY note. Rename a macro (DATESIZ) to be in line with OpenBSD (DATESIZE).
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/mandoc.h b/mandoc.h
index 207dbe2b..b2a84ac1 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.26 2010/12/01 16:54:25 kristaps Exp $ */
+/* $Id: mandoc.h,v 1.27 2010/12/05 15:37:30 kristaps Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -69,6 +69,7 @@ enum mandocerr {
MANDOCERR_NAMESECFIRST, /* NAME section must come first */
MANDOCERR_BADBOOL, /* bad Boolean value */
MANDOCERR_CHILD, /* child violates parent syntax */
+ MANDOCERR_NESTEDDISP, /* displays may not be nested */
MANDOCERR_BADATT, /* bad AT&T symbol */
MANDOCERR_BADSTANDARD, /* bad standard */
MANDOCERR_LISTREP, /* list type repeated */
@@ -106,8 +107,6 @@ enum mandocerr {
MANDOCERR_FATAL, /* ===== start of fatal errors ===== */
MANDOCERR_COLUMNS, /* column syntax is inconsistent */
- /* FIXME: this should be a MANDOCERR_ERROR */
- MANDOCERR_NESTEDDISP, /* displays may not be nested */
MANDOCERR_BADDISP, /* unsupported display type */
MANDOCERR_SCOPEFATAL, /* blocks badly nested */
MANDOCERR_SYNTNOSCOPE, /* no scope to rewind: syntax violated */