Return to roff.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.281, 2015/10/20 02:01:32 | version 1.282, 2015/10/21 23:51:11 | ||
---|---|---|---|
|
|
||
abort(); | abort(); | ||
} | } | ||
n->parent->nchild++; | n->parent->nchild++; | ||
man->last = n; | |||
/* | |||
* Copy over the normalised-data pointer of our parent. Not | |||
* everybody has one, but copying a null pointer is fine. | |||
*/ | |||
switch (n->type) { | switch (n->type) { | ||
case ROFFT_BODY: | |||
if (n->end != ENDBODY_NOT) | |||
break; | |||
/* FALLTHROUGH */ | |||
case ROFFT_TAIL: | |||
case ROFFT_HEAD: | case ROFFT_HEAD: | ||
n->norm = n->parent->norm; | |||
break; | |||
default: | |||
break; | |||
} | |||
if (man->macroset == MACROSET_MDOC) | |||
mdoc_valid_pre(man, n); | |||
switch (n->type) { | |||
case ROFFT_HEAD: | |||
assert(n->parent->type == ROFFT_BLOCK); | |||
n->parent->head = n; | n->parent->head = n; | ||
break; | break; | ||
case ROFFT_BODY: | case ROFFT_BODY: | ||
if (n->end) | if (n->end != ENDBODY_NOT) | ||
break; | return; | ||
assert(n->parent->type == ROFFT_BLOCK); | |||
n->parent->body = n; | n->parent->body = n; | ||
break; | break; | ||
case ROFFT_TAIL: | case ROFFT_TAIL: | ||
assert(n->parent->type == ROFFT_BLOCK); | |||
n->parent->tail = n; | n->parent->tail = n; | ||
break; | break; | ||
default: | default: | ||
break; | return; | ||
} | } | ||
man->last = n; | |||
/* | |||
* Copy over the normalised-data pointer of our parent. Not | |||
* everybody has one, but copying a null pointer is fine. | |||
*/ | |||
n->norm = n->parent->norm; | |||
assert(n->parent->type == ROFFT_BLOCK); | |||
} | } | ||
void | void |