FreeBSD/contrib/mdocml/mdoc_macro.c
/*
 * Rewind up to and including a specific node.
 */
Rewind up to and including a specific node.
Rewind up to and including a specific node .
static void
rew_last(struct roff_man *mdoc, const struct roff_node *to)
{
	if (to->flags & MDOC_VALID)
		return;
	while (mdoc->last != to) {
		mdoc_state(mdoc, mdoc->last);
		mdoc->last->flags |= MDOC_VALID | MDOC_ENDED;
		mdoc->last = mdoc->last->parent;
	}
	mdoc_state(mdoc, mdoc->last);
	mdoc->last->flags |= MDOC_VALID | MDOC_ENDED;
	mdoc->next = ROFF_NEXT_SIBLING;
}
static void rew_last ( struct roff_man * mdoc , const struct roff_node * to ) { if ( to -> flags & MDOC_VALID ) return ; while ( mdoc -> last != to ) { mdoc_state ( mdoc , mdoc -> last ) ; mdoc -> last -> flags |= MDOC_VALID | MDOC_ENDED ; mdoc -> last = mdoc -> last -> parent ; } mdoc_state ( mdoc , mdoc -> last ) ; mdoc -> last -> flags |= MDOC_VALID | MDOC_ENDED ; mdoc -> next = ROFF_NEXT_SIBLING ; }
Rewind up to and including a specific node.
Rewind up to and including a specific node .