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 /libmdoc.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 'libmdoc.h')
-rw-r--r-- | libmdoc.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: libmdoc.h,v 1.51 2010/05/31 15:42:09 kristaps Exp $ */ +/* $Id: libmdoc.h,v 1.52 2010/06/03 13:44:36 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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 *); |