Lines Matching defs:tbl
33 #include "tbl.h"
113 * all rows and cells in the table. The function pointers in "tbl" are
117 tblcalc(struct rofftbl *tbl, const struct tbl_span *sp_first,
149 assert(tbl->cols == NULL);
150 tbl->cols = mandoc_calloc((size_t)sp_first->opts->cols,
156 enw = (*tbl->len)(1, tbl->arg);
169 tbl->cols[++maxcol].spacing = SIZE_MAX;
170 col = tbl->cols + icol;
188 width = tblcalc_data(tbl,
228 col = tbl->cols + icol;
250 width = tbl->cols[icol].width;
252 width += (*tbl->len)(tbl->cols[icol].spacing,
253 tbl->arg);
279 colwidth[icol] = tbl->cols[icol].width;
326 tbl->cols[icol].width += g->wanted;
330 tbl->cols[icol].width = wanted;
352 col = tbl->cols + icol;
373 col = tbl->cols + icol;
391 xwidth += (*tbl->len)(3 * maxcol +
393 2 : !!opts->lvert + !!opts->rvert), tbl->arg);
399 * Emulate a bug in GNU tbl width calculation that
415 col = tbl->cols + icol;
428 tblcalc_data(struct rofftbl *tbl, struct roffcol *col,
438 sz = (*tbl->len)(1, tbl->arg);
446 return tblcalc_literal(tbl, col, dp, mw);
448 return tblcalc_number(tbl, col, opts, dp);
457 tblcalc_literal(struct rofftbl *tbl, struct roffcol *col,
481 wsz = (*tbl->slen)(beg, tbl->arg);
482 enw = (*tbl->len)(1, tbl->arg);
498 tblcalc_number(struct rofftbl *tbl, struct roffcol *col,
509 totsz = (*tbl->slen)(dp->string, tbl->arg);
548 intsz += (*tbl->slen)(buf, tbl->arg);