Lines Matching defs:rp
211 cell(struct tbl_node *tbl, struct tbl_row *rp,
221 if (rp->vert < 2)
222 rp->vert++;
254 if (rp->last == NULL)
256 else if (rp->last->pos == TBL_CELL_HORIZ ||
257 rp->last->pos == TBL_CELL_DHORIZ)
258 c = rp->last->pos;
259 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row)
266 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos);
272 struct tbl_row *rp;
274 rp = NULL;
284 rp = NULL;
299 mandoc_calloc(1, sizeof(*rp));
316 for (rp = tbl->first_row; rp; rp = rp->next) {
317 if (tbl->opts.lvert < rp->vert)
318 tbl->opts.lvert = rp->vert;
319 if (rp->last != NULL &&
320 rp->last->col + 1 == tbl->opts.cols &&
321 tbl->opts.rvert < rp->last->vert)
322 tbl->opts.rvert = rp->last->vert;
326 if (rp->next != NULL &&
327 rp->next->first == NULL) {
328 free(rp->next);
329 rp->next = NULL;
330 tbl->last_row = rp;
343 if (rp == NULL) {
346 rp = mandoc_calloc(1, sizeof(*rp));
348 tbl->last_row->next = rp;
350 tbl->first_row = rp;
351 tbl->last_row = rp;
353 rp = tbl->last_row;
355 cell(tbl, rp, ln, p, &pos);
360 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos)
369 if ((pp = rp->last) != NULL) {
373 rp->first = p;
374 rp->last = p;