Lines Matching full:rp
66 RANGE *rp; in ex_g_setup() local
227 if ((rp = TAILQ_LAST(ecp->rq, _rh)) != NULL && in ex_g_setup()
228 rp->stop == start - 1) { in ex_g_setup()
229 ++rp->stop; in ex_g_setup()
234 CALLOC(sp, rp, 1, sizeof(RANGE)); in ex_g_setup()
235 if (rp == NULL) in ex_g_setup()
237 rp->start = rp->stop = start; in ex_g_setup()
238 TAILQ_INSERT_TAIL(ecp->rq, rp, q); in ex_g_setup()
254 RANGE *nrp, *rp; in ex_g_insdel() local
266 TAILQ_FOREACH_SAFE(rp, ecp->rq, q, nrp) { in ex_g_insdel()
268 if (rp->stop < lno) in ex_g_insdel()
275 if (rp->start > lno) { in ex_g_insdel()
277 --rp->start; in ex_g_insdel()
278 --rp->stop; in ex_g_insdel()
280 ++rp->start; in ex_g_insdel()
281 ++rp->stop; in ex_g_insdel()
293 if (rp->start > --rp->stop) { in ex_g_insdel()
294 TAILQ_REMOVE(ecp->rq, rp, q); in ex_g_insdel()
295 free(rp); in ex_g_insdel()
300 nrp->stop = rp->stop + 1; in ex_g_insdel()
301 rp->stop = lno - 1; in ex_g_insdel()
302 TAILQ_INSERT_AFTER(ecp->rq, rp, nrp, q); in ex_g_insdel()