diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-01-08 17:48:09 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-01-08 17:48:09 +0000 |
commit | 991e8ce56edd88e765887e8769dc2bfb9d7ae72e (patch) | |
tree | 96011b1282ce4792cdd546993fcf39ccb14807c3 /roff.h | |
parent | 299687341193ef2f4290c7f376f73f92c6948fbf (diff) | |
download | mandoc-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 'roff.h')
-rw-r--r-- | roff.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -93,7 +93,6 @@ struct roff_node { char *string; /* TEXT */ const struct tbl_span *span; /* TBL */ const struct eqn *eqn; /* EQN */ - int nchild; /* Number of child nodes. */ int line; /* Input file line number. */ int pos; /* Input file column number. */ int tok; /* Request or macro ID. */ |