From 07dfb14a298c0d0ed7988ffc395a5402873c61b2 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. --- libmdoc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libmdoc.h') diff --git a/libmdoc.h b/libmdoc.h index 7406f40a..11f1a8a5 100644 --- a/libmdoc.h +++ b/libmdoc.h @@ -118,8 +118,7 @@ const char *mdoc_a2st(const char *); const char *mdoc_a2arch(const char *); const char *mdoc_a2vol(const char *); const char *mdoc_a2msec(const char *); -int mdoc_valid_pre(struct mdoc *, - const struct mdoc_node *); +int mdoc_valid_pre(struct mdoc *, struct mdoc_node *); int mdoc_valid_post(struct mdoc *); int mdoc_action_pre(struct mdoc *, struct mdoc_node *); -- cgit