Lines Matching defs:tbl
61 mods(struct tbl_node *tbl, struct tbl_cell *cp,
85 mandoc_msg(MANDOCERR_TBLLAYOUT_PAR, tbl->parse,
114 mandoc_msg(MANDOCERR_TBLLAYOUT_MOD, tbl->parse,
144 tbl->parse, ln, *pos - 1, NULL);
147 mandoc_vmsg(MANDOCERR_TBLLAYOUT_CHAR, tbl->parse,
160 mandoc_vmsg(MANDOCERR_FT_BAD, tbl->parse,
185 mandoc_vmsg(MANDOCERR_FT_BAD, tbl->parse,
192 cell(struct tbl_node *tbl, struct tbl_row *rp,
206 tbl->parse, ln, *pos, NULL);
225 mandoc_vmsg(MANDOCERR_TBLLAYOUT_CHAR, tbl->parse,
237 tbl->parse, ln, *pos, NULL);
241 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row)
243 tbl->parse, ln, *pos, NULL);
249 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos);
253 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos)
273 tbl->part = TBL_PART_DATA;
280 if (tbl->first_row == NULL) {
281 tbl->first_row = tbl->last_row =
284 if (tbl->first_row->first == NULL) {
286 tbl->parse, ln, pos, NULL);
287 cell_alloc(tbl, tbl->first_row,
297 for (rp = tbl->first_row; rp; rp = rp->next) {
298 if (tbl->opts.lvert < rp->vert)
299 tbl->opts.lvert = rp->vert;
301 rp->last->col + 1 == tbl->opts.cols &&
302 tbl->opts.rvert < rp->last->vert)
303 tbl->opts.rvert = rp->last->vert;
324 if (tbl->last_row == NULL ||
325 tbl->last_row->first != NULL) {
327 if (tbl->last_row)
328 tbl->last_row->next = rp;
330 tbl->first_row = rp;
331 tbl->last_row = rp;
333 rp = tbl->last_row;
335 cell(tbl, rp, ln, p, &pos);
340 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos)
354 if (tbl->opts.cols <= p->col)
355 tbl->opts.cols = p->col + 1;