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,
143 tbl->parse, ln, *pos - 1, NULL);
146 mandoc_vmsg(MANDOCERR_TBLLAYOUT_CHAR, tbl->parse,
159 mandoc_vmsg(MANDOCERR_FT_BAD, tbl->parse,
181 mandoc_vmsg(MANDOCERR_FT_BAD, tbl->parse,
188 cell(struct tbl_node *tbl, struct tbl_row *rp,
202 tbl->parse, ln, *pos, NULL);
221 mandoc_vmsg(MANDOCERR_TBLLAYOUT_CHAR, tbl->parse,
233 tbl->parse, ln, *pos, NULL);
237 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row)
239 tbl->parse, ln, *pos, NULL);
245 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos);
249 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos)
269 tbl->part = TBL_PART_DATA;
276 if (tbl->first_row == NULL) {
277 tbl->first_row = tbl->last_row =
280 if (tbl->first_row->first == NULL) {
282 tbl->parse, ln, pos, NULL);
283 cell_alloc(tbl, tbl->first_row,
293 for (rp = tbl->first_row; rp; rp = rp->next) {
294 if (tbl->opts.lvert < rp->vert)
295 tbl->opts.lvert = rp->vert;
297 rp->last->col + 1 == tbl->opts.cols &&
298 tbl->opts.rvert < rp->last->vert)
299 tbl->opts.rvert = rp->last->vert;
307 tbl->last_row = rp;
321 if (tbl->last_row == NULL ||
322 tbl->last_row->first != NULL) {
324 if (tbl->last_row)
325 tbl->last_row->next = rp;
327 tbl->first_row = rp;
328 tbl->last_row = rp;
330 rp = tbl->last_row;
332 cell(tbl, rp, ln, p, &pos);
337 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos)
351 if (tbl->opts.cols <= p->col)
352 tbl->opts.cols = p->col + 1;