Lines Matching defs:tbl
30 #include "tbl.h"
63 mods(struct tbl_node *tbl, struct tbl_cell *cp,
205 cell(struct tbl_node *tbl, struct tbl_row *rp,
253 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row)
260 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos);
264 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos)
284 tbl->part = TBL_PART_DATA;
291 if (tbl->first_row == NULL) {
292 tbl->first_row = tbl->last_row =
295 if (tbl->first_row->first == NULL) {
298 cell_alloc(tbl, tbl->first_row,
300 if (tbl->opts.lvert < tbl->first_row->vert)
301 tbl->opts.lvert = tbl->first_row->vert;
310 for (rp = tbl->first_row; rp; rp = rp->next) {
311 if (tbl->opts.lvert < rp->vert)
312 tbl->opts.lvert = rp->vert;
314 rp->last->col + 1 == tbl->opts.cols &&
315 tbl->opts.rvert < rp->last->vert)
316 tbl->opts.rvert = rp->last->vert;
324 tbl->last_row = rp;
338 if (tbl->last_row == NULL ||
339 tbl->last_row->first != NULL) {
341 if (tbl->last_row)
342 tbl->last_row->next = rp;
344 tbl->first_row = rp;
345 tbl->last_row = rp;
347 rp = tbl->last_row;
349 cell(tbl, rp, ln, p, &pos);
354 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos)
370 if (tbl->opts.cols <= p->col)
371 tbl->opts.cols = p->col + 1;