version 1.3, 2009/03/25 16:08:30 |
version 1.4, 2009/03/26 09:55:39 |
Line 153 post_TH(struct man *m) |
|
Line 153 post_TH(struct man *m) |
|
* of the syntax tree (they encompass only meta-data). |
* of the syntax tree (they encompass only meta-data). |
*/ |
*/ |
|
|
assert(MAN_ROOT == m->last->parent->type); |
if (m->last->parent->child == m->last) { |
m->last->parent->child = NULL; |
assert(MAN_ROOT == m->last->parent->type); |
n = m->last; |
m->last->parent->child = NULL; |
m->last = m->last->parent; |
n = m->last; |
m->next = MAN_NEXT_CHILD; |
m->last = m->last->parent; |
assert(m->last == m->first); |
m->next = MAN_NEXT_CHILD; |
|
assert(m->last == m->first); |
|
} else { |
|
assert(m->last->prev); |
|
m->last->prev->next = NULL; |
|
n = m->last; |
|
m->last = m->last->prev; |
|
m->next = MAN_NEXT_SIBLING; |
|
} |
|
|
man_node_freelist(n); |
man_node_freelist(n); |
return(1); |
return(1); |