Home
last modified time | relevance | path

Searched refs:tcol (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/mandoc/
H A Dterm.c55 p->tcol = p->tcols; in term_setcol()
62 for (p->tcol = p->tcols; p->tcol < p->tcols + p->maxtcol; p->tcol++) in term_free()
63 free(p->tcol->buf); in term_free()
109 vbl = (p->flags & TERMP_NOPAD) || p->tcol->offset < p->viscol ? in term_flushln()
110 0 : p->tcol->offset - p->viscol; in term_flushln()
115 p->tcol->col = 0; in term_flushln()
120 vfield = p->tcol->rmargin > p->viscol + vbl ? in term_flushln()
121 p->tcol->rmargin - p->viscol - vbl : 0; in term_flushln()
161 p->tcol->taboff += vbr; in term_flushln()
163 p->tcol->taboff += vtarget; in term_flushln()
[all …]
H A Dman_term.c158 p->tcol->rmargin = p->maxrmargin = p->defrmargin; in terminal_man()
247 if (n->parent->tok == MAN_HP && p->tcol->rmargin < p->maxrmargin) { in pre_literal()
248 p->tcol->offset = p->tcol->rmargin; in pre_literal()
249 p->tcol->rmargin = p->maxrmargin; in pre_literal()
382 p->tcol->offset = mt->offset; in pre_in()
402 p->tcol->offset -= p->tcol->offset > v ? v : p->tcol->offset; in pre_in()
404 p->tcol->offset += v; in pre_in()
406 p->tcol->offset = v; in pre_in()
407 if (p->tcol->offset > SHRT_MAX) in pre_in()
408 p->tcol->offset = term_len(p, p->defindent); in pre_in()
[all …]
H A Droff_term.c72 p->tcol->offset = p->tcol->rmargin; in roff_term_pre_br()
73 p->tcol->rmargin = p->maxrmargin; in roff_term_pre_br()
166 p->tcol->offset -= pouse; in roff_term_pre_po()
184 po < -(int)p->tcol->offset ? -(int)p->tcol->offset : po; in roff_term_pre_po()
185 p->tcol->offset += pouse; in roff_term_pre_po()
246 if (p->tcol->offset + len <= maxoff) in roff_term_pre_ti()
248 else if (p->tcol->offset < maxoff) in roff_term_pre_ti()
249 p->ti = maxoff - p->tcol->offset; in roff_term_pre_ti()
254 if ((size_t)len < p->tcol->offset) in roff_term_pre_ti()
257 p->ti = -p->tcol->offset; in roff_term_pre_ti()
[all …]
H A Dmdoc_term.c255 p->tcol->rmargin = p->maxrmargin = p->defrmargin; in terminal_mdoc()
328 offset = p->tcol->offset; in print_mdoc_node()
329 rmargin = p->tcol->rmargin; in print_mdoc_node()
437 p->tcol->offset = offset; in print_mdoc_node()
438 p->tcol->rmargin = rmargin; in print_mdoc_node()
458 p->tcol->offset = 0; in print_mdoc_foot()
460 p->tcol->rmargin = p->maxrmargin > sz ? in print_mdoc_foot()
468 p->tcol->offset = p->tcol->rmargin; in print_mdoc_foot()
470 p->tcol->rmargin = p->maxrmargin > sz ? p->maxrmargin - sz : 0; in print_mdoc_foot()
476 p->tcol->offset = p->tcol->rmargin; in print_mdoc_foot()
[all …]
H A Dtbl_term.c178 save_offset = tp->tcol->offset; in term_tbl()
194 tblcalc(&tp->tbl, sp, tp->tcol->offset, tp->tcol->rmargin); in term_tbl()
198 offset = tp->tcol->offset; in term_tbl()
207 if (offset + tsz > tp->tcol->rmargin) in term_tbl()
209 offset = offset + tp->tcol->rmargin > tsz ? in term_tbl()
210 (offset + tp->tcol->rmargin - tsz) / 2 : 0; in term_tbl()
211 tp->tcol->offset = offset; in term_tbl()
226 tp->tcol->offset = offset; in term_tbl()
236 coloff = tp->tcol->offset; in term_tbl()
243 tp->tcol->rmargin = coloff; in term_tbl()
[all …]
H A Dterm_ascii.c71 p->tcol = p->tcols = mandoc_calloc(1, sizeof(*p->tcol)); in ascii_init()
166 p->tcol->rmargin = p->defrmargin; in ascii_setwidth()
177 p->lastrmargin = p->tcol->rmargin; in ascii_setwidth()
178 p->tcol->rmargin = p->maxrmargin = p->defrmargin; in ascii_setwidth()
234 if ((int)p->tcol->offset > p->ti) in ascii_endline()
235 p->tcol->offset -= p->ti; in ascii_endline()
237 p->tcol->offset = 0; in ascii_endline()
409 if ((int)p->tcol->offset > p->ti) in locale_endline()
410 p->tcol->offset -= p->ti; in locale_endline()
412 p->tcol->offset = 0; in locale_endline()
H A Dterm_ps.c535 p->tcol = p->tcols = mandoc_calloc(1, sizeof(*p->tcol)); in pspdf_alloc()
1255 if ((int)p->tcol->offset > p->ti) in ps_endline()
1256 p->tcol->offset -= p->ti; in ps_endline()
1258 p->tcol->offset = 0; in ps_endline()
H A Dterm.h65 struct termp_col *tcol; /* Current table column. */ member
/freebsd/contrib/nvi/vi/
H A Dv_txt.c262 size_t tcol; /* Temporary column. */ in v_txt() local
1308 if (vs_column(sp, &tcol)) in v_txt()
1310 if (tcol >= margin) { in v_txt()