aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-15 23:39:40 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-15 23:39:40 +0000
commit7aa6a9a39d16b4098093e9ce72a8b4c914a174a7 (patch)
tree617814a1e61bb939e9ae01e0d093e4f481d2d95f /mdoc.h
parent017442d6e6ebefe712db5f1122c259fdd7c3e7c5 (diff)
downloadmandoc-7aa6a9a39d16b4098093e9ce72a8b4c914a174a7.tar.gz
mandoc-7aa6a9a39d16b4098093e9ce72a8b4c914a174a7.tar.zst
mandoc-7aa6a9a39d16b4098093e9ce72a8b4c914a174a7.zip
Add a "last child" member of struct mdoc_node.
Remove `Pp' or `Lp' if it is the FIRST or LAST child of an `Sh' or `Sh' body. Make "skipping paragraph" be an error, not a warning, as information (an invoked macro) is ignored.
Diffstat (limited to 'mdoc.h')
-rw-r--r--mdoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc.h b/mdoc.h
index 0de8fe59..675e8dab 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -1,4 +1,4 @@
-/* $Id: mdoc.h,v 1.106 2010/12/15 14:52:16 kristaps Exp $ */
+/* $Id: mdoc.h,v 1.107 2010/12/15 23:39:40 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -371,6 +371,7 @@ union mdoc_data {
struct mdoc_node {
struct mdoc_node *parent; /* parent AST node */
struct mdoc_node *child; /* first child AST node */
+ struct mdoc_node *last; /* last child AST node */
struct mdoc_node *next; /* sibling AST node */
struct mdoc_node *prev; /* prior sibling AST node */
int nchild; /* number children */