Home | History | Annotate | Download | only in src

Lines Matching defs:cp

313 read_char(EditLine *el, Char *cp)
339 *cp = '\0';
347 *cp = '\0';
356 if ((bytes = ct_mbtowc(cp, cbuf, cbp)) == -1) {
360 *cp = '\0';
369 (bytes = ct_mbtowc(cp, cbuf, cbp)) != 1)
371 *cp = (unsigned char)cbuf[0];
400 FUN(el,getc)(EditLine *el, Char *cp)
420 *cp = ma->macro[0][ma->offset++];
439 num_read = (*el->el_read.read_char)(el, cp);
444 *cp = *(char *)(void *)cp;
447 (void) fprintf(el->el_errfile, "Got it %c\n", *cp);
488 Char ch, *cp;
502 cp = el->el_line.buffer;
503 while ((num = (*el->el_read.read_char)(el, cp)) == 1) {
505 if (cp + 1 >= el->el_line.limit) {
506 idx = (size_t)(cp - el->el_line.buffer);
509 cp = &el->el_line.buffer[idx];
511 cp++;
514 if (cp[-1] == '\r' || cp[-1] == '\n')
519 cp = el->el_line.buffer;
549 cp = el->el_line.buffer;
551 cp = el->el_line.lastchar;
555 while ((num = (*el->el_read.read_char)(el, cp)) == 1) {
557 if (cp + 1 >= el->el_line.limit) {
558 idx = (size_t)(cp - el->el_line.buffer);
561 cp = &el->el_line.buffer[idx];
563 cp++;
564 crlf = cp[-1] == '\r' || cp[-1] == '\n';
573 cp = el->el_line.buffer;
723 el->el_line.cursor = el->el_line.lastchar = cp;
724 *cp = '\0';