Lines Matching defs:tbl
32 #include "tbl.h"
65 mods(struct tbl_node *tbl, struct tbl_cell *cp,
213 cell(struct tbl_node *tbl, struct tbl_row *rp,
261 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row)
268 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos);
272 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos)
292 tbl->part = TBL_PART_DATA;
299 if (tbl->first_row == NULL) {
300 tbl->first_row = tbl->last_row =
303 if (tbl->first_row->first == NULL) {
306 cell_alloc(tbl, tbl->first_row,
308 if (tbl->opts.lvert < tbl->first_row->vert)
309 tbl->opts.lvert = tbl->first_row->vert;
318 for (rp = tbl->first_row; rp; rp = rp->next) {
319 if (tbl->opts.lvert < rp->vert)
320 tbl->opts.lvert = rp->vert;
322 rp->last->col + 1 == tbl->opts.cols &&
323 tbl->opts.rvert < rp->last->vert)
324 tbl->opts.rvert = rp->last->vert;
332 tbl->last_row = rp;
346 if (tbl->last_row == NULL ||
347 tbl->last_row->first != NULL) {
349 if (tbl->last_row)
350 tbl->last_row->next = rp;
352 tbl->first_row = rp;
353 tbl->last_row = rp;
355 rp = tbl->last_row;
357 cell(tbl, rp, ln, p, &pos);
362 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos)
378 if (tbl->opts.cols <= p->col)
379 tbl->opts.cols = p->col + 1;