- n->child->string = strdup(p);
- if (NULL == n->child->string)
- return(mdoc_nerr(m, n, EMALLOC));
- return(1);
- }
-
- nn = n;
- m->next = MDOC_NEXT_CHILD;
-
- if ( ! mdoc_word_alloc(m, nn->line, nn->pos, "AT&T UNIX"))
- return(0);
- m->last = nn;
-
- return(1);
-}
-
-
-static int
-post_sh(POST_ARGS)
-{
- enum mdoc_sec sec;
- char buf[64];
-
- /*
- * We keep track of the current section /and/ the "named"
- * section, which is one of the conventional ones, in order to
- * check ordering.
- */
-
- if (MDOC_HEAD != n->type)
- return(1);
-
- buf[0] = 0;
- if ( ! concat(m, n->child, buf, sizeof(buf)))
- return(0);
- if (SEC_CUSTOM != (sec = mdoc_atosec(buf)))
- m->lastnamed = sec;
-
- switch ((m->lastsec = sec)) {
- case (SEC_RETURN_VALUES):
- /* FALLTHROUGH */
- case (SEC_ERRORS):
- switch (m->meta.msec) {
- case (2):
- /* FALLTHROUGH */
- case (3):
- /* FALLTHROUGH */
- case (9):
- break;
- default:
- return(mdoc_nwarn(m, n, EBADSEC));
- }
- break;
- default:
- break;