Lines Matching defs:rp
213 cell(struct tbl_node *tbl, struct tbl_row *rp,
223 if (rp->vert < 2)
224 rp->vert++;
256 if (rp->last == NULL)
258 else if (rp->last->pos == TBL_CELL_HORIZ ||
259 rp->last->pos == TBL_CELL_DHORIZ)
260 c = rp->last->pos;
261 } else if (c == TBL_CELL_DOWN && rp == tbl->first_row)
268 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos);
274 struct tbl_row *rp;
276 rp = NULL;
286 rp = NULL;
301 mandoc_calloc(1, sizeof(*rp));
318 for (rp = tbl->first_row; rp; rp = rp->next) {
319 if (tbl->opts.lvert < rp->vert)
320 tbl->opts.lvert = rp->vert;
321 if (rp->last != NULL &&
322 rp->last->col + 1 == tbl->opts.cols &&
323 tbl->opts.rvert < rp->last->vert)
324 tbl->opts.rvert = rp->last->vert;
328 if (rp->next != NULL &&
329 rp->next->first == NULL) {
330 free(rp->next);
331 rp->next = NULL;
332 tbl->last_row = rp;
345 if (rp == NULL) {
348 rp = mandoc_calloc(1, sizeof(*rp));
350 tbl->last_row->next = rp;
352 tbl->first_row = rp;
353 tbl->last_row = rp;
355 rp = tbl->last_row;
357 cell(tbl, rp, ln, p, &pos);
362 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos)
371 if ((pp = rp->last) != NULL) {
375 rp->first = p;
376 rp->last = p;