Lines Matching refs:ev
199 HistEvent ev; in _move_history() local
202 if (history(h, &ev, op) != 0) in _move_history()
205 rl_he.line = ev.str; in _move_history()
287 HistEvent ev; in rl_initialize() local
316 history(h, &ev, H_SETSIZE, INT_MAX); /* unlimited */ in rl_initialize()
386 HistEvent ev; in readline() local
434 history(h, &ev, H_GETSIZE); in readline()
435 history_length = ev.num; in readline()
514 HistEvent ev; in get_history_event() local
522 if (history(h, &ev, H_FIRST) != 0) in get_history_event()
525 return ev.str; in get_history_event()
580 if (history(h, &ev, H_CURR) != 0) { in get_history_event()
585 num = ev.num; in get_history_event()
599 history(h, &ev, H_FIRST); in get_history_event()
615 if (history(h, &ev, H_CURR) != 0) in get_history_event()
618 rptr = ev.str; in get_history_event()
621 (void)history(h, &ev, H_SET, num); in get_history_event()
1135 HistEvent ev; in stifle_history() local
1140 if (history(h, &ev, H_SETSIZE, max) == 0) in stifle_history()
1151 HistEvent ev; in unstifle_history() local
1154 history(h, &ev, H_SETSIZE, INT_MAX); in unstifle_history()
1313 HistEvent ev; in read_history() local
1319 return history(h, &ev, H_LOAD, filename) == -1 ? in read_history()
1330 HistEvent ev; in write_history() local
1336 return history(h, &ev, H_SAVE, filename) == -1 ? in write_history()
1350 HistEvent ev; in history_get() local
1357 if (history(h, &ev, H_CURR) != 0) in history_get()
1359 curr_num = ev.num; in history_get()
1362 if (history(h, &ev, H_LAST) != 0) in history_get()
1366 if (history(h, &ev, H_NEXT_EVDATA, num, &she.data)) in history_get()
1369 she.line = ev.str; in history_get()
1372 (void)history(h, &ev, H_SET, curr_num); in history_get()
1384 HistEvent ev; in add_history() local
1392 (void)history(h, &ev, H_ENTER, line); in add_history()
1393 if (history(h, &ev, H_GETSIZE) == 0) in add_history()
1394 history_length = ev.num; in add_history()
1407 HistEvent ev; in remove_history() local
1415 if (history(h, &ev, H_DELDATA, num, &he->data) != 0) { in remove_history()
1420 he->line = ev.str; in remove_history()
1421 if (history(h, &ev, H_GETSIZE) == 0) in remove_history()
1422 history_length = ev.num; in remove_history()
1435 HistEvent ev; in replace_history_entry() local
1442 if (history(h, &ev, H_CURR) != 0) in replace_history_entry()
1444 curr_num = ev.num; in replace_history_entry()
1447 if (history(h, &ev, H_LAST) != 0) in replace_history_entry()
1454 if (history(h, &ev, H_NEXT_EVDATA, num, &he->data)) in replace_history_entry()
1457 he->line = strdup(ev.str); in replace_history_entry()
1461 if (history(h, &ev, H_REPLACE, line, data)) in replace_history_entry()
1465 if (history(h, &ev, H_SET, curr_num)) in replace_history_entry()
1480 HistEvent ev; in clear_history() local
1482 (void)history(h, &ev, H_CLEAR); in clear_history()
1493 HistEvent ev; in where_history() local
1496 if (history(h, &ev, H_CURR) != 0) in where_history()
1498 curr_num = ev.num; in where_history()
1500 (void)history(h, &ev, H_FIRST); in where_history()
1502 while (ev.num != curr_num && history(h, &ev, H_NEXT) == 0) in where_history()
1526 HistEvent ev; in history_total_bytes() local
1530 if (history(h, &ev, H_CURR) != 0) in history_total_bytes()
1532 curr_num = ev.num; in history_total_bytes()
1534 (void)history(h, &ev, H_FIRST); in history_total_bytes()
1537 size += strlen(ev.str) * sizeof(*ev.str); in history_total_bytes()
1538 while (history(h, &ev, H_NEXT) == 0); in history_total_bytes()
1541 history(h, &ev, H_PREV_EVENT, curr_num); in history_total_bytes()
1553 HistEvent ev; in history_set_pos() local
1559 (void)history(h, &ev, H_CURR); in history_set_pos()
1560 curr_num = ev.num; in history_set_pos()
1566 if (history(h, &ev, H_DELDATA, pos, (void **)-1)) { in history_set_pos()
1567 (void)history(h, &ev, H_SET, curr_num); in history_set_pos()
1602 HistEvent ev; in history_search() local
1606 if (history(h, &ev, H_CURR) != 0) in history_search()
1608 curr_num = ev.num; in history_search()
1611 if ((strp = strstr(ev.str, str)) != NULL) in history_search()
1612 return (int)(strp - ev.str); in history_search()
1613 if (history(h, &ev, direction < 0 ? H_NEXT:H_PREV) != 0) in history_search()
1616 (void)history(h, &ev, H_SET, curr_num); in history_search()
1627 HistEvent ev; in history_search_prefix() local
1629 return (history(h, &ev, direction < 0 ? in history_search_prefix()
1643 HistEvent ev; in history_search_pos() local
1649 if (history(h, &ev, H_CURR) != 0) in history_search_pos()
1651 curr_num = ev.num; in history_search_pos()
1653 if (history_set_pos(off) != 0 || history(h, &ev, H_CURR) != 0) in history_search_pos()
1657 if (strstr(ev.str, str)) in history_search_pos()
1659 if (history(h, &ev, (pos < 0) ? H_PREV : H_NEXT) != 0) in history_search_pos()
1664 (void)history(h, &ev, in history_search_pos()