• Home
  • Raw
  • Download

Lines Matching refs:el_chared

61 	c_undo_t *vu = &el->el_chared.c_undo;  in cv_undo()
62 c_redo_t *r = &el->el_chared.c_redo; in cv_undo()
73 r->action = el->el_chared.c_vcmd.action; in cv_undo()
85 c_kill_t *k = &el->el_chared.c_kill; in cv_yank()
290 if (n || el->el_chared.c_vcmd.action != (DELETE|INSERT)) in cv_next_word()
336 int action = el->el_chared.c_vcmd.action; in cv_delfini()
341 if (el->el_chared.c_vcmd.pos == 0) in cv_delfini()
345 size = (int)(el->el_line.cursor - el->el_chared.c_vcmd.pos); in cv_delfini()
348 el->el_line.cursor = el->el_chared.c_vcmd.pos; in cv_delfini()
363 el->el_chared.c_vcmd.action = NOP; in cv_delfini()
395 c_macro_t *ma = &el->el_chared.c_macro; in ch_init()
408 el->el_chared.c_undo.buf = el_malloc(EL_BUFSIZ * in ch_init()
409 sizeof(*el->el_chared.c_undo.buf)); in ch_init()
410 if (el->el_chared.c_undo.buf == NULL) in ch_init()
412 (void) memset(el->el_chared.c_undo.buf, 0, EL_BUFSIZ * in ch_init()
413 sizeof(*el->el_chared.c_undo.buf)); in ch_init()
414 el->el_chared.c_undo.len = -1; in ch_init()
415 el->el_chared.c_undo.cursor = 0; in ch_init()
416 el->el_chared.c_redo.buf = el_malloc(EL_BUFSIZ * in ch_init()
417 sizeof(*el->el_chared.c_redo.buf)); in ch_init()
418 if (el->el_chared.c_redo.buf == NULL) in ch_init()
420 el->el_chared.c_redo.pos = el->el_chared.c_redo.buf; in ch_init()
421 el->el_chared.c_redo.lim = el->el_chared.c_redo.buf + EL_BUFSIZ; in ch_init()
422 el->el_chared.c_redo.cmd = ED_UNASSIGNED; in ch_init()
424 el->el_chared.c_vcmd.action = NOP; in ch_init()
425 el->el_chared.c_vcmd.pos = el->el_line.buffer; in ch_init()
427 el->el_chared.c_kill.buf = el_malloc(EL_BUFSIZ * in ch_init()
428 sizeof(*el->el_chared.c_kill.buf)); in ch_init()
429 if (el->el_chared.c_kill.buf == NULL) in ch_init()
431 (void) memset(el->el_chared.c_kill.buf, 0, EL_BUFSIZ * in ch_init()
432 sizeof(*el->el_chared.c_kill.buf)); in ch_init()
433 el->el_chared.c_kill.mark = el->el_line.buffer; in ch_init()
434 el->el_chared.c_kill.last = el->el_chared.c_kill.buf; in ch_init()
435 el->el_chared.c_resizefun = NULL; in ch_init()
436 el->el_chared.c_resizearg = NULL; in ch_init()
463 el->el_chared.c_undo.len = -1; in ch_reset()
464 el->el_chared.c_undo.cursor = 0; in ch_reset()
466 el->el_chared.c_vcmd.action = NOP; in ch_reset()
467 el->el_chared.c_vcmd.pos = el->el_line.buffer; in ch_reset()
469 el->el_chared.c_kill.mark = el->el_line.buffer; in ch_reset()
488 c_macro_t *ma = &el->el_chared.c_macro; in ch__clearmacro()
535 newbuffer = el_realloc(el->el_chared.c_kill.buf, newsz * in ch_enlargebufs()
543 oldkbuf = el->el_chared.c_kill.buf; in ch_enlargebufs()
545 el->el_chared.c_kill.buf = newbuffer; in ch_enlargebufs()
546 el->el_chared.c_kill.last = newbuffer + in ch_enlargebufs()
547 (el->el_chared.c_kill.last - oldkbuf); in ch_enlargebufs()
548 el->el_chared.c_kill.mark = el->el_line.buffer + in ch_enlargebufs()
549 (el->el_chared.c_kill.mark - oldbuf); in ch_enlargebufs()
554 newbuffer = el_realloc(el->el_chared.c_undo.buf, in ch_enlargebufs()
561 el->el_chared.c_undo.buf = newbuffer; in ch_enlargebufs()
563 newbuffer = el_realloc(el->el_chared.c_redo.buf, in ch_enlargebufs()
567 el->el_chared.c_redo.pos = newbuffer + in ch_enlargebufs()
568 (el->el_chared.c_redo.pos - el->el_chared.c_redo.buf); in ch_enlargebufs()
569 el->el_chared.c_redo.lim = newbuffer + in ch_enlargebufs()
570 (el->el_chared.c_redo.lim - el->el_chared.c_redo.buf); in ch_enlargebufs()
571 el->el_chared.c_redo.buf = newbuffer; in ch_enlargebufs()
578 if (el->el_chared.c_resizefun) in ch_enlargebufs()
579 (*el->el_chared.c_resizefun)(el, el->el_chared.c_resizearg); in ch_enlargebufs()
592 el_free(el->el_chared.c_undo.buf); in ch_end()
593 el->el_chared.c_undo.buf = NULL; in ch_end()
594 el_free(el->el_chared.c_redo.buf); in ch_end()
595 el->el_chared.c_redo.buf = NULL; in ch_end()
596 el->el_chared.c_redo.pos = NULL; in ch_end()
597 el->el_chared.c_redo.lim = NULL; in ch_end()
598 el->el_chared.c_redo.cmd = ED_UNASSIGNED; in ch_end()
599 el_free(el->el_chared.c_kill.buf); in ch_end()
600 el->el_chared.c_kill.buf = NULL; in ch_end()
602 el_free(el->el_chared.c_macro.macro); in ch_end()
603 el->el_chared.c_macro.macro = NULL; in ch_end()
756 el->el_chared.c_resizefun = f; in ch_resizefun()
757 el->el_chared.c_resizearg = a; in ch_resizefun()