-
- assert(m->meta.name);
-
- m->last->args->argv[0].value = calloc(1, sizeof(char *));
- if (NULL == m->last->args->argv[0].value)
- return(verr(m, EMALLOC));
-
- m->last->args->argv[0].sz = 1;
- m->last->args->argv[0].value[0] = strdup(m->meta.name);
- if (NULL == m->last->args->argv[0].value[0])
- return(verr(m, EMALLOC));
-
- return(1);
-}
-
-
-static int
-post_nm(POST_ARGS)
-{
- char buf[64];
-
- if (m->meta.name)
- return(1);
-
- buf[0] = 0;
- if ( ! concat(m, m->last->child, buf, sizeof(buf)))
- return(0);
-
- if (NULL == (m->meta.name = strdup(buf)))
- return(verr(m, EMALLOC));
-
- 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 != m->last->type)