version 1.366, 2018/12/30 00:49:55 |
version 1.367, 2018/12/31 04:55:47 |
Line 288 static const char * const secnames[SEC__MAX] = { |
|
Line 288 static const char * const secnames[SEC__MAX] = { |
|
|
|
/* Validate the subtree rooted at mdoc->last. */ |
/* Validate the subtree rooted at mdoc->last. */ |
void |
void |
mdoc_node_validate(struct roff_man *mdoc) |
mdoc_validate(struct roff_man *mdoc) |
{ |
{ |
struct roff_node *n, *np; |
struct roff_node *n, *np; |
const v_post *p; |
const v_post *p; |
Line 319 mdoc_node_validate(struct roff_man *mdoc) |
|
Line 319 mdoc_node_validate(struct roff_man *mdoc) |
|
|
|
mdoc->last = mdoc->last->child; |
mdoc->last = mdoc->last->child; |
while (mdoc->last != NULL) { |
while (mdoc->last != NULL) { |
mdoc_node_validate(mdoc); |
mdoc_validate(mdoc); |
if (mdoc->last == n) |
if (mdoc->last == n) |
mdoc->last = mdoc->last->child; |
mdoc->last = mdoc->last->child; |
else |
else |