Lines Matching refs:p

47 #define	DECL_ARGS struct termp *p, \
252 struct termp *p; in terminal_mdoc() local
255 p = (struct termp *)arg; in terminal_mdoc()
256 p->tcol->rmargin = p->maxrmargin = p->defrmargin; in terminal_mdoc()
257 term_tab_set(p, NULL); in terminal_mdoc()
258 term_tab_set(p, "T"); in terminal_mdoc()
259 term_tab_set(p, ".5i"); in terminal_mdoc()
262 if (p->synopsisonly) { in terminal_mdoc()
273 p->flags |= TERMP_NOSPACE; in terminal_mdoc()
275 print_mdoc_nodelist(p, NULL, mdoc, n); in terminal_mdoc()
276 term_newln(p); in terminal_mdoc()
278 save_defindent = p->defindent; in terminal_mdoc()
279 if (p->defindent == 0) in terminal_mdoc()
280 p->defindent = 5; in terminal_mdoc()
281 term_begin(p, print_mdoc_head, print_mdoc_foot, mdoc); in terminal_mdoc()
288 term_vspace(p); in terminal_mdoc()
289 print_mdoc_nodelist(p, NULL, mdoc, n); in terminal_mdoc()
291 term_end(p); in terminal_mdoc()
292 p->defindent = save_defindent; in terminal_mdoc()
300 print_mdoc_node(p, pair, meta, n); in print_mdoc_nodelist()
320 (p->flags & TERMP_NONEWLINE) == 0) in print_mdoc_node()
321 term_newln(p); in print_mdoc_node()
322 p->flags |= TERMP_BRNEVER; in print_mdoc_node()
324 p->flags &= ~TERMP_BRNEVER; in print_mdoc_node()
330 offset = p->tcol->offset; in print_mdoc_node()
331 rmargin = p->tcol->rmargin; in print_mdoc_node()
333 n->prev_font = p->fonti; in print_mdoc_node()
340 term_tag_write(n, p->line); in print_mdoc_node()
347 if (p->flags & TERMP_KEEP && n->flags & NODE_LINE) { in print_mdoc_node()
348 p->flags &= ~TERMP_KEEP; in print_mdoc_node()
349 p->flags |= TERMP_PREKEEP; in print_mdoc_node()
363 if (p->flags & TERMP_NONEWLINE) in print_mdoc_node()
364 term_newln(p); in print_mdoc_node()
366 term_vspace(p); in print_mdoc_node()
369 if ((p->flags & TERMP_NONEWLINE) == 0) in print_mdoc_node()
370 term_newln(p); in print_mdoc_node()
377 p->flags |= TERMP_NOSPACE; in print_mdoc_node()
378 term_word(p, n->string); in print_mdoc_node()
380 p->flags |= TERMP_NOSPACE; in print_mdoc_node()
384 p->flags |= TERMP_NOSPACE; in print_mdoc_node()
385 term_eqn(p, n->eqn); in print_mdoc_node()
387 p->flags |= TERMP_NOSPACE; in print_mdoc_node()
390 if (p->tbl.cols == NULL) in print_mdoc_node()
391 term_newln(p); in print_mdoc_node()
392 term_tbl(p, n->span); in print_mdoc_node()
396 roff_term_pre(p, n); in print_mdoc_node()
403 chld = (*act->pre)(p, &npair, meta, n); in print_mdoc_node()
408 print_mdoc_nodelist(p, &npair, meta, n->child); in print_mdoc_node()
410 term_fontpopq(p, in print_mdoc_node()
423 (void)(*act->post)(p, &npair, meta, n); in print_mdoc_node()
436 p->flags |= TERMP_SENTENCE; in print_mdoc_node()
439 p->tcol->offset = offset; in print_mdoc_node()
440 p->tcol->rmargin = rmargin; in print_mdoc_node()
444 print_mdoc_foot(struct termp *p, const struct roff_meta *meta) in print_mdoc_foot() argument
448 term_fontrepl(p, TERMFONT_NONE); in print_mdoc_foot()
458 term_vspace(p); in print_mdoc_foot()
460 p->tcol->offset = 0; in print_mdoc_foot()
461 sz = term_strlen(p, meta->date); in print_mdoc_foot()
462 p->tcol->rmargin = p->maxrmargin > sz ? in print_mdoc_foot()
463 (p->maxrmargin + term_len(p, 1) - sz) / 2 : 0; in print_mdoc_foot()
464 p->trailspace = 1; in print_mdoc_foot()
465 p->flags |= TERMP_NOSPACE | TERMP_NOBREAK; in print_mdoc_foot()
467 term_word(p, meta->os); in print_mdoc_foot()
468 term_flushln(p); in print_mdoc_foot()
470 p->tcol->offset = p->tcol->rmargin; in print_mdoc_foot()
471 sz = term_strlen(p, meta->os); in print_mdoc_foot()
472 p->tcol->rmargin = p->maxrmargin > sz ? p->maxrmargin - sz : 0; in print_mdoc_foot()
473 p->flags |= TERMP_NOSPACE; in print_mdoc_foot()
475 term_word(p, meta->date); in print_mdoc_foot()
476 term_flushln(p); in print_mdoc_foot()
478 p->tcol->offset = p->tcol->rmargin; in print_mdoc_foot()
479 p->tcol->rmargin = p->maxrmargin; in print_mdoc_foot()
480 p->trailspace = 0; in print_mdoc_foot()
481 p->flags &= ~TERMP_NOBREAK; in print_mdoc_foot()
482 p->flags |= TERMP_NOSPACE; in print_mdoc_foot()
484 term_word(p, meta->os); in print_mdoc_foot()
485 term_flushln(p); in print_mdoc_foot()
487 p->tcol->offset = 0; in print_mdoc_foot()
488 p->tcol->rmargin = p->maxrmargin; in print_mdoc_foot()
489 p->flags = 0; in print_mdoc_foot()
493 print_mdoc_head(struct termp *p, const struct roff_meta *meta) in print_mdoc_head() argument
517 vollen = term_strlen(p, volume); in print_mdoc_head()
524 titlen = term_strlen(p, title); in print_mdoc_head()
526 p->flags |= TERMP_NOBREAK | TERMP_NOSPACE; in print_mdoc_head()
527 p->trailspace = 1; in print_mdoc_head()
528 p->tcol->offset = 0; in print_mdoc_head()
529 p->tcol->rmargin = 2 * (titlen+1) + vollen < p->maxrmargin ? in print_mdoc_head()
530 (p->maxrmargin - vollen + term_len(p, 1)) / 2 : in print_mdoc_head()
531 vollen < p->maxrmargin ? p->maxrmargin - vollen : 0; in print_mdoc_head()
533 term_word(p, title); in print_mdoc_head()
534 term_flushln(p); in print_mdoc_head()
536 p->flags |= TERMP_NOSPACE; in print_mdoc_head()
537 p->tcol->offset = p->tcol->rmargin; in print_mdoc_head()
538 p->tcol->rmargin = p->tcol->offset + vollen + titlen < in print_mdoc_head()
539 p->maxrmargin ? p->maxrmargin - titlen : p->maxrmargin; in print_mdoc_head()
541 term_word(p, volume); in print_mdoc_head()
542 term_flushln(p); in print_mdoc_head()
544 p->flags &= ~TERMP_NOBREAK; in print_mdoc_head()
545 p->trailspace = 0; in print_mdoc_head()
546 if (p->tcol->rmargin + titlen <= p->maxrmargin) { in print_mdoc_head()
547 p->flags |= TERMP_NOSPACE; in print_mdoc_head()
548 p->tcol->offset = p->tcol->rmargin; in print_mdoc_head()
549 p->tcol->rmargin = p->maxrmargin; in print_mdoc_head()
550 term_word(p, title); in print_mdoc_head()
551 term_flushln(p); in print_mdoc_head()
554 p->flags &= ~TERMP_NOSPACE; in print_mdoc_head()
555 p->tcol->offset = 0; in print_mdoc_head()
556 p->tcol->rmargin = p->maxrmargin; in print_mdoc_head()
562 a2width(const struct termp *p, const char *v) in a2width() argument
569 SCALE_HS_INIT(&su, term_strlen(p, v)); in a2width()
570 su.scale /= term_strlen(p, "0"); in a2width()
572 return term_hen(p, &su); in a2width()
581 print_bvspace(struct termp *p, struct roff_node *bl, struct roff_node *n) in print_bvspace() argument
585 term_newln(p); in print_bvspace()
618 term_vspace(p); in print_bvspace()
633 print_bvspace(p, n->parent->parent, n); in termp_it_pre()
635 term_tag_write(n, p->line); in termp_it_pre()
651 width = term_len(p, 2); in termp_it_pre()
655 width = term_len(p, 8); in termp_it_pre()
658 width = term_len(p, 10); in termp_it_pre()
673 offset = a2width(p, bl->norm->Bl.offs); in termp_it_pre()
674 if (offset < 0 && (size_t)(-offset) > p->tcol->offset) in termp_it_pre()
675 offset = -p->tcol->offset; in termp_it_pre()
695 dcol = ncols < 5 ? term_len(p, 4) : in termp_it_pre()
696 ncols == 5 ? term_len(p, 3) : term_len(p, 1); in termp_it_pre()
707 term_strlen(p, bl->norm->Bl.cols[i])); in termp_it_pre()
708 su.scale /= term_strlen(p, "0"); in termp_it_pre()
709 offset += term_hen(p, &su) + dcol; in termp_it_pre()
725 SCALE_HS_INIT(&su, term_strlen(p, bl->norm->Bl.cols[i])); in termp_it_pre()
726 su.scale /= term_strlen(p, "0"); in termp_it_pre()
727 width = term_hen(p, &su) + dcol; in termp_it_pre()
738 width = a2width(p, bl->norm->Bl.width) + term_len(p, 2); in termp_it_pre()
739 if (width < 0 && (size_t)(-width) > p->tcol->offset) in termp_it_pre()
740 width = -p->tcol->offset; in termp_it_pre()
751 p->flags |= TERMP_NOSPACE; in termp_it_pre()
756 term_word(p, "\\ \\ "); in termp_it_pre()
760 term_word(p, "\\ "); in termp_it_pre()
766 p->flags |= TERMP_NOSPACE; in termp_it_pre()
771 term_fontpush(p, TERMFONT_BOLD); in termp_it_pre()
790 p->flags |= TERMP_NOBREAK | TERMP_HANG; in termp_it_pre()
791 p->trailspace = 1; in termp_it_pre()
792 } else if (width <= (int)term_len(p, 2)) in termp_it_pre()
793 p->flags |= TERMP_NOPAD; in termp_it_pre()
798 p->flags |= TERMP_NOBREAK | TERMP_BRIND | TERMP_HANG; in termp_it_pre()
799 p->trailspace = 1; in termp_it_pre()
805 p->flags |= TERMP_NOBREAK | TERMP_BRTRSP | TERMP_BRIND; in termp_it_pre()
806 p->trailspace = 2; in termp_it_pre()
809 p->flags |= TERMP_HANG; in termp_it_pre()
816 p->flags &= ~TERMP_NOBREAK; in termp_it_pre()
817 p->trailspace = 0; in termp_it_pre()
819 p->flags |= TERMP_NOBREAK; in termp_it_pre()
820 p->trailspace = 1; in termp_it_pre()
827 p->flags |= TERMP_NOBREAK | TERMP_BRIND; in termp_it_pre()
828 p->trailspace = 1; in termp_it_pre()
840 p->tcol->offset += offset; in termp_it_pre()
850 p->tcol->rmargin = p->tcol->offset + width; in termp_it_pre()
852 p->tcol->offset += width; in termp_it_pre()
856 p->tcol->rmargin = p->tcol->offset + width; in termp_it_pre()
863 if (n->next == NULL && p->tcol->rmargin < p->maxrmargin) in termp_it_pre()
864 p->tcol->rmargin = p->maxrmargin; in termp_it_pre()
878 term_fontpush(p, TERMFONT_BOLD); in termp_it_pre()
879 term_word(p, "\\[bu]"); in termp_it_pre()
880 term_fontpop(p); in termp_it_pre()
884 term_fontpush(p, TERMFONT_BOLD); in termp_it_pre()
885 term_word(p, "-"); in termp_it_pre()
886 term_fontpop(p); in termp_it_pre()
892 term_word(p, buf); in termp_it_pre()
914 p->minbl = 0; in termp_it_pre()
938 term_newln(p); in termp_it_post()
942 term_flushln(p); in termp_it_post()
945 term_newln(p); in termp_it_post()
955 p->flags &= ~(TERMP_NOBREAK | TERMP_BRTRSP | TERMP_BRIND | TERMP_HANG); in termp_it_post()
956 p->trailspace = 0; in termp_it_post()
965 p->flags |= TERMP_PREKEEP; in termp_nm_pre()
972 p->flags |= TERMP_NOSPACE; in termp_nm_pre()
979 p->tcol->offset += term_len(p, 6); in termp_nm_pre()
981 p->tcol->offset += term_len(p, 1) + in termp_nm_pre()
982 term_strlen(p, cp); in termp_nm_pre()
990 synopsis_pre(p, n->parent); in termp_nm_pre()
994 p->flags |= TERMP_NOSPACE | TERMP_NOBREAK | TERMP_BRIND; in termp_nm_pre()
995 p->trailspace = 1; in termp_nm_pre()
996 p->tcol->rmargin = p->tcol->offset + term_len(p, 1); in termp_nm_pre()
998 p->tcol->rmargin += term_strlen(p, meta->name); in termp_nm_pre()
1000 p->tcol->rmargin += term_strlen(p, n->child->string); in termp_nm_pre()
1002 p->flags |= TERMP_HANG; in termp_nm_pre()
1004 p->tcol->rmargin += term_len(p, 5); in termp_nm_pre()
1005 p->flags |= TERMP_HANG; in termp_nm_pre()
1008 return termp_bold_pre(p, pair, meta, n); in termp_nm_pre()
1016 p->flags &= ~(TERMP_KEEP | TERMP_PREKEEP); in termp_nm_post()
1021 term_flushln(p); in termp_nm_post()
1022 p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND | TERMP_HANG); in termp_nm_post()
1023 p->trailspace = 0; in termp_nm_post()
1027 term_flushln(p); in termp_nm_post()
1039 term_fontpush(p, TERMFONT_BOLD); in termp_fl_pre()
1040 term_word(p, "\\-"); in termp_fl_pre()
1046 p->flags |= TERMP_NOSPACE; in termp_fl_pre()
1058 term_word(p, "and"); in termp__a_pre()
1068 p->flags &= ~TERMP_NOSPLIT; in termp_an_pre()
1069 p->flags |= TERMP_SPLIT; in termp_an_pre()
1073 p->flags &= ~TERMP_SPLIT; in termp_an_pre()
1074 p->flags |= TERMP_NOSPLIT; in termp_an_pre()
1078 if (p->flags & TERMP_SPLIT) in termp_an_pre()
1079 term_newln(p); in termp_an_pre()
1081 if (n->sec == SEC_AUTHORS && ! (p->flags & TERMP_NOSPLIT)) in termp_an_pre()
1082 p->flags |= TERMP_SPLIT; in termp_an_pre()
1092 p->flags |= TERMP_NOSPACE; in termp_ns_pre()
1102 term_vspace(p); in termp_rs_pre()
1109 term_newln(p); in termp_ex_pre()
1117 term_word(p, "\\(en"); in termp_nd_pre()
1126 term_newln(p); in termp_bl_pre()
1140 term_newln(p); in termp_bl_post()
1143 term_tab_set(p, NULL); in termp_bl_post()
1144 term_tab_set(p, "T"); in termp_bl_post()
1145 term_tab_set(p, ".5i"); in termp_bl_post()
1155 term_word(p, n->string); in termp_xr_pre()
1160 p->flags |= TERMP_NOSPACE; in termp_xr_pre()
1161 term_word(p, "("); in termp_xr_pre()
1162 p->flags |= TERMP_NOSPACE; in termp_xr_pre()
1165 term_word(p, n->string); in termp_xr_pre()
1167 p->flags |= TERMP_NOSPACE; in termp_xr_pre()
1168 term_word(p, ")"); in termp_xr_pre()
1179 synopsis_pre(struct termp *p, struct roff_node *n) in synopsis_pre() argument
1196 term_newln(p); in synopsis_pre()
1211 term_vspace(p); in synopsis_pre()
1215 term_vspace(p); in synopsis_pre()
1220 term_newln(p); in synopsis_pre()
1230 return termp_ft_pre(p, pair, meta, n); in termp_vt_pre()
1232 synopsis_pre(p, n); in termp_vt_pre()
1237 return termp_under_pre(p, pair, meta, n); in termp_vt_pre()
1244 term_fontpush(p, TERMFONT_BOLD); in termp_bold_pre()
1251 synopsis_pre(p, n); in termp_fd_pre()
1252 return termp_bold_pre(p, pair, meta, n); in termp_fd_pre()
1258 term_newln(p); in termp_fd_post()
1275 term_vspace(p); in termp_sh_pre()
1278 return termp_bold_pre(p, pair, meta, n); in termp_sh_pre()
1280 p->tcol->offset = term_len(p, p->defindent); in termp_sh_pre()
1281 term_tab_set(p, NULL); in termp_sh_pre()
1282 term_tab_set(p, "T"); in termp_sh_pre()
1283 term_tab_set(p, ".5i"); in termp_sh_pre()
1285 p->flags &= ~(TERMP_SPLIT|TERMP_NOSPLIT); in termp_sh_pre()
1298 term_newln(p); in termp_sh_post()
1301 term_newln(p); in termp_sh_post()
1302 p->tcol->offset = 0; in termp_sh_post()
1313 term_newln(p); in termp_lb_post()
1321 term_newln(p); in termp_d1_pre()
1322 p->tcol->offset += term_len(p, p->defindent + 1); in termp_d1_pre()
1323 term_tab_set(p, NULL); in termp_d1_pre()
1324 term_tab_set(p, "T"); in termp_d1_pre()
1325 term_tab_set(p, ".5i"); in termp_d1_pre()
1332 synopsis_pre(p, n); in termp_ft_pre()
1333 return termp_under_pre(p, pair, meta, n); in termp_ft_pre()
1342 synopsis_pre(p, n); in termp_fn_pre()
1348 rmargin = p->tcol->rmargin; in termp_fn_pre()
1349 p->tcol->rmargin = p->tcol->offset + term_len(p, 4); in termp_fn_pre()
1350 p->flags |= TERMP_NOBREAK | TERMP_BRIND | TERMP_HANG; in termp_fn_pre()
1354 term_fontpush(p, TERMFONT_BOLD); in termp_fn_pre()
1355 term_word(p, n->string); in termp_fn_pre()
1356 term_fontpop(p); in termp_fn_pre()
1359 term_flushln(p); in termp_fn_pre()
1360 p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND | TERMP_HANG); in termp_fn_pre()
1361 p->flags |= TERMP_NOPAD; in termp_fn_pre()
1362 p->tcol->offset = p->tcol->rmargin; in termp_fn_pre()
1363 p->tcol->rmargin = rmargin; in termp_fn_pre()
1366 p->flags |= TERMP_NOSPACE; in termp_fn_pre()
1367 term_word(p, "("); in termp_fn_pre()
1368 p->flags |= TERMP_NOSPACE; in termp_fn_pre()
1372 term_fontpush(p, TERMFONT_UNDER); in termp_fn_pre()
1374 p->flags |= TERMP_NBRWORD; in termp_fn_pre()
1375 term_word(p, n->string); in termp_fn_pre()
1376 term_fontpop(p); in termp_fn_pre()
1379 p->flags |= TERMP_NOSPACE; in termp_fn_pre()
1380 term_word(p, ","); in termp_fn_pre()
1384 p->flags |= TERMP_NOSPACE; in termp_fn_pre()
1385 term_word(p, ")"); in termp_fn_pre()
1388 p->flags |= TERMP_NOSPACE; in termp_fn_pre()
1389 term_word(p, ";"); in termp_fn_pre()
1390 term_flushln(p); in termp_fn_pre()
1401 return termp_under_pre(p, pair, meta, n); in termp_fa_pre()
1404 term_fontpush(p, TERMFONT_UNDER); in termp_fa_pre()
1405 p->flags |= TERMP_NBRWORD; in termp_fa_pre()
1406 term_word(p, nn->string); in termp_fa_pre()
1407 term_fontpop(p); in termp_fa_pre()
1409 p->flags |= TERMP_NOSPACE; in termp_fa_pre()
1410 term_word(p, ","); in termp_fa_pre()
1416 p->flags |= TERMP_NOSPACE; in termp_fa_pre()
1417 term_word(p, ","); in termp_fa_pre()
1428 print_bvspace(p, n, n); in termp_bd_pre()
1439 p->tcol->offset += term_len(p, p->defindent + 1); in termp_bd_pre()
1441 p->tcol->offset += term_len(p, (p->defindent + 1) * 2); in termp_bd_pre()
1443 offset = a2width(p, n->norm->Bd.offs); in termp_bd_pre()
1444 if (offset < 0 && (size_t)(-offset) > p->tcol->offset) in termp_bd_pre()
1445 p->tcol->offset = 0; in termp_bd_pre()
1447 p->tcol->offset += offset; in termp_bd_pre()
1452 term_tab_set(p, NULL); in termp_bd_pre()
1453 term_tab_set(p, "T"); in termp_bd_pre()
1454 term_tab_set(p, "8n"); in termp_bd_pre()
1457 p->flags |= TERMP_CENTER; in termp_bd_pre()
1472 p->flags |= TERMP_BRNEVER; in termp_bd_post()
1473 p->flags |= TERMP_NOSPACE; in termp_bd_post()
1474 term_newln(p); in termp_bd_post()
1475 p->flags &= ~TERMP_BRNEVER; in termp_bd_post()
1477 p->flags &= ~TERMP_CENTER; in termp_bd_post()
1483 if ((n->aux = p->flags & TERMP_PREKEEP) == 0) in termp_xx_pre()
1484 p->flags |= TERMP_PREKEEP; in termp_xx_pre()
1492 p->flags &= ~(TERMP_KEEP | TERMP_PREKEEP); in termp_xx_post()
1499 p->flags |= TERMP_NOSPACE; in termp_pf_post()
1508 term_newln(p); in termp_ss_pre()
1510 term_vspace(p); in termp_ss_pre()
1513 p->tcol->offset = term_len(p, (p->defindent+1)/2); in termp_ss_pre()
1514 return termp_bold_pre(p, pair, meta, n); in termp_ss_pre()
1516 p->tcol->offset = term_len(p, p->defindent); in termp_ss_pre()
1517 term_tab_set(p, NULL); in termp_ss_pre()
1518 term_tab_set(p, "T"); in termp_ss_pre()
1519 term_tab_set(p, ".5i"); in termp_ss_pre()
1531 term_newln(p); in termp_ss_post()
1537 synopsis_pre(p, n); in termp_in_pre()
1539 term_fontpush(p, TERMFONT_BOLD); in termp_in_pre()
1540 term_word(p, "#include"); in termp_in_pre()
1541 term_word(p, "<"); in termp_in_pre()
1543 term_word(p, "<"); in termp_in_pre()
1544 term_fontpush(p, TERMFONT_UNDER); in termp_in_pre()
1546 p->flags |= TERMP_NOSPACE; in termp_in_pre()
1554 term_fontpush(p, TERMFONT_BOLD); in termp_in_post()
1555 p->flags |= TERMP_NOSPACE; in termp_in_post()
1556 term_word(p, ">"); in termp_in_post()
1558 term_fontpop(p); in termp_in_post()
1564 term_vspace(p); in termp_pp_pre()
1566 term_tag_write(n, p->line); in termp_pp_pre()
1585 term_word(p, n->child != NULL && n->child->next == NULL && in termp_quote_pre()
1590 term_word(p, "{"); in termp_quote_pre()
1596 term_word(p, "["); in termp_quote_pre()
1602 term_word(p, "\\(lq"); in termp_quote_pre()
1608 term_word(p, n->norm->Es->child->string); in termp_quote_pre()
1612 term_word(p, "("); in termp_quote_pre()
1616 term_word(p, "\""); in termp_quote_pre()
1621 term_word(p, "\\(oq"); in termp_quote_pre()
1627 p->flags |= TERMP_NOSPACE; in termp_quote_pre()
1638 p->flags |= TERMP_NOSPACE; in termp_quote_post()
1643 term_word(p, n->child != NULL && n->child->next == NULL && in termp_quote_post()
1648 term_word(p, "}"); in termp_quote_post()
1654 term_word(p, "]"); in termp_quote_post()
1660 term_word(p, "\\(rq"); in termp_quote_post()
1666 p->flags &= ~TERMP_NOSPACE; in termp_quote_post()
1668 term_word(p, n->norm->Es->child->next->string); in termp_quote_post()
1672 term_word(p, ")"); in termp_quote_post()
1676 term_word(p, "\""); in termp_quote_post()
1681 term_word(p, "\\(cq"); in termp_quote_post()
1699 term_word(p, "\\&"); in termp_eo_pre()
1703 p->flags |= TERMP_NOSPACE; in termp_eo_pre()
1717 p->flags &= ~TERMP_NOSPACE; in termp_eo_post()
1725 p->flags |= TERMP_NOSPACE; in termp_eo_post()
1727 term_word(p, "\\&"); in termp_eo_post()
1729 p->flags &= ~TERMP_NOSPACE; in termp_eo_post()
1739 synopsis_pre(p, n); in termp_fo_pre()
1742 rmargin = p->tcol->rmargin; in termp_fo_pre()
1744 p->tcol->rmargin = p->tcol->offset + term_len(p, 4); in termp_fo_pre()
1745 p->flags |= TERMP_NOBREAK | TERMP_BRIND | in termp_fo_pre()
1748 p->flags |= TERMP_NOSPACE; in termp_fo_pre()
1749 term_word(p, "("); in termp_fo_pre()
1750 p->flags |= TERMP_NOSPACE; in termp_fo_pre()
1752 term_flushln(p); in termp_fo_pre()
1753 p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND | in termp_fo_pre()
1755 p->flags |= TERMP_NOPAD; in termp_fo_pre()
1756 p->tcol->offset = p->tcol->rmargin; in termp_fo_pre()
1757 p->tcol->rmargin = rmargin; in termp_fo_pre()
1761 return termp_bold_pre(p, pair, meta, n); in termp_fo_pre()
1771 p->flags |= TERMP_NOSPACE; in termp_fo_post()
1772 term_word(p, ")"); in termp_fo_post()
1775 p->flags |= TERMP_NOSPACE; in termp_fo_post()
1776 term_word(p, ";"); in termp_fo_post()
1777 term_flushln(p); in termp_fo_post()
1794 return termp_under_pre(p, pair, meta, n); in termp_bf_pre()
1796 return termp_bold_pre(p, pair, meta, n); in termp_bf_pre()
1798 return termp_li_pre(p, pair, meta, n); in termp_bf_pre()
1806 p->flags ^= TERMP_NONOSPACE; in termp_sm_pre()
1808 p->flags &= ~TERMP_NONOSPACE; in termp_sm_pre()
1810 p->flags |= TERMP_NONOSPACE; in termp_sm_pre()
1812 if (p->col && ! (TERMP_NONOSPACE & p->flags)) in termp_sm_pre()
1813 p->flags &= ~TERMP_NOSPACE; in termp_sm_pre()
1821 p->flags |= TERMP_NOSPACE; in termp_ap_pre()
1822 term_word(p, "'"); in termp_ap_pre()
1823 p->flags |= TERMP_NOSPACE; in termp_ap_pre()
1848 p->flags |= TERMP_NOSPACE; in termp____post()
1850 term_word(p, "."); in termp____post()
1851 p->flags |= TERMP_SENTENCE; in termp____post()
1853 term_word(p, ","); in termp____post()
1859 term_fontpush(p, TERMFONT_NONE); in termp_li_pre()
1879 term_fontpush(p, TERMFONT_UNDER); in termp_lk_pre()
1882 p->flags |= TERMP_NOSPACE; in termp_lk_pre()
1883 term_word(p, descr->string); in termp_lk_pre()
1886 term_fontpop(p); in termp_lk_pre()
1887 p->flags |= TERMP_NOSPACE; in termp_lk_pre()
1888 term_word(p, ":"); in termp_lk_pre()
1892 term_fontpush(p, TERMFONT_BOLD); in termp_lk_pre()
1893 term_word(p, link->string); in termp_lk_pre()
1894 term_fontpop(p); in termp_lk_pre()
1898 p->flags |= TERMP_NOSPACE; in termp_lk_pre()
1899 term_word(p, punct->string); in termp_lk_pre()
1915 p->flags |= TERMP_PREKEEP; in termp_bk_pre()
1927 p->flags &= ~(TERMP_KEEP | TERMP_PREKEEP); in termp_bk_post()
1939 termp_quote_post(p, pair, meta, n); in termp__t_post()
1940 termp____post(p, pair, meta, n); in termp__t_post()
1948 return termp_quote_pre(p, pair, meta, n); in termp__t_pre()
1950 return termp_under_pre(p, pair, meta, n); in termp__t_pre()
1956 term_fontpush(p, TERMFONT_UNDER); in termp_under_pre()