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