summaryrefslogtreecommitdiffstats
path: root/mandoc.3
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-01-08 17:48:09 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-01-08 17:48:09 +0000
commit991e8ce56edd88e765887e8769dc2bfb9d7ae72e (patch)
tree96011b1282ce4792cdd546993fcf39ccb14807c3 /mandoc.3
parent299687341193ef2f4290c7f376f73f92c6948fbf (diff)
downloadmandoc-991e8ce56edd88e765887e8769dc2bfb9d7ae72e.tar.gz
Delete the redundant "nchild" member of struct roff_node, replacing
most uses by one, a few by two pointer checks, and only one by a tiny loop - not only making data smaller, but code shorter as well. This gets rid of an implicit invariant that confused both static analysis tools and human auditors. No functional change.
Diffstat (limited to 'mandoc.3')
-rw-r--r--mandoc.34
1 files changed, 2 insertions, 2 deletions
diff --git a/mandoc.3 b/mandoc.3
index ff985b56..30135a26 100644
--- a/mandoc.3
+++ b/mandoc.3
@@ -1,7 +1,7 @@
.\" $Id$
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
-.\" Copyright (c) 2010, 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
+.\" Copyright (c) 2010-2016 Ingo Schwarze <schwarze@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
@@ -557,7 +557,7 @@ and
fields), its position in the tree (the
.Va parent ,
.Va child ,
-.Va nchild ,
+.Va last ,
.Va next
and
.Va prev