Lines Matching defs:nch

676 	struct roff_node *np, *nch;
692 nch = np->child;
694 if (nch == NULL) {
699 nch = nch->next;
701 if (nch != NULL)
703 nch->line, nch->pos, "Bf ... %s", nch->string);
995 struct roff_node *np, *nch;
1000 nch = np->child;
1002 if (nch == NULL)
1005 } else if (nch != NULL)
1007 nch->line, nch->pos, "An ... %s", nch->string);
1030 struct roff_node *nbl, *nit, *nch;
1077 for (nch = nit->child; nch != NULL; nch = nch->next)
1078 if (nch->type == ROFFT_BODY)
1238 struct roff_node *nbl, *nh, *nch, *nnext;
1246 if ((nch = nh->child) == NULL)
1249 nch->line, nch->pos, "Bl ... %s", nch->string);
1250 while (nch != NULL) {
1251 roff_node_delete(mdoc, nch);
1252 nch = nh->child;
1281 for (nch = nh->child; nch != NULL; nch = nch->next)
1289 for (nch = nh->child; nch != NULL; nch = nnext) {
1290 argv->value[i++] = nch->string;
1291 nch->string = NULL;
1292 nnext = nch->next;
1293 roff_node_delete(NULL, nch);
1396 struct roff_node *nch;
1398 nch = mdoc->last->child;
1400 if (nch == NULL) {
1405 assert(nch->type == ROFFT_TEXT);
1407 if ( ! strcmp(nch->string, "on")) {
1411 if ( ! strcmp(nch->string, "off")) {
1417 mdoc->parse, nch->line, nch->pos,
1418 "%s %s", mdoc_macronames[mdoc->last->tok], nch->string);
1419 mdoc_node_relink(mdoc, nch);
1467 struct roff_node *n, *nch;
1471 nch = n->child;
1473 assert(nch->type == ROFFT_TEXT);
1475 if ((p = mdoc_a2st(nch->string)) == NULL) {
1477 nch->line, nch->pos, "St %s", nch->string);
1480 free(nch->string);
1481 nch->string = mandoc_strdup(p);
1488 struct roff_node *np, *nch, *next, *prev;
1509 for (nch = np->child->next; nch != NULL; nch = next) {
1512 if (rsord[i] == nch->tok)
1517 mdoc->parse, nch->line, nch->pos,
1518 mdoc_macronames[nch->tok]);
1520 } else if (nch->tok == MDOC__J || nch->tok == MDOC__B)
1530 if ((next = nch->next) != NULL)
1531 next->prev = nch->prev;
1533 if ((prev = nch->prev) != NULL)
1534 prev->next = nch->next;
1536 nch->prev = nch->next = NULL;
1560 nch->prev = prev;
1563 np->child->prev = nch;
1564 nch->next = np->child;
1565 np->child = nch;
1568 prev->next->prev = nch;
1569 nch->next = prev->next;
1570 prev->next = nch;
1582 struct roff_node *nch;
1585 for (nch = mdoc->last->child; nch != NULL; nch = nch->next) {
1586 if (nch->type != ROFFT_TEXT)
1588 cp = nch->string;