-/* $Id: roff.c,v 1.283 2015/10/22 21:54:23 schwarze Exp $ */
+/* $Id: roff.c,v 1.284 2016/01/08 17:48:10 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
default:
abort();
}
- n->parent->nchild++;
man->last = n;
switch (n->type) {
/* Adjust parent. */
if (n->parent != NULL) {
- n->parent->nchild--;
if (n->parent->child == n)
n->parent->child = n->next;
if (n->parent->last == n)
while (n->child != NULL)
roff_node_delete(man, n->child);
- assert(n->nchild == 0);
roff_node_unlink(man, n);
roff_node_free(n);
}