Lines Matching refs:ev
311 HistEvent ev; in rl_initialize() local
344 history(h, &ev, H_SETSIZE, INT_MAX); /* unlimited */ in rl_initialize()
444 HistEvent ev; in readline() local
498 history(h, &ev, H_GETSIZE); in readline()
499 history_length = ev.num; in readline()
581 HistEvent ev; in get_history_event() local
589 if (history(h, &ev, H_FIRST) != 0) in get_history_event()
592 return ev.str; in get_history_event()
646 if (history(h, &ev, H_CURR) != 0) { in get_history_event()
651 num = ev.num; in get_history_event()
664 history(h, &ev, H_FIRST); in get_history_event()
679 if (history(h, &ev, H_CURR) != 0) in get_history_event()
682 rptr = ev.str; in get_history_event()
685 (void)history(h, &ev, H_SET, num); in get_history_event()
825 int p_on = 0, g_on = 0, ev; in _history_expand_command() local
961 ev = -1; in _history_expand_command()
965 if ((ev = getfrom(&cmd, &from, search, delim)) != 1) in _history_expand_command()
967 if ((ev = getto(&cmd, &to, from, delim)) != 1) in _history_expand_command()
983 return ev; in _history_expand_command()
1240 HistEvent ev; in stifle_history() local
1246 if (history(h, &ev, H_SETSIZE, max) == 0) { in stifle_history()
1266 HistEvent ev; in unstifle_history() local
1269 history(h, &ev, H_SETSIZE, INT_MAX); in unstifle_history()
1428 HistEvent ev; in read_history() local
1435 if (history(h, &ev, H_LOAD, filename) == -1) in read_history()
1437 if (history(h, &ev, H_GETSIZE) == 0) in read_history()
1438 history_length = ev.num; in read_history()
1451 HistEvent ev; in write_history() local
1457 return history(h, &ev, H_SAVE, filename) == -1 ? in write_history()
1464 HistEvent ev; in append_history() local
1475 if (history(h, &ev, H_NSAVE_FP, (size_t)n, fp) == -1) { in append_history()
1493 HistEvent ev; in history_get() local
1503 if (history(h, &ev, H_CURR) != 0) in history_get()
1505 curr_num = ev.num; in history_get()
1511 if (history(h, &ev, H_DELDATA, num - history_base, (void **)-1) != 0) in history_get()
1515 if (history(h, &ev, H_CURR) != 0) in history_get()
1517 if (history(h, &ev, H_NEXT_EVDATA, ev.num, &she.data) != 0) in history_get()
1519 she.line = ev.str; in history_get()
1522 (void)history(h, &ev, H_SET, curr_num); in history_get()
1528 (void)history(h, &ev, H_SET, curr_num); in history_get()
1539 HistEvent ev; in add_history() local
1544 if (history(h, &ev, H_ENTER, line) == -1) in add_history()
1547 (void)history(h, &ev, H_GETSIZE); in add_history()
1548 if (ev.num == history_length) in add_history()
1552 history_length = ev.num; in add_history()
1565 HistEvent ev; in remove_history() local
1573 if (history(h, &ev, H_DELDATA, num, &he->data) != 0) { in remove_history()
1578 he->line = ev.str; in remove_history()
1579 if (history(h, &ev, H_GETSIZE) == 0) in remove_history()
1580 history_length = ev.num; in remove_history()
1593 HistEvent ev; in replace_history_entry() local
1600 if (history(h, &ev, H_CURR) != 0) in replace_history_entry()
1602 curr_num = ev.num; in replace_history_entry()
1605 if (history(h, &ev, H_LAST) != 0) in replace_history_entry()
1612 if (history(h, &ev, H_NEXT_EVDATA, num, &he->data)) in replace_history_entry()
1615 he->line = ev.str; in replace_history_entry()
1619 if (history(h, &ev, H_REPLACE, line, data)) in replace_history_entry()
1623 if (history(h, &ev, H_SET, curr_num)) in replace_history_entry()
1638 HistEvent ev; in clear_history() local
1643 (void)history(h, &ev, H_CLEAR); in clear_history()
1663 HistEvent ev; in history_list() local
1667 if (history(h, &ev, H_LAST) != 0) in history_list()
1683 _history_list[i].line = ev.str; in history_list()
1687 } while (history(h, &ev, H_PREV) == 0); in history_list()
1698 HistEvent ev; in current_history() local
1700 if (history(h, &ev, H_PREV_EVENT, history_offset + 1) != 0) in current_history()
1703 rl_he.line = ev.str; in current_history()
1715 HistEvent ev; in history_total_bytes() local
1719 if (history(h, &ev, H_CURR) != 0) in history_total_bytes()
1721 curr_num = ev.num; in history_total_bytes()
1723 (void)history(h, &ev, H_FIRST); in history_total_bytes()
1726 size += strlen(ev.str) * sizeof(*ev.str); in history_total_bytes()
1727 while (history(h, &ev, H_NEXT) == 0); in history_total_bytes()
1730 history(h, &ev, H_PREV_EVENT, curr_num); in history_total_bytes()
1757 HistEvent ev; in previous_history() local
1762 if (history(h, &ev, H_LAST) != 0) in previous_history()
1776 HistEvent ev; in next_history() local
1781 if (history(h, &ev, H_LAST) != 0) in next_history()
1795 HistEvent ev; in history_search() local
1799 if (history(h, &ev, H_CURR) != 0) in history_search()
1801 curr_num = ev.num; in history_search()
1804 if ((strp = strstr(ev.str, str)) != NULL) in history_search()
1805 return (int)(strp - ev.str); in history_search()
1806 if (history(h, &ev, direction < 0 ? H_NEXT:H_PREV) != 0) in history_search()
1809 (void)history(h, &ev, H_SET, curr_num); in history_search()
1820 HistEvent ev; in history_search_prefix() local
1822 return (history(h, &ev, direction < 0 ? in history_search_prefix()
1836 HistEvent ev; in history_search_pos() local
1842 if (history(h, &ev, H_CURR) != 0) in history_search_pos()
1844 curr_num = ev.num; in history_search_pos()
1846 if (!history_set_pos(off) || history(h, &ev, H_CURR) != 0) in history_search_pos()
1850 if (strstr(ev.str, str)) in history_search_pos()
1852 if (history(h, &ev, (pos < 0) ? H_PREV : H_NEXT) != 0) in history_search_pos()
1857 (void)history(h, &ev, in history_search_pos()