Lines Matching refs:rp

207 cell(struct tbl_node *tbl, struct tbl_row *rp,  in cell()  argument
217 if (rp->vert < 2) in cell()
218 rp->vert++; in cell()
250 if (rp->last == NULL) in cell()
252 else if (rp->last->pos == TBL_CELL_HORIZ || in cell()
253 rp->last->pos == TBL_CELL_DHORIZ) in cell()
254 c = rp->last->pos; in cell()
255 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row) in cell()
262 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos); in cell()
268 struct tbl_row *rp; in tbl_layout() local
270 rp = NULL; in tbl_layout()
280 rp = NULL; in tbl_layout()
295 mandoc_calloc(1, sizeof(*rp)); in tbl_layout()
312 for (rp = tbl->first_row; rp; rp = rp->next) { in tbl_layout()
313 if (tbl->opts.lvert < rp->vert) in tbl_layout()
314 tbl->opts.lvert = rp->vert; in tbl_layout()
315 if (rp->last != NULL && in tbl_layout()
316 rp->last->col + 1 == tbl->opts.cols && in tbl_layout()
317 tbl->opts.rvert < rp->last->vert) in tbl_layout()
318 tbl->opts.rvert = rp->last->vert; in tbl_layout()
322 if (rp->next != NULL && in tbl_layout()
323 rp->next->first == NULL) { in tbl_layout()
324 free(rp->next); in tbl_layout()
325 rp->next = NULL; in tbl_layout()
326 tbl->last_row = rp; in tbl_layout()
339 if (rp == NULL) { in tbl_layout()
342 rp = mandoc_calloc(1, sizeof(*rp)); in tbl_layout()
344 tbl->last_row->next = rp; in tbl_layout()
346 tbl->first_row = rp; in tbl_layout()
347 tbl->last_row = rp; in tbl_layout()
349 rp = tbl->last_row; in tbl_layout()
351 cell(tbl, rp, ln, p, &pos); in tbl_layout()
356 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) in cell_alloc() argument
365 if ((pp = rp->last) != NULL) { in cell_alloc()
369 rp->first = p; in cell_alloc()
370 rp->last = p; in cell_alloc()