Lines Matching full:last
300 /* Validate the subtree rooted at mdoc->last. */
313 n = mdoc->last; in mdoc_validate()
331 mdoc->last = mdoc->last->child; in mdoc_validate()
332 while (mdoc->last != NULL) { in mdoc_validate()
334 if (mdoc->last == n) in mdoc_validate()
335 mdoc->last = mdoc->last->child; in mdoc_validate()
337 mdoc->last = mdoc->last->next; in mdoc_validate()
342 mdoc->last = n; in mdoc_validate()
366 check_args(mdoc, mdoc->last); in mdoc_validate()
376 if (n->last != NULL) in mdoc_validate()
377 n->last->flags &= ~NODE_DELIMO; in mdoc_validate()
390 if (mdoc->last == n) in mdoc_validate()
423 if (mdoc->last->flags & NODE_NOFILL) in check_text()
436 np = mdoc->last->prev; in check_text_em()
437 nn = mdoc->last->next; in check_text_em()
525 tok = mdoc->last->tok; in post_delim()
526 nch = mdoc->last->last; in post_delim()
541 nch == mdoc->last->child ? "" : " ...", nch->string); in post_delim()
555 * the last one a closing or middle delimiter. in post_delim_nb()
558 tok = mdoc->last->tok; in post_delim_nb()
559 nch = mdoc->last->last; in post_delim_nb()
634 nch == mdoc->last->child ? "" : " ...", nch->string); in post_delim_nb()
646 n = mdoc->last->parent; in post_bl_norm()
815 n = mdoc->last; in post_bd()
888 n = mdoc->last; in post_an_norm()
913 n = mdoc->last; in post_eoln()
923 mdoc->last->flags |= NODE_EOS | NODE_NOSRC; in post_eoln()
924 mdoc->last = n; in post_eoln()
933 n = mdoc->last->next; in build_list()
936 mdoc->last->flags |= NODE_NOSRC; in build_list()
938 n = mdoc->last = mdoc->last->parent; in build_list()
944 mdoc->last->flags |= NODE_DELIMC | NODE_NOSRC; in build_list()
946 n = mdoc->last->next; in build_list()
949 mdoc->last->flags |= NODE_NOSRC; in build_list()
962 n = mdoc->last; in post_ex()
965 mdoc->last->flags |= NODE_NOSRC; in post_ex()
967 if (mdoc->last->next != NULL) in post_ex()
971 mdoc->last->flags |= NODE_NOSRC; in post_ex()
973 mdoc->last->flags |= NODE_NOSRC; in post_ex()
974 mdoc->last = mdoc->last->parent; in post_ex()
984 mdoc->last->flags |= NODE_NOSRC; in post_ex()
987 mdoc->last->flags |= NODE_EOS | NODE_NOSRC; in post_ex()
988 mdoc->last = n; in post_ex()
999 n = mdoc->last; in post_lb()
1006 mdoc->last->flags = NODE_NOSRC; in post_lb()
1007 mdoc->last = n; in post_lb()
1015 mdoc->last->flags = NODE_NOSRC; in post_lb()
1017 mdoc->last->flags = NODE_DELIMO | NODE_NOSRC; in post_lb()
1018 mdoc->last = mdoc->last->next; in post_lb()
1020 mdoc->last->flags = NODE_DELIMC | NODE_NOSRC; in post_lb()
1021 mdoc->last = n; in post_lb()
1032 n = mdoc->last; in post_rv()
1036 mdoc->last->flags |= NODE_NOSRC; in post_rv()
1040 mdoc->last->flags |= NODE_NOSRC; in post_rv()
1046 mdoc->last->flags |= NODE_NOSRC; in post_rv()
1050 mdoc->last->flags |= NODE_NOSRC; in post_rv()
1052 mdoc->last->flags |= NODE_NOSRC; in post_rv()
1054 mdoc->last->flags |= NODE_NOSRC; in post_rv()
1055 mdoc->last = mdoc->last->parent; in post_rv()
1059 mdoc->last->flags |= NODE_EOS | NODE_NOSRC; in post_rv()
1060 mdoc->last = n; in post_rv()
1070 n = mdoc->last; in post_std()
1085 n = mdoc->last; in post_st()
1099 mdoc->last->flags |= NODE_NOSRC; in post_st()
1100 mdoc->last= n; in post_st()
1114 n = mdoc->last; in post_tg()
1228 n = mdoc->last; in post_obsolete()
1239 n = mdoc->last; in post_useless()
1258 np = mdoc->last; in post_bf()
1319 n = mdoc->last; in post_fname()
1350 n = mdoc->last; in post_fo()
1359 if (n->child != n->last) { in post_fo()
1363 while (n->child != n->last) in post_fo()
1364 roff_node_delete(mdoc, n->last); in post_fo()
1377 for (n = mdoc->last->child; n != NULL; n = n->next) { in post_fa()
1397 n = mdoc->last; in post_nm()
1403 if (n->last != NULL && n->last->tok == MDOC_Pp) in post_nm()
1404 roff_node_relink(mdoc, n->last); in post_nm()
1430 mdoc->last->flags |= NODE_NOSRC; in post_nm()
1431 mdoc->last = n; in post_nm()
1439 n = mdoc->last; in post_nd()
1460 n = mdoc->last; in post_display()
1506 n = mdoc->last; in post_defaults()
1515 mdoc->last->flags |= NODE_NOSRC; in post_defaults()
1525 mdoc->last->flags |= NODE_NOSRC; in post_defaults()
1526 mdoc->last = n; in post_defaults()
1535 n = mdoc->last; in post_at()
1555 mdoc->last->flags |= NODE_NOSRC; in post_at()
1556 mdoc->last = n; in post_at()
1566 np = mdoc->last; in post_an()
1583 tag_put(NULL, TAG_FALLBACK, mdoc->last); in post_em()
1590 if (mdoc->last->type == ROFFT_BLOCK) in post_en()
1591 mdoc->last->norm->Es = mdoc->last_es; in post_en()
1599 n = mdoc->last; in post_er()
1613 n = mdoc->last; in post_tag()
1629 mdoc->last_es = mdoc->last; in post_es()
1643 n = mdoc->last; in post_fl()
1664 n = mdoc->last; in post_xx()
1687 v = mdoc->last->string; in post_xx()
1689 mdoc->last->flags |= NODE_NOSRC; in post_xx()
1690 mdoc->last = n; in post_xx()
1703 mdoc->last->flags |= NODE_NOSRC; in post_xx()
1704 mdoc->last = n; in post_xx()
1716 nit = mdoc->last; in post_it()
1791 n = mdoc->last; in post_bl_block()
1795 nc = ni->body->last; in post_bl_block()
1817 nc = ni->body->last; in post_bl_block()
1898 nh = mdoc->last; in post_bl_head()
1960 nbody = mdoc->last; in post_bl()
1986 nchild = mdoc->last; in post_bl()
1988 if (nchild == mdoc->last) in post_bl()
1991 mdoc->last = nbody; in post_bl()
1997 mdoc->last = nbody; in post_bl()
2003 mdoc->last = nbody->parent->parent; in post_bl()
2006 mdoc->last = nbody->parent->prev; in post_bl()
2028 mdoc->last = nchild->prev; in post_bl()
2042 mdoc->last = nbody; in post_bl()
2080 n = mdoc->last; in post_bk()
2093 nch = mdoc->last->child; in post_sm()
2112 "%s %s", roff_name[mdoc->last->tok], nch->string); in post_sm()
2181 np = mdoc->last; in post_rs()
2273 n = mdoc->last; in post_hyph()
2296 n = mdoc->last; in post_ns()
2314 switch (mdoc->last->type) { in post_sh()
2346 for (n = mdoc->last->child; n != NULL; n = n->next) { in post_sh_name()
2379 mdoc->last->line, mdoc->last->pos, NULL); in post_sh_name()
2382 mdoc->last->line, mdoc->last->pos, NULL); in post_sh_name()
2393 n = mdoc->last->child; in post_sh_see_also()
2460 if ( ! child_an(mdoc->last)) in post_sh_authors()
2462 mdoc->last->line, mdoc->last->pos, NULL); in post_sh_authors()
2522 sec = mdoc->last->sec; in post_sh_head()
2528 mdoc->last->line, mdoc->last->pos, "Sh %s", in post_sh_head()
2530 (nch = mdoc->last->child) == NULL ? "" : in post_sh_head()
2546 /* Mark our last section. */ in post_sh_head()
2553 if ((nch = mdoc->last->child) == NULL || in post_sh_head()
2577 mandoc_msg(MANDOCERR_SEC_REP, mdoc->last->line, in post_sh_head()
2578 mdoc->last->pos, "Sh %s", secnames[sec]); in post_sh_head()
2581 mandoc_msg(MANDOCERR_SEC_ORDER, mdoc->last->line, in post_sh_head()
2582 mdoc->last->pos, "Sh %s", secnames[sec]); in post_sh_head()
2584 /* Mark the last named section. */ in post_sh_head()
2615 mdoc->last->line, mdoc->last->pos, in post_sh_head()
2628 n = mdoc->last; in post_xr()
2634 assert(nch->next == n->last); in post_xr()
2650 n = mdoc->last; in post_section()
2686 if ((nch = n->last) != NULL && in post_section()
2700 n = mdoc->last; in post_prevpar()
2733 np = mdoc->last; in post_par()
2744 n = mdoc->last; in post_dd()
2772 n = mdoc->last; in post_dt()
2870 n = mdoc->last; in post_bx()
2881 mdoc->last = nch; in post_bx()
2885 mdoc->last->flags |= NODE_NOSRC; in post_bx()
2890 mdoc->last->flags |= NODE_NOSRC; in post_bx()
2893 mdoc->last = n; in post_bx()
2898 mdoc->last->flags |= NODE_NOSRC; in post_bx()
2901 mdoc->last->flags |= NODE_NOSRC; in post_bx()
2903 mdoc->last->flags |= NODE_NOSRC; in post_bx()
2904 mdoc->last = n; in post_bx()
2923 n = mdoc->last; in post_os()