Lines Matching refs:nch

771 	struct mdoc_node *np, *nch;  in post_bf()  local
788 nch = np->child; in post_bf()
790 if (NULL == nch) { in post_bf()
795 nch = nch->next; in post_bf()
797 if (NULL != nch) in post_bf()
799 nch->line, nch->pos, "Bf ... %s", nch->string); in post_bf()
1104 struct mdoc_node *np, *nch; in post_an() local
1107 nch = np->child; in post_an()
1109 if (nch == NULL) in post_an()
1112 } else if (nch != NULL) in post_an()
1114 nch->line, nch->pos, "An ... %s", nch->string); in post_an()
1137 struct mdoc_node *nbl, *nit, *nch; in post_it() local
1186 for (i = 0, nch = nit->child; nch; nch = nch->next) in post_it()
1187 if (nch->type == MDOC_BODY) in post_it()
1347 struct mdoc_node *nbl, *nh, *nch, *nnext; in post_bl_head() local
1354 if ((nch = nh->child) == NULL) in post_bl_head()
1357 nch->line, nch->pos, "Bl ... %s", nch->string); in post_bl_head()
1358 while (nch != NULL) { in post_bl_head()
1359 mdoc_node_delete(mdoc, nch); in post_bl_head()
1360 nch = nh->child; in post_bl_head()
1396 for (nch = nh->child; nch != NULL; nch = nnext) { in post_bl_head()
1397 argv->value[i++] = nch->string; in post_bl_head()
1398 nch->string = NULL; in post_bl_head()
1399 nnext = nch->next; in post_bl_head()
1400 mdoc_node_delete(NULL, nch); in post_bl_head()
1506 struct mdoc_node *nch; in post_sm() local
1508 nch = mdoc->last->child; in post_sm()
1510 if (nch == NULL) { in post_sm()
1515 assert(nch->type == MDOC_TEXT); in post_sm()
1517 if ( ! strcmp(nch->string, "on")) { in post_sm()
1521 if ( ! strcmp(nch->string, "off")) { in post_sm()
1527 mdoc->parse, nch->line, nch->pos, in post_sm()
1528 "%s %s", mdoc_macronames[mdoc->last->tok], nch->string); in post_sm()
1529 mdoc_node_relink(mdoc, nch); in post_sm()
1576 struct mdoc_node *n, *nch; in post_st() local
1580 nch = n->child; in post_st()
1582 assert(MDOC_TEXT == nch->type); in post_st()
1584 if (NULL == (p = mdoc_a2st(nch->string))) { in post_st()
1586 nch->line, nch->pos, "St %s", nch->string); in post_st()
1589 free(nch->string); in post_st()
1590 nch->string = mandoc_strdup(p); in post_st()
1597 struct mdoc_node *np, *nch, *next, *prev; in post_rs() local
1618 for (nch = np->child->next; nch != NULL; nch = next) { in post_rs()
1621 if (rsord[i] == nch->tok) in post_rs()
1626 mdoc->parse, nch->line, nch->pos, in post_rs()
1627 mdoc_macronames[nch->tok]); in post_rs()
1629 } else if (nch->tok == MDOC__J || nch->tok == MDOC__B) in post_rs()
1639 if ((next = nch->next) != NULL) in post_rs()
1640 next->prev = nch->prev; in post_rs()
1642 if ((prev = nch->prev) != NULL) in post_rs()
1643 prev->next = nch->next; in post_rs()
1645 nch->prev = nch->next = NULL; in post_rs()
1669 nch->prev = prev; in post_rs()
1672 np->child->prev = nch; in post_rs()
1673 nch->next = np->child; in post_rs()
1674 np->child = nch; in post_rs()
1677 prev->next->prev = nch; in post_rs()
1678 nch->next = prev->next; in post_rs()
1679 prev->next = nch; in post_rs()
1691 struct mdoc_node *nch; in post_hyph() local
1694 for (nch = mdoc->last->child; nch != NULL; nch = nch->next) { in post_hyph()
1695 if (nch->type != MDOC_TEXT) in post_hyph()
1697 cp = nch->string; in post_hyph()