Lines Matching defs:line

226 			    n->line, n->pos, mdoc_macronames[n->tok]);
236 * or as a line macro if from == TOKEN_NONE.
239 lookup(struct roff_man *mdoc, int from, int line, int ppos, const char *p)
254 mdoc->parse, line, ppos, p);
293 roff_body_alloc(mdoc, n->line, n->pos,
385 find_pending(struct roff_man *mdoc, int tok, int line, int ppos,
406 mdoc->parse, line, ppos,
409 mdoc_endbody_alloc(mdoc, line, ppos,
422 dword(struct roff_man *mdoc, int line, int col, const char *p,
437 roff_word_alloc(mdoc, line, col, p);
456 append_delims(struct roff_man *mdoc, int line, int *pos, char *buf)
466 if (mdoc_args(mdoc, line, pos, buf, TOKEN_NONE, &p) ==
469 dword(mdoc, line, la, p, DELIM_MAX, 1);
504 ntok = lookup(mdoc, tok, line, ppos, p);
507 dword(mdoc, line, ppos, p, DELIM_MAX, tok == TOKEN_NONE ||
513 mdoc_macro(mdoc, ntok, line, ppos, pos, buf);
515 append_delims(mdoc, line, pos, buf);
604 line, ppos, "%s breaks %s",
608 endbody = mdoc_endbody_alloc(mdoc, line, ppos,
641 line, ppos, mdoc_macronames[tok]);
647 * Break the output line, keep the arguments.
649 roff_elem_alloc(mdoc, line, ppos, MDOC_br);
655 mdoc_tail_alloc(mdoc, line, ppos, atok);
661 mdoc->parse, line, ppos,
679 ac = mdoc_args(mdoc, line, pos, buf, tok, &p);
684 lookup(mdoc, tok, line, lastarg, p);
687 dword(mdoc, line, lastarg, p, DELIM_MAX,
695 mdoc_macro(mdoc, ntok, line, lastarg, pos, buf);
705 pending = find_pending(mdoc, ntok, line, ppos,
713 append_delims(mdoc, line, pos, buf);
747 mdoc_argv(mdoc, line, tok, &arg, pos, buf);
754 ac = mdoc_args(mdoc, line, pos, buf, tok, &p);
757 * At the end of a macro line,
768 * The rest of the macro line is only punctuation,
782 TOKEN_NONE : lookup(mdoc, tok, line, la, p);
795 mdoc_elem_alloc(mdoc, line, ppos, tok, arg);
800 mdoc->parse, line, ppos,
803 mdoc_macro(mdoc, ntok, line, la, pos, buf);
805 append_delims(mdoc, line, pos, buf);
827 mdoc_elem_alloc(mdoc, line, ppos, tok, arg);
843 mdoc_elem_alloc(mdoc, line, ppos, tok, arg);
848 dword(mdoc, line, la, p, d,
882 mdoc_elem_alloc(mdoc, line, ppos, tok, arg);
887 line, ppos, mdoc_macronames[tok]);
891 append_delims(mdoc, line, pos, buf);
910 line, ppos, mdoc_macronames[tok]);
931 mdoc->parse, line, ppos,
944 mdoc->parse, line, ppos,
972 mdoc->parse, line, ppos,
988 line, ppos, "It %s", buf + *pos);
989 roff_elem_alloc(mdoc, line, ppos, MDOC_br);
1004 mdoc_argv(mdoc, line, tok, &arg, pos, buf);
1005 blk = mdoc_block_alloc(mdoc, line, ppos, tok, arg);
1023 head = roff_head_alloc(mdoc, line, ppos, tok);
1025 body = roff_body_alloc(mdoc, line, ppos, tok);
1046 ac = mdoc_args(mdoc, line, pos, buf, tok, &p);
1053 * This line ends in a tab; start the next
1059 body = roff_body_alloc(mdoc, line, ppos, tok);
1060 roff_word_alloc(mdoc, line, ppos, "\\&");
1066 mdoc->parse, line, la, "%s ... %s",
1072 line, la, "Rs %s", buf + la);
1087 dword(mdoc, line, la, p, DELIM_OPEN, 0);
1094 head = roff_head_alloc(mdoc, line, ppos, tok);
1104 body = roff_body_alloc(mdoc, line, ppos, tok);
1106 /* Process to the tab or to the end of the line. */
1109 parse_rest(mdoc, TOKEN_NONE, line, &la, buf);
1119 if (macro_or_word(mdoc, tok, line, la, pos, buf, parsed))
1126 head = roff_head_alloc(mdoc, line, ppos, tok);
1128 append_delims(mdoc, line, pos, buf);
1131 if (find_pending(mdoc, tok, line, ppos, head))
1137 body = roff_body_alloc(mdoc, line, ppos, tok);
1159 * A macro that spans to the end of the line. This is generally
1167 blk = mdoc_block_alloc(mdoc, line, ppos, tok, NULL);
1168 rew_last(mdoc, roff_head_alloc(mdoc, line, ppos, tok));
1178 ac = mdoc_args(mdoc, line, pos, buf, tok, &p);
1184 dword(mdoc, line, la, p, DELIM_OPEN, 0);
1189 body = roff_body_alloc(mdoc, line, ppos, tok);
1191 if (macro_or_word(mdoc, tok, line, la, pos, buf, 1))
1195 body = roff_body_alloc(mdoc, line, ppos, tok);
1197 if (find_pending(mdoc, tok, line, ppos, body))
1202 append_delims(mdoc, line, pos, buf);
1229 roff_block_alloc(mdoc, line, ppos, tok);
1233 ac = mdoc_args(mdoc, line, pos, buf, tok, &p);
1241 dword(mdoc, line, la, p, DELIM_OPEN, 0);
1246 head = roff_head_alloc(mdoc, line, ppos, tok);
1248 dword(mdoc, line, la, p, DELIM_MAX, 0);
1250 roff_body_alloc(mdoc, line, ppos, tok);
1255 if (macro_or_word(mdoc, tok, line, la, pos, buf, 1))
1262 rew_last(mdoc, roff_head_alloc(mdoc, line, ppos, tok));
1263 roff_body_alloc(mdoc, line, ppos, tok);
1266 append_delims(mdoc, line, pos, buf);
1282 * A line macro that has a fixed number of arguments (maxargs).
1305 mdoc_argv(mdoc, line, tok, &arg, pos, buf);
1311 ac = mdoc_args(mdoc, line, pos, buf, tok, &p);
1316 dword(mdoc, line, la, p, DELIM_OPEN, 0);
1322 mdoc_elem_alloc(mdoc, line, ppos, tok, arg);
1329 mdoc->parse, line, ppos, "Pf %s",
1340 TOKEN_NONE : lookup(mdoc, tok, line, la, p);
1347 mdoc_macro(mdoc, ntok, line, la, pos, buf);
1355 mdoc_elem_alloc(mdoc, line, ppos, tok, arg);
1364 dword(mdoc, line, la, p, DELIM_MAX,
1370 line, ppos, mdoc_macronames[tok]);
1375 append_delims(mdoc, line, pos, buf);
1379 append_delims(mdoc, line, pos, buf);
1400 line, ppos, mdoc_macronames[tok]);
1404 mdoc_argv(mdoc, line, tok, &arg, pos, buf);
1405 mdoc_elem_alloc(mdoc, line, ppos, tok, arg);
1406 if (parse_rest(mdoc, tok, line, pos, buf))
1413 * words until the end of the phrase or line and return 0
1417 parse_rest(struct roff_man *mdoc, int tok, int line, int *pos, char *buf)
1423 if (mdoc_args(mdoc, line, pos, buf, tok, NULL) == ARGS_EOLN)
1425 if (macro_or_word(mdoc, tok, line, la, pos, buf, 1))
1435 in_line(mdoc, tok, line, ppos, pos, buf);
1437 blk_full(mdoc, tok, line, ppos, pos, buf);
1440 blk_part_imp(mdoc, tok, line, ppos, pos, buf);
1468 line, ppos, "Ta");
1475 roff_body_alloc(mdoc, line, ppos, MDOC_It);
1476 parse_rest(mdoc, TOKEN_NONE, line, pos, buf);