From ce0ad98d5799eeab84796f4d6a7ed2450a21010b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 3 Jun 2010 13:44:36 +0000 Subject: 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. --- mandoc.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mandoc.h') diff --git a/mandoc.h b/mandoc.h index e3666c2f..ae9b2814 100644 --- a/mandoc.h +++ b/mandoc.h @@ -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 * @@ -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 */ -- cgit v1.2.3