Lines Matching refs:last

102 	struct roffnode	*last; /* leaf of stack */
111 const char *current_string; /* value of last called user macro */
113 struct tbl_node *last_tbl; /* last table parsed */
700 p = r->last;
702 r->last = p->parent;
723 p->parent = r->last;
728 r->last = p;
747 while (r->last)
832 man->last = man->meta.first;
915 if (man->last->next != NULL) {
916 n->next = man->last->next;
917 man->last->next->prev = n;
919 man->last->parent->last = n;
920 man->last->next = n;
921 n->prev = man->last;
922 n->parent = man->last->parent;
925 if (man->last->child != NULL) {
926 n->next = man->last->child;
927 man->last->child->prev = n;
929 man->last->last = n;
930 man->last->child = n;
931 n->parent = man->last;
936 man->last = n;
981 n = man->last;
1066 if (n->parent->last == n)
1067 n->parent->last = n->prev;
1074 if (man->last == n) {
1076 man->last = n->parent;
1079 man->last = n->prev;
1754 r->man->last = roffce_node;
1848 if (r->last != NULL && ! ctl) {
1849 t = r->last->tok;
1883 if (r->last) {
1884 t = r->last->tok;
1924 r->man->last = roffce_node;
1965 if (r->last != NULL)
1966 mandoc_msg(MANDOCERR_BLK_NOEND, r->last->line,
1967 r->last->col, "%s", roff_name[r->last->tok]);
2038 if (r->last == NULL) {
2043 switch (r->last->tok) {
2067 if (r->last != NULL && r->last->endspan < 0) {
2089 while (r->last != NULL && r->last->endspan > 0) {
2090 if (--r->last->endspan != 0)
2105 if (NULL == r->last) {
2110 switch (r->last->tok) {
2121 if (r->last->endspan > -1) {
2245 r->last->end = mandoc_strndup(name, namesz);
2265 if (r->last->end) {
2266 for (i = pos, j = 0; r->last->end[j]; j++, i++)
2267 if (buf->buf[i] != r->last->end[j])
2270 if (r->last->end[j] == '\0' &&
2297 roff_setstr(r, r->last->name, buf->buf + ppos, 2);
2306 roff_setstr(r, r->last->name, buf->buf + pos, 2);
2327 rr = r->last->rule;
2396 for (bl = r->last; bl != NULL; bl = bl->parent) {
2680 r->last->rule = tok == ROFF_el ?
2695 r->rstack[++r->rstackpos] = !r->last->rule;
2700 if (r->last->parent && !r->last->parent->rule)
2701 r->last->rule = 0;
2711 r->last->endspan = 2;
2721 r->last->endspan = -1;
2738 r->last->endspan = 1;
3053 case '$': /* Number of arguments of the last macro evaluated. */
3392 if (ln > r->man->last->line)
3457 r->man->last->flags |= NODE_LINE | NODE_VALID | NODE_ENDED;
3475 r->man->last = roffce_node;
3480 n = r->man->last;
3496 if (r->man->last->type == ROFFT_ELEM) {
3498 r->man->last->flags |= NODE_NOSRC;
3501 if (roff_evalnum(r, ln, r->man->last->string, &npos,
3508 r->man->last = r->man->last->parent;
3512 roffce_node = r->man->last->parent;
3515 r->man->last = n;
3529 n = r->man->last;
3540 r->man->last = n;
3738 n = r->man->last;
3742 r->man->last = n;