Lines Matching refs:opts

196 		if (sp->opts->opts & TBL_OPT_CENTRE) {  in term_tbl()
197 tsz = sp->opts->opts & (TBL_OPT_BOX | TBL_OPT_DBOX) in term_tbl()
198 ? 2 : !!sp->opts->lvert + !!sp->opts->rvert; in term_tbl()
199 for (ic = 0; ic + 1 < sp->opts->cols; ic++) in term_tbl()
202 if (sp->opts->cols) in term_tbl()
203 tsz += tp->tbl.cols[sp->opts->cols - 1].width; in term_tbl()
214 sp->opts->opts & TBL_OPT_DBOX) in term_tbl()
216 if (sp->opts->opts & (TBL_OPT_DBOX | TBL_OPT_BOX)) in term_tbl()
232 term_setcol(tp, sp->opts->cols + 2); in term_tbl()
237 if (sp->opts->opts & (TBL_OPT_BOX | TBL_OPT_DBOX) || in term_tbl()
238 sp->opts->lvert) in term_tbl()
246 for (ic = 0; ic < sp->opts->cols; ic++) { in term_tbl()
253 if (ic + 1 < sp->opts->cols) in term_tbl()
282 for (ic = 0; ic < sp->opts->cols; ic++) { in term_tbl()
293 tbl_data(tp, sp->opts, cp, dp, tp->tbl.cols + ic); in term_tbl()
307 uvert = dvert = sp->opts->opts & TBL_OPT_DBOX ? 2 : in term_tbl()
308 sp->opts->opts & TBL_OPT_BOX ? 1 : 0; in term_tbl()
325 if (uvert > 0 || dvert > 0 || (horiz && sp->opts->lvert)) { in term_tbl()
344 for (ic = 0; ic < sp->opts->cols; ic++) { in term_tbl()
383 if (sp->opts->opts & TBL_OPT_ALLBOX) { in term_tbl()
494 uvert = dvert = sp->opts->opts & TBL_OPT_DBOX ? 2 : in term_tbl()
495 sp->opts->opts & TBL_OPT_BOX ? 1 : 0; in term_tbl()
498 sp->layout->last->col + 1 == sp->opts->cols) in term_tbl()
502 sp->next->layout->last->col + 1 == sp->opts->cols) in term_tbl()
506 sp->prev->layout->last->col + 1 == sp->opts->cols && in term_tbl()
513 sp->last->layout->col + 1 == sp->opts->cols) || in term_tbl()
515 sp->layout->last->col + 1 == sp->opts->cols) ? 2 : in term_tbl()
519 sp->last->layout->col + 1 == sp->opts->cols) || in term_tbl()
521 sp->layout->last->col + 1 == sp->opts->cols) ? 1 : 0; in term_tbl()
523 if (uvert > 0 || dvert > 0 || (horiz && sp->opts->rvert)) { in term_tbl()
525 sp->layout->last->col + 1 < sp->opts->cols)) { in term_tbl()
548 if (sp->opts->opts & (TBL_OPT_DBOX | TBL_OPT_BOX)) { in term_tbl()
553 sp->opts->opts & TBL_OPT_DBOX) { in term_tbl()
560 } else if (horiz == 0 && sp->opts->opts & TBL_OPT_ALLBOX && in term_tbl()
578 int opts; /* For the table as a whole. */ in tbl_hrule() local
594 opts = sp->opts->opts; in tbl_hrule()
595 bw = opts & TBL_OPT_DBOX ? (tp->enc == TERMENC_UTF8 ? 2 : 1) : in tbl_hrule()
596 opts & (TBL_OPT_BOX | TBL_OPT_ALLBOX) ? 1 : 0; in tbl_hrule()
640 if (uw == 0 && opts & TBL_OPT_ALLBOX) in tbl_hrule()
644 } else if (spp != NULL && opts & TBL_OPT_ALLBOX) in tbl_hrule()
651 if (dw == 0 && opts & TBL_OPT_ALLBOX) in tbl_hrule()
657 } else if (spn != NULL && opts & TBL_OPT_ALLBOX) in tbl_hrule()
659 if (col + 1 == tp->tbl.cols + sp->opts->cols) in tbl_hrule()
715 tbl_data(struct termp *tp, const struct tbl_opts *opts, in tbl_data() argument
756 tbl_number(tp, opts, dp, col); in tbl_data()
854 tbl_number(struct termp *tp, const struct tbl_opts *opts, in tbl_number() argument
873 } else if (cp[0] == opts->decimal && in tbl_number()