version 1.8, 2011/01/04 13:14:26 |
version 1.9, 2011/01/04 13:21:45 |
|
|
tbl_calc_data(struct termp *tp, const struct tbl *tbl, |
tbl_calc_data(struct termp *tp, const struct tbl *tbl, |
const struct tbl_dat *dp, struct termp_tbl *tblp) |
const struct tbl_dat *dp, struct termp_tbl *tblp) |
{ |
{ |
|
int sz; |
|
|
/* Branch down into data sub-types. */ |
/* Branch down into data sub-types. */ |
|
|
Line 462 tbl_calc_data(struct termp *tp, const struct tbl *tbl, |
|
Line 463 tbl_calc_data(struct termp *tp, const struct tbl *tbl, |
|
case (TBL_CELL_HORIZ): |
case (TBL_CELL_HORIZ): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case (TBL_CELL_DHORIZ): |
case (TBL_CELL_DHORIZ): |
tblp->width = term_len(tp, 1); |
sz = term_len(tp, 1); |
|
if (tblp->width < sz) |
|
tblp->width = sz; |
break; |
break; |
case (TBL_CELL_LONG): |
case (TBL_CELL_LONG): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |