aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmdoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-04 02:53:51 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-04 02:53:51 +0000
commitb8c7224b007d9673c637669ba26ff55f38effe12 (patch)
tree27d1ed6e0ae499cceea05feaef09d6f683d86fdd /libmdoc.h
parent820b4d56427ff6a0f1e3399ac7e4aea447dd5c20 (diff)
downloadmandoc-b8c7224b007d9673c637669ba26ff55f38effe12.tar.gz
mandoc-b8c7224b007d9673c637669ba26ff55f38effe12.tar.zst
mandoc-b8c7224b007d9673c637669ba26ff55f38effe12.zip
Clean up the validation of .Pp, .PP, .sp, and .br. Make sure all
combinations are handled, and are handled in a systematic manner. This resolves some erratic duplicate handling, handles a number of missing cases, and improves diagnostics in various respects. Move validation of .br and .sp to the roff validation module rather than doing that twice in the mdoc and man validation modules. Move the node relinking function to the roff library where it belongs. In validation functions, only look at the node itself, at previous nodes, and at descendants, not at following nodes or ancestors, such that only nodes are inspected which are already validated.
Diffstat (limited to 'libmdoc.h')
-rw-r--r--libmdoc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libmdoc.h b/libmdoc.h
index 9545d11f..a605889d 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmdoc.h,v 1.113 2018/08/17 20:33:37 schwarze Exp $ */
+/* $Id: libmdoc.h,v 1.114 2018/12/04 02:53:51 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -69,7 +69,6 @@ void mdoc_tail_alloc(struct roff_man *, int, int,
enum roff_tok);
struct roff_node *mdoc_endbody_alloc(struct roff_man *, int, int,
enum roff_tok, struct roff_node *);
-void mdoc_node_relink(struct roff_man *, struct roff_node *);
void mdoc_node_validate(struct roff_man *);
void mdoc_state(struct roff_man *, struct roff_node *);
void mdoc_state_reset(struct roff_man *);