Lines Matching refs:nn

1173 	struct mdoc_node *nn;  in post_defaults()  local
1184 nn = mdoc->last; in post_defaults()
1187 switch (nn->tok) { in post_defaults()
1189 if ( ! mdoc_word_alloc(mdoc, nn->line, nn->pos, "file")) in post_defaults()
1191 if ( ! mdoc_word_alloc(mdoc, nn->line, nn->pos, "...")) in post_defaults()
1195 if ( ! mdoc_word_alloc(mdoc, nn->line, nn->pos, "AT&T")) in post_defaults()
1197 if ( ! mdoc_word_alloc(mdoc, nn->line, nn->pos, "UNIX")) in post_defaults()
1201 if ( ! mdoc_word_alloc(mdoc, nn->line, nn->pos, "")) in post_defaults()
1207 if ( ! mdoc_word_alloc(mdoc, nn->line, nn->pos, "~")) in post_defaults()
1215 mdoc->last = nn; in post_defaults()
1461 struct mdoc_node *n, *nn; in post_bl_block_tag() local
1476 for (nn = n->body->child; nn; nn = nn->next) { in post_bl_block_tag()
1477 if (MDOC_It != nn->tok) in post_bl_block_tag()
1480 assert(MDOC_BLOCK == nn->type); in post_bl_block_tag()
1481 nn = nn->head->child; in post_bl_block_tag()
1483 if (nn == NULL) in post_bl_block_tag()
1486 if (MDOC_TEXT == nn->type) { in post_bl_block_tag()
1487 sz = strlen(nn->string) + 1; in post_bl_block_tag()
1491 if (0 != (ssz = macro2len(nn->tok))) in post_bl_block_tag()
1528 struct mdoc_node *np, *nn, *nnp; in post_bl_head() local
1577 for (i = 0, nn = mdoc->last->child; nn; i++) { in post_bl_head()
1578 np->args->argv[j].value[i] = nn->string; in post_bl_head()
1579 nn->string = NULL; in post_bl_head()
1580 nnp = nn; in post_bl_head()
1581 nn = nn->next; in post_bl_head()
1753 struct mdoc_node *nn, *next, *prev; in post_rs() local
1776 for (nn = mdoc->last->child; nn; nn = next) { in post_rs()
1778 if (nn->tok == rsord[i]) in post_rs()
1784 next = nn->next; in post_rs()
1788 next = nn->next; in post_rs()
1789 mdoc_nmsg(mdoc, nn, MANDOCERR_CHILD); in post_rs()
1790 mdoc_node_delete(mdoc, nn); in post_rs()
1808 for (nn = mdoc->last->child->next; nn; nn = next) { in post_rs()
1811 if (rsord[i] == nn->tok) in post_rs()
1821 if (NULL != (next = nn->next)) in post_rs()
1822 next->prev = nn->prev; in post_rs()
1824 if (NULL != (prev = nn->prev)) in post_rs()
1825 prev->next = nn->next; in post_rs()
1827 nn->prev = nn->next = NULL; in post_rs()
1849 nn->prev = prev; in post_rs()
1853 prev->next->prev = nn; in post_rs()
1854 nn->next = prev->next; in post_rs()
1855 prev->next = nn; in post_rs()
1857 mdoc->last->child->prev = nn; in post_rs()
1858 nn->next = mdoc->last->child; in post_rs()
1859 mdoc->last->child = nn; in post_rs()
2207 struct mdoc_node *nn, *n; in post_dt() local
2224 if (NULL != (nn = n->child)) in post_dt()
2225 for (p = nn->string; *p; p++) { in post_dt()
2233 mdoc_nmsg(mdoc, nn, MANDOCERR_UPPERCASE); in post_dt()
2241 if (NULL == (nn = n->child)) { in post_dt()
2255 ('\0' == nn->string[0] ? "UNKNOWN" : nn->string); in post_dt()
2257 if (NULL == (nn = nn->next)) { in post_dt()
2272 cp = mandoc_a2msec(nn->string); in post_dt()
2275 mdoc->meta.msec = mandoc_strdup(nn->string); in post_dt()
2278 mdoc->meta.vol = mandoc_strdup(nn->string); in post_dt()
2279 mdoc->meta.msec = mandoc_strdup(nn->string); in post_dt()
2282 if (NULL == (nn = nn->next)) in post_dt()
2292 cp = mdoc_a2vol(nn->string); in post_dt()
2297 cp = mdoc_a2arch(nn->string); in post_dt()
2299 mdoc_nmsg(mdoc, nn, MANDOCERR_BADVOLARCH); in post_dt()
2301 mdoc->meta.vol = mandoc_strdup(nn->string); in post_dt()
2417 struct mdoc_node *nn, *n; in post_std() local
2433 nn = n; in post_std()
2439 mdoc->last = nn; in post_std()