Lines Matching refs:lp
134 line_ptr_decrement (const Buf *x, const Line_ptr *lp) in line_ptr_decrement() argument
138 if (lp->ptr > x->p[lp->i].start) in line_ptr_decrement()
140 lp_new.i = lp->i; in line_ptr_decrement()
141 lp_new.ptr = lp->ptr - 1; in line_ptr_decrement()
145 affirm (lp->i > 0); in line_ptr_decrement()
146 lp_new.i = lp->i - 1; in line_ptr_decrement()
147 lp_new.ptr = ONE_PAST_END (x, lp->i - 1) - 1; in line_ptr_decrement()
153 line_ptr_increment (const Buf *x, const Line_ptr *lp) in line_ptr_increment() argument
157 affirm (lp->ptr <= ONE_PAST_END (x, lp->i) - 1); in line_ptr_increment()
158 if (lp->ptr < ONE_PAST_END (x, lp->i) - 1) in line_ptr_increment()
160 lp_new.i = lp->i; in line_ptr_increment()
161 lp_new.ptr = lp->ptr + 1; in line_ptr_increment()
165 affirm (lp->i < x->n_bufs - 1); in line_ptr_increment()
166 lp_new.i = lp->i + 1; in line_ptr_increment()
167 lp_new.ptr = x->p[lp->i + 1].start; in line_ptr_increment()