Lines Matching refs:child

331 	mdoc->last = mdoc->last->child;  in mdoc_validate()
335 mdoc->last = mdoc->last->child; in mdoc_validate()
374 if (n->child != NULL) in mdoc_validate()
375 n->child->flags &= ~NODE_DELIMC; in mdoc_validate()
541 nch == mdoc->last->child ? "" : " ...", nch->string); in post_delim()
634 nch == mdoc->last->child ? "" : " ...", nch->string); in post_delim_nb()
914 if (n->child != NULL) in post_eoln()
916 n->pos, "%s %s", roff_name[n->tok], n->child->string); in post_eoln()
918 while (n->child != NULL) in post_eoln()
919 roff_node_delete(mdoc, n->child); in post_eoln()
1000 assert(n->child->type == ROFFT_TEXT); in post_lb()
1003 if ((p = mdoc_a2lib(n->child->string)) != NULL) { in post_lb()
1004 n->child->flags |= NODE_NOPRT; in post_lb()
1011 mandoc_msg(MANDOCERR_LB_BAD, n->child->line, in post_lb()
1012 n->child->pos, "Lb %s", n->child->string); in post_lb()
1034 if (n->child != NULL) { in post_rv()
1086 nch = n->child; in post_st()
1123 nt = nch = n->child; in post_tg()
1124 if (nch == NULL && nn != NULL && nn->child != NULL && in post_tg()
1125 nn->child->type == ROFFT_TEXT) in post_tg()
1126 nt = nn->child; in post_tg()
1163 nn = nn->head->child == NULL ? n : nn->head; in post_tg()
1184 nn = nn->body->child == NULL ? n : nn->body; in post_tg()
1194 nn = nn->body->child == NULL ? n : nn->body; in post_tg()
1210 if (nn->child == NULL) in post_tg()
1266 nch = np->child; in post_bf()
1300 if ( ! strcmp(np->child->string, "Em")) in post_bf()
1302 else if ( ! strcmp(np->child->string, "Li")) in post_bf()
1304 else if ( ! strcmp(np->child->string, "Sy")) in post_bf()
1307 mandoc_msg(MANDOCERR_BF_BADFONT, np->child->line, in post_bf()
1308 np->child->pos, "Bf %s", np->child->string); in post_bf()
1319 nch = n->child; in post_fname()
1354 if (n->child == NULL) { in post_fo()
1358 if (n->child != n->last) { in post_fo()
1360 n->child->next->line, n->child->next->pos, in post_fo()
1361 "Fo ... %s", n->child->next->string); in post_fo()
1362 while (n->child != n->last) in post_fo()
1376 for (n = mdoc->last->child; n != NULL; n = n->next) { in post_fa()
1398 if (n->sec == SEC_NAME && n->child != NULL && in post_nm()
1399 n->child->type == ROFFT_TEXT && mdoc->meta.msec != NULL) in post_nm()
1400 mandoc_xr_add(mdoc->meta.msec, n->child->string, -1, -1); in post_nm()
1409 (mdoc->lastsec == SEC_NAME && n->child == NULL)) in post_nm()
1423 if ((n->child != NULL && n->child->type == ROFFT_TEXT) || in post_nm()
1446 if (n->child == NULL) in post_nd()
1466 } else if (n->child == NULL) in post_display()
1478 while (n->body->child != NULL) in post_display()
1480 n->body->child); in post_display()
1506 if (n->child != NULL) { in post_defaults()
1535 nch = n->child; in post_at()
1566 nch = np->child; in post_an()
1644 n->prev->child == NULL && n->child != NULL && in post_fl()
1646 mandoc_asprintf(&cp, "\\-%s", n->child->string); in post_fl()
1647 free(n->child->string); in post_fl()
1648 n->child->string = cp; in post_fl()
1676 if (n->child == NULL) in post_xx()
1678 v = n->child->string; in post_xx()
1683 n->child->flags |= NODE_NOPRT; in post_xx()
1685 roff_word_alloc(mdoc, n->child->line, n->child->pos, v); in post_xx()
1728 if (nit->head->child == NULL) in post_it()
1737 if (nit->body == NULL || nit->body->child == NULL) in post_it()
1743 if ((nch = nit->head->child) != NULL) in post_it()
1752 assert(nit->head->child == NULL); in post_it()
1754 if (nit->head->next->child == NULL && in post_it()
1763 for (nch = nit->child; nch != NULL; nch = nch->next) { in post_it()
1773 else if (nit->head->next->child != NULL && in post_it()
1774 nit->head->next->child->flags & NODE_LINE) in post_it()
1791 for (ni = n->body->child; ni != NULL; ni = ni->next) { in post_bl_block()
1855 if ((nch = nh->child) == NULL) in post_bl_head()
1861 nch = nh->child; in post_bl_head()
1872 if (nh->child == NULL) in post_bl_head()
1890 for (nch = nh->child; nch != NULL; nch = nch->next) in post_bl_head()
1898 for (nch = nh->child; nch != NULL; nch = nnext) { in post_bl_head()
1904 nh->child = NULL; in post_bl_head()
1955 mandoc_msg(MANDOCERR_BL_MOVE, nbody->child->line, in post_bl()
1956 nbody->child->pos, "%s", roff_name[nbody->child->tok]); in post_bl()
1964 roff_node_relink(mdoc, nbody->child); in post_bl()
2004 for (nchild = nbody->child; nchild != NULL; nchild = nchild->next) { in post_bl()
2007 if ((nnext = nchild->head->child) == NULL) in post_bl()
2010 nnext = nnext->body->child; in post_bl()
2013 nnext = nnext->child; in post_bl()
2037 if (n->type == ROFFT_BLOCK && n->body->child == NULL) { in post_bk()
2048 nch = mdoc->last->child; in post_sm()
2101 n = mdoc->meta.first->child; in post_root()
2103 n->child == NULL || in post_root()
2104 n->child->next == NULL || in post_root()
2105 n->child->next->next == NULL) in post_root()
2107 n = n->child->next->next; in post_root()
2116 n = mdoc->meta.first->child; in post_root()
2141 if (np->child == NULL) { in post_rs()
2153 for (nch = np->child->next; nch != NULL; nch = next) { in post_rs()
2206 np->child->prev = nch; in post_rs()
2207 nch->next = np->child; in post_rs()
2208 np->child = nch; in post_rs()
2229 for (nch = n->child; nch != NULL; nch = nch->next) { in post_hyph()
2301 for (n = mdoc->last->child; n != NULL; n = n->next) { in post_sh_name()
2304 if (hasnm && n->child != NULL) in post_sh_name()
2307 "Nm %s", n->child->string); in post_sh_name()
2348 n = mdoc->last->child; in post_sh_see_also()
2352 n->child == NULL || in post_sh_see_also()
2353 n->child->next == NULL) in post_sh_see_also()
2358 name = n->child->string; in post_sh_see_also()
2359 sec = n->child->next->string; in post_sh_see_also()
2405 for (n = n->child; n != NULL; n = n->next) in child_an()
2406 if ((n->tok == MDOC_An && n->child != NULL) || child_an(n)) in child_an()
2485 (nch = mdoc->last->child) == NULL ? "" : in post_sh_head()
2508 if ((nch = mdoc->last->child) == NULL || in post_sh_head()
2586 nch = n->child; in post_xr()
2619 if ((nch = n->child) != NULL && in post_section()
2635 if ((nch = n->child) != NULL && in post_section()
2691 if (np->child != NULL) in post_par()
2693 "%s %s", roff_name[np->tok], np->child->string); in post_par()
2719 mdoc->meta.date = mandoc_normdate(n->child, n); in post_dd()
2755 nn = n->child; in post_dt()
2828 nch = n->child; in post_bx()
2939 if (n->child != NULL) in post_os()
2940 mandoc_msg(MANDOCERR_OS_ARG, n->child->line, n->child->pos, in post_os()
2941 "Os %s (%s)", n->child->string, in post_os()
2948 if ((n = n->child) == NULL) in post_os()