diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-03 13:44:36 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-03 13:44:36 +0000 |
commit | ce0ad98d5799eeab84796f4d6a7ed2450a21010b (patch) | |
tree | 2084a5121b42f0afe6f85c813f72a7b9b1d85b87 /mandoc.h | |
parent | 68b68248d4c207e5fb883e570a5a285fc0385636 (diff) | |
download | mandoc-ce0ad98d5799eeab84796f4d6a7ed2450a21010b.tar.gz mandoc-ce0ad98d5799eeab84796f4d6a7ed2450a21010b.tar.zst mandoc-ce0ad98d5799eeab84796f4d6a7ed2450a21010b.zip |
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.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.9 2010/06/01 14:54:37 kristaps Exp $ */ +/* $Id: mandoc.h,v 1.10 2010/06/03 13:44:36 kristaps Exp $ */ /* * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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 */ |