| /libedit-20250104-3.1/src/ |
| D | history.c | 135 int num; member 196 #define history_def_setsize(p, num)(void) (((history_t *)p)->max = (num)) argument 452 ev->num = h->cursor->ev.num; in history_deldata_nth() 466 const int num) in history_def_del() argument 472 ev->num = h->cursor->ev.num; in history_def_del() 578 h->list.ev.num = 0; in history_def_init() 664 if (num < 0) { in history_setsize() 684 if (ev->num < -1) { in history_getsize() 919 if (ev->num == num) in history_prev_event() 933 if (ev->num == num) { in history_next_evdata() [all …]
|
| D | chared.c | 99 c_insert(EditLine *el, int num) in c_insert() argument 111 cp[num] = *cp; in c_insert() 113 el->el_line.lastchar += num; in c_insert() 121 c_delafter(EditLine *el, int num) in c_delafter() argument 132 if (num > 0) { in c_delafter() 136 *cp = cp[num]; in c_delafter() 138 el->el_line.lastchar -= num; in c_delafter() 170 cv_yank(el, el->el_line.cursor - num, num); in c_delbefore() 173 if (num > 0) { in c_delbefore() 179 *cp = cp[num]; in c_delbefore() [all …]
|
| D | read.c | 455 int num; in noedit_wgets() local 457 while ((num = (*el->el_read->read_char)(el, lp->lastchar)) == 1) { in noedit_wgets() 467 if (num == -1 && errno == EINTR) in noedit_wgets() 480 int num; /* how many chars we have read at NL */ in el_wgets() local 519 for (num = -1; num == -1;) { /* while still editing this line */ in el_wgets() 573 num = 0; in el_wgets() 574 else if (num == -1) { in el_wgets() 577 num = 1; in el_wgets() 582 num = (int)(el->el_line.lastchar - el->el_line.buffer); in el_wgets() 610 *nread = num != -1 ? num : 0; in el_wgets() [all …]
|
| D | refresh.c | 403 if (num <= 0) in re_insert() 405 if (num > dlen - dat) in re_insert() 406 num = dlen - dat; in re_insert() 415 if (num > 0) { in re_insert() 417 a = b - num; in re_insert() 430 for (a = d + dat; (a < d + dlen) && (num > 0); num--) in re_insert() 438 num, dat, dlen, d, s)); in re_insert() 454 if (num <= 0) in re_delete() 456 if (dat + num >= dlen) { in re_delete() 465 if (num > 0) { in re_delete() [all …]
|
| D | terminal.c | 678 if (num <= 0) in terminal_deletechars() 687 if (num > el->el_terminal.t_size.h) { in terminal_deletechars() 697 terminal_tputs(el, tgoto(Str(T_DC), num, num), num); in terminal_deletechars() 704 while (num--) in terminal_deletechars() 720 if (num <= 0) in terminal_insertwrite() 736 if ((num > 1) || !GoodStr(T_ic)) { in terminal_insertwrite() 738 terminal_tputs(el, tgoto(Str(T_IC), num, num), num); in terminal_insertwrite() 746 el->el_cursor.h += num; in terminal_insertwrite() 749 while (--num); in terminal_insertwrite() 769 } while (--num); in terminal_insertwrite() [all …]
|
| D | readline.c | 603 num = 0; in get_history_event() 605 num = num * 10 + cmd[idx] - '0'; in get_history_event() 609 num = history_length - num + history_base; in get_history_event() 651 num = ev.num; in get_history_event() 1490 history_get(int num) in history_get() argument 1505 curr_num = ev.num; in history_get() 1562 remove_history(int num) in remove_history() argument 1602 curr_num = ev.num; in replace_history_entry() 1721 curr_num = ev.num; in history_total_bytes() 1801 curr_num = ev.num; in history_search() [all …]
|
| D | hist.c | 170 int num; in hist_command() local 209 num = (int)wcstol(argv[2], NULL, 0); in hist_command() 212 return history_w(el->el_history.ref, &ev, H_SETSIZE, num); in hist_command() 215 return history_w(el->el_history.ref, &ev, H_SETUNIQUE, num); in hist_command()
|
| D | filecomplete.c | 538 fn_display_match_list(EditLine * el, char **matches, size_t num, size_t width, in fn_display_match_list() argument 548 num--; in fn_display_match_list() 559 lines = (num + cols - 1) / cols; in fn_display_match_list() 562 qsort(matches, num, sizeof(char *), _fn_qsort_string_compare); in fn_display_match_list() 570 if (thisguy >= num) in fn_display_match_list()
|
| D | hist.h | 66 #define HIST_SET(el, num) HIST_FUN(el, H_SET, num) argument
|
| D | histedit.h | 193 int num; member 293 int num; member
|
| D | common.c | 370 int num; in ed_quoted_insert() local 374 num = el_wgetc(el, &ch); in ed_quoted_insert() 376 if (num == 1) in ed_quoted_insert()
|
| D | vi.c | 982 el->el_history.eventno = 1 + el->el_history.ev.num in vi_to_history_line()
|
| /libedit-20250104-3.1/examples/ |
| D | tc1.c | 130 int num; in main() local 180 while ((buf = el_gets(el, &num)) != NULL && num != 0) { in main() 189 (void) fprintf(stderr, "==> got %d %s", num, buf); in main() 202 if (!continuation && num == 1) in main() 227 lastevent = ev.num; in main() 257 ev.num, ev.str); in main() 294 if (wait(&num) == -1) in main() 296 (void) fprintf(stderr, "Exit %x\n", num); in main()
|
| D | wtc1.c | 222 ev.num, ev.str); in main()
|
| /libedit-20250104-3.1/ |
| D | ltmain.sh | 6060 void *xmalloc (size_t num); 6334 xmalloc (size_t num) 6336 void *p = (void *) malloc (num);
|