version 1.168, 2010/12/06 11:01:19 |
version 1.170, 2010/12/16 17:14:48 |
Line 526 mdoc_node_free(struct mdoc_node *p) |
|
Line 526 mdoc_node_free(struct mdoc_node *p) |
|
if (MDOC_Bf == p->tok && MDOC_HEAD == p->type) |
if (MDOC_Bf == p->tok && MDOC_HEAD == p->type) |
if (p->data.Bf) |
if (p->data.Bf) |
free(p->data.Bf); |
free(p->data.Bf); |
|
if (MDOC_An == p->tok) |
|
if (p->data.An) |
|
free(p->data.An); |
|
|
if (p->string) |
if (p->string) |
free(p->string); |
free(p->string); |
Line 552 mdoc_node_unlink(struct mdoc *m, struct mdoc_node *n) |
|
Line 555 mdoc_node_unlink(struct mdoc *m, struct mdoc_node *n) |
|
n->parent->nchild--; |
n->parent->nchild--; |
if (n->parent->child == n) |
if (n->parent->child == n) |
n->parent->child = n->prev ? n->prev : n->next; |
n->parent->child = n->prev ? n->prev : n->next; |
|
if (n->parent->last == n) |
|
n->parent->last = n->prev ? n->prev : NULL; |
} |
} |
|
|
/* Adjust parse point, if applicable. */ |
/* Adjust parse point, if applicable. */ |