Lines Matching refs:cur
436 char* cur; /* current line */
471 if (bp->cur < bp->end && bp->restore >= 0)
472 *bp->cur = bp->restore;
473 if (strneq(bp->cur, promptbuf, promptlen))
474 r = bp->cur;
477 if (bp->cur < bp->end && bp->restore >= 0)
478 *bp->cur = 0;
501 *bp->cur = 0;
506 *bp->cur = bp->restore;
507 r = bp->cur;
512 bp->cur = bp->end = bp->buf;
517 bp->cur = bp->nxt;
532 else if (bp->cur < bp->end)
536 *bp->cur = bp->restore;
539 r = bp->cur;
547 bp->cur = bp->end = bp->buf;
563 if (bp->cur < bp->end)
567 *bp->cur = bp->restore;
570 r = bp->cur;
572 bp->cur = bp->end = bp->buf;
599 bp->cur += d;
605 if ((r = bp->cur) > bp->buf && bp->restore >= 0)
607 if (bp->cur = memchr(bp->cur, '\n', bp->end - bp->cur))
609 bp->restore = *++bp->cur;
610 *bp->cur = 0;
611 if (bp->cur >= bp->end)
613 bp->cur = bp->end = bp->buf;
616 else if (bp->nxt = memchr(bp->cur + 1, '\n', bp->end - bp->cur - 1))
624 bp->cur = r;
735 master->cur = master->end = master->buf;