Lines Matching refs:line
233 n->line, n->pos, "%s", roff_name[n->tok]); in mdoc_endparse()
245 lookup(struct roff_man *mdoc, int from, int line, int ppos, const char *p) in lookup() argument
258 mandoc_msg(MANDOCERR_MACRO_CALL, line, ppos, "%s", p); in lookup()
297 roff_body_alloc(mdoc, n->line, n->pos, in rew_pending()
405 find_pending(struct roff_man *mdoc, enum roff_tok tok, int line, int ppos, in find_pending() argument
426 line, ppos, "%s breaks %s", in find_pending()
428 mdoc_endbody_alloc(mdoc, line, ppos, in find_pending()
441 dword(struct roff_man *mdoc, int line, int col, const char *p, in dword() argument
456 roff_word_alloc(mdoc, line, col, p); in dword()
475 append_delims(struct roff_man *mdoc, int line, int *pos, char *buf) in append_delims() argument
486 ac = mdoc_args(mdoc, line, pos, buf, TOKEN_NONE, &p); in append_delims()
489 dword(mdoc, line, la, p, DELIM_MAX, 1); in append_delims()
522 lookup(mdoc, tok, line, ppos, p); in macro_or_word()
525 dword(mdoc, line, ppos, p, DELIM_MAX, tok == TOKEN_NONE || in macro_or_word()
532 (*mdoc_macro(ntok)->fp)(mdoc, ntok, line, ppos, pos, buf); in macro_or_word()
534 append_delims(mdoc, line, pos, buf); in macro_or_word()
638 line, ppos, "%s breaks %s", in blk_exp_close()
641 endbody = mdoc_endbody_alloc(mdoc, line, ppos, in blk_exp_close()
680 mandoc_msg(MANDOCERR_BLK_NOTOPEN, line, ppos, in blk_exp_close()
687 roff_elem_alloc(mdoc, line, ppos, ROFF_br); in blk_exp_close()
693 mdoc_tail_alloc(mdoc, line, ppos, atok); in blk_exp_close()
698 mandoc_msg(MANDOCERR_ARG_SKIP, line, ppos, in blk_exp_close()
728 ac = mdoc_args(mdoc, line, pos, buf, tok, &p); in blk_exp_close()
732 ntok = lookup(mdoc, tok, line, lastarg, p); in blk_exp_close()
735 dword(mdoc, line, lastarg, p, DELIM_MAX, in blk_exp_close()
747 (*mdoc_macro(ntok)->fp)(mdoc, ntok, line, lastarg, pos, buf); in blk_exp_close()
758 pending = find_pending(mdoc, ntok, line, ppos, target); in blk_exp_close()
764 append_delims(mdoc, line, pos, buf); in blk_exp_close()
798 mdoc_argv(mdoc, line, tok, &arg, pos, buf); in in_line()
805 ac = mdoc_args(mdoc, line, pos, buf, tok, &p); in in_line()
833 TOKEN_NONE : lookup(mdoc, tok, line, la, p); in in_line()
846 mdoc_elem_alloc(mdoc, line, ppos, tok, arg); in in_line()
851 line, ppos, "%s", roff_name[tok]); in in_line()
854 line, la, pos, buf); in in_line()
856 append_delims(mdoc, line, pos, buf); in in_line()
877 mdoc_elem_alloc(mdoc, line, ppos, tok, arg); in in_line()
894 mdoc_elem_alloc(mdoc, line, ppos, tok, arg); in in_line()
899 dword(mdoc, line, la, p, d, in in_line()
938 mdoc_elem_alloc(mdoc, line, ppos, tok, arg); in in_line()
943 line, ppos, "%s", roff_name[tok]); in in_line()
947 append_delims(mdoc, line, pos, buf); in in_line()
969 line, ppos, "%s", roff_name[tok]); in blk_full()
990 line, ppos, "It breaks %s", in blk_full()
1002 line, ppos, in blk_full()
1028 mandoc_msg(MANDOCERR_BLK_BROKEN, line, ppos, in blk_full()
1043 line, ppos, "It %s", buf + *pos); in blk_full()
1044 roff_elem_alloc(mdoc, line, ppos, ROFF_br); in blk_full()
1069 mdoc_argv(mdoc, line, tok, &arg, pos, buf); in blk_full()
1070 blk = mdoc_block_alloc(mdoc, line, ppos, tok, arg); in blk_full()
1088 head = roff_head_alloc(mdoc, line, ppos, tok); in blk_full()
1090 body = roff_body_alloc(mdoc, line, ppos, tok); in blk_full()
1111 ac = mdoc_args(mdoc, line, pos, buf, tok, &p); in blk_full()
1124 body = roff_body_alloc(mdoc, line, ppos, tok); in blk_full()
1125 roff_word_alloc(mdoc, line, ppos, "\\&"); in blk_full()
1130 mandoc_msg(MANDOCERR_ARG_EXCESS, line, la, in blk_full()
1138 line, la, "Rs %s", buf + la); in blk_full()
1154 dword(mdoc, line, la, p, DELIM_OPEN, 0); in blk_full()
1163 head = roff_head_alloc(mdoc, line, ppos, tok); in blk_full()
1173 body = roff_body_alloc(mdoc, line, ppos, tok); in blk_full()
1178 parse_rest(mdoc, TOKEN_NONE, line, &la, buf); in blk_full()
1188 done = macro_or_word(mdoc, tok, line, la, pos, buf, p, parsed); in blk_full()
1198 head = roff_head_alloc(mdoc, line, ppos, tok); in blk_full()
1200 append_delims(mdoc, line, pos, buf); in blk_full()
1203 if (find_pending(mdoc, tok, line, ppos, head)) in blk_full()
1209 body = roff_body_alloc(mdoc, line, ppos, tok); in blk_full()
1266 blk = mdoc_block_alloc(mdoc, line, ppos, tok, NULL); in blk_part_imp()
1267 rew_last(mdoc, roff_head_alloc(mdoc, line, ppos, tok)); in blk_part_imp()
1277 ac = mdoc_args(mdoc, line, pos, buf, tok, &p); in blk_part_imp()
1282 dword(mdoc, line, la, p, DELIM_OPEN, 0); in blk_part_imp()
1289 body = roff_body_alloc(mdoc, line, ppos, tok); in blk_part_imp()
1291 done = macro_or_word(mdoc, tok, line, la, pos, buf, p, 1); in blk_part_imp()
1298 body = roff_body_alloc(mdoc, line, ppos, tok); in blk_part_imp()
1300 if (find_pending(mdoc, tok, line, ppos, body)) in blk_part_imp()
1305 append_delims(mdoc, line, pos, buf); in blk_part_imp()
1332 roff_block_alloc(mdoc, line, ppos, tok); in blk_part_exp()
1336 ac = mdoc_args(mdoc, line, pos, buf, tok, &p); in blk_part_exp()
1343 dword(mdoc, line, la, p, DELIM_OPEN, 0); in blk_part_exp()
1350 head = roff_head_alloc(mdoc, line, ppos, tok); in blk_part_exp()
1352 dword(mdoc, line, la, p, DELIM_MAX, 0); in blk_part_exp()
1354 roff_body_alloc(mdoc, line, ppos, tok); in blk_part_exp()
1362 done = macro_or_word(mdoc, tok, line, la, pos, buf, p, 1); in blk_part_exp()
1372 rew_last(mdoc, roff_head_alloc(mdoc, line, ppos, tok)); in blk_part_exp()
1373 roff_body_alloc(mdoc, line, ppos, tok); in blk_part_exp()
1376 append_delims(mdoc, line, pos, buf); in blk_part_exp()
1415 mdoc_argv(mdoc, line, tok, &arg, pos, buf); in in_line_argn()
1421 ac = mdoc_args(mdoc, line, pos, buf, tok, &p); in in_line_argn()
1426 dword(mdoc, line, la, p, DELIM_OPEN, 0); in in_line_argn()
1434 mdoc_elem_alloc(mdoc, line, ppos, tok, arg); in in_line_argn()
1441 line, ppos, "Pf %s", in in_line_argn()
1452 TOKEN_NONE : lookup(mdoc, tok, line, la, p); in in_line_argn()
1460 line, la, pos, buf); in in_line_argn()
1469 mdoc_elem_alloc(mdoc, line, ppos, tok, arg); in in_line_argn()
1478 dword(mdoc, line, la, p, DELIM_MAX, in in_line_argn()
1487 line, ppos, "%s", roff_name[tok]); in in_line_argn()
1492 append_delims(mdoc, line, pos, buf); in in_line_argn()
1496 append_delims(mdoc, line, pos, buf); in in_line_argn()
1517 line, ppos, "%s", roff_name[tok]); in in_line_eoln()
1521 mdoc_argv(mdoc, line, tok, &arg, pos, buf); in in_line_eoln()
1522 mdoc_elem_alloc(mdoc, line, ppos, tok, arg); in in_line_eoln()
1523 if (parse_rest(mdoc, tok, line, pos, buf)) in in_line_eoln()
1535 int line, int *pos, char *buf) in parse_rest() argument
1543 ac = mdoc_args(mdoc, line, pos, buf, tok, &p); in parse_rest()
1546 done = macro_or_word(mdoc, tok, line, la, pos, buf, p, 1); in parse_rest()
1559 in_line(mdoc, tok, line, ppos, pos, buf); in ctx_synopsis()
1561 blk_full(mdoc, tok, line, ppos, pos, buf); in ctx_synopsis()
1564 blk_part_imp(mdoc, tok, line, ppos, pos, buf); in ctx_synopsis()
1591 mandoc_msg(MANDOCERR_TA_STRAY, line, ppos, "Ta"); in phrase_ta()
1598 roff_body_alloc(mdoc, line, ppos, MDOC_It); in phrase_ta()
1599 parse_rest(mdoc, TOKEN_NONE, line, pos, buf); in phrase_ta()