summaryrefslogtreecommitdiffstats
path: root/mandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-03 13:44:36 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-03 13:44:36 +0000
commit07dfb14a298c0d0ed7988ffc395a5402873c61b2 (patch)
tree26859b601b8f0fc89617847b6dbcaf89de68c07a /mandoc.h
parenta101b1f81e1c47960a700d0827125c765f47544f (diff)
downloadmandoc-07dfb14a298c0d0ed7988ffc395a5402873c61b2.tar.gz
Consolidated list processing to a single loop in mdoc_validate.c. This
relieves having to repeat running over the argument list in mdoc_action.c and mdoc_validate.c. Default to LIST_item for type-less lists (groff technically doesn't do this: it just ignores the `It' lines altogether). Make MANDOC_LISTTYPE be a recoverable error.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/mandoc.h b/mandoc.h
index 79776202..82a7c020 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -73,6 +73,7 @@ enum mandocerr {
MANDOCERR_NOBODY, /* macro requires body argument(s) */
MANDOCERR_NOARGV, /* macro requires argument(s) */
MANDOCERR_NOTITLE, /* no title in document */
+ MANDOCERR_LISTTYPE, /* missing list type */
MANDOCERR_ARGSLOST, /* line argument(s) will be lost */
MANDOCERR_BODYLOST, /* body argument(s) will be lost */
#define MANDOCERR_ERROR MANDOCERR_BODYLOST
@@ -83,8 +84,6 @@ enum mandocerr {
/* FIXME: this should be a MANDOCERR_ERROR */
MANDOCERR_DISPTYPE, /* missing display type */
/* FIXME: this should be a MANDOCERR_ERROR */
- MANDOCERR_LISTTYPE, /* missing list type */
- /* FIXME: this should be a MANDOCERR_ERROR */
MANDOCERR_NESTEDDISP, /* displays may not be nested */
MANDOCERR_SYNTNOSCOPE, /* request scope close w/none open */
MANDOCERR_SYNTSCOPE, /* scope broken, syntax violated */