Lines Matching refs:rp

192 cell(struct tbl_node *tbl, struct tbl_row *rp,  in cell()  argument
202 if (rp->vert < 2) in cell()
203 rp->vert++; in cell()
235 if (rp->last == NULL) in cell()
238 else if (rp->last->pos == TBL_CELL_HORIZ || in cell()
239 rp->last->pos == TBL_CELL_DHORIZ) in cell()
240 c = rp->last->pos; in cell()
241 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row) in cell()
249 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos); in cell()
255 struct tbl_row *rp; in tbl_layout() local
257 rp = NULL; in tbl_layout()
267 rp = NULL; in tbl_layout()
282 mandoc_calloc(1, sizeof(*rp)); 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()
300 if (rp->last != NULL && 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()
307 if (rp->next != NULL && in tbl_layout()
308 rp->next->first == NULL) { in tbl_layout()
309 free(rp->next); in tbl_layout()
310 rp->next = NULL; in tbl_layout()
323 if (rp == NULL) { in tbl_layout()
326 rp = mandoc_calloc(1, sizeof(*rp)); 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
347 if ((pp = rp->last) != NULL) { in cell_alloc()
351 rp->first = p; in cell_alloc()
352 rp->last = p; in cell_alloc()