Lines Matching defs:col
124 struct roffcol *col;
153 icol = dp->layout->col;
156 col = tbl->cols + icol;
157 col->flags |= dp->layout->flags;
169 if (col->width < dp->layout->width)
170 col->width = dp->layout->width;
172 (col->spacing == SIZE_MAX ||
173 col->spacing < dp->layout->spacing))
174 col->spacing = dp->layout->spacing;
182 dp->hspans == 0 ? col : NULL,
221 col = tbl->cols + icol;
222 if (col->width < 1)
223 col->width = 1;
230 if (col->spacing == SIZE_MAX || icol == maxcol)
231 col->spacing = 3;
344 col = tbl->cols + icol;
345 if (col->width > col->nwidth)
346 col->decimal += (col->width - col->nwidth) / 2;
347 if (col->flags & TBL_CELL_EQUAL) {
349 if (ewidth < col->width)
350 ewidth = col->width;
352 if (col->flags & TBL_CELL_WMAX)
355 xwidth += col->width;
365 col = tbl->cols + icol;
366 if ( ! (col->flags & TBL_CELL_EQUAL))
368 if (col->width == ewidth)
371 xwidth += ewidth - col->width;
372 col->width = ewidth;
407 col = tbl->cols + icol;
408 if ( ! (col->flags & TBL_CELL_WMAX))
410 col->width = (double)xwidth * ++necol / nxcol
413 col->width--;
414 ewidth += col->width;
420 tblcalc_data(struct rofftbl *tbl, struct roffcol *col,
431 if (col != NULL && col->width < sz)
432 col->width = sz;
438 return tblcalc_literal(tbl, col, dp, mw);
440 return tblcalc_number(tbl, col, opts, dp);
449 tblcalc_literal(struct rofftbl *tbl, struct roffcol *col,
480 if (col != NULL && col->width < msz)
481 col->width = msz;
486 tblcalc_number(struct rofftbl *tbl, struct roffcol *col,
497 if (col == NULL)
522 if (col != NULL && col->width < totsz)
523 col->width = totsz;
544 if (intsz > col->decimal) {
545 col->nwidth += intsz - col->decimal;
546 col->decimal = intsz;
548 totsz += col->decimal - intsz;
552 if (totsz > col->nwidth)
553 col->nwidth = totsz;
554 if (col->nwidth > col->width)
555 col->width = col->nwidth;