Lines Matching refs:h

181 static History *h = NULL;  variable
317 if (h != NULL) in rl_initialize()
318 history_end(h); in rl_initialize()
340 h = history_init(); in rl_initialize()
341 if (!e || !h) in rl_initialize()
344 history(h, &ev, H_SETSIZE, INT_MAX); /* unlimited */ in rl_initialize()
347 el_set(e, EL_HIST, history, h); in rl_initialize()
358 history_end(h); in rl_initialize()
451 if (e == NULL || h == NULL) in readline()
498 history(h, &ev, H_GETSIZE); in readline()
517 if (h == NULL || e == NULL) in using_history()
589 if (history(h, &ev, H_FIRST) != 0) in get_history_event()
646 if (history(h, &ev, H_CURR) != 0) { 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()
685 (void)history(h, &ev, H_SET, num); in get_history_event()
998 if (h == NULL || e == NULL) in history_expand()
1243 if (h == NULL || e == NULL) in stifle_history()
1246 if (history(h, &ev, H_SETSIZE, max) == 0) { in stifle_history()
1269 history(h, &ev, H_SETSIZE, INT_MAX); in unstifle_history()
1430 if (h == NULL || e == NULL) in read_history()
1435 if (history(h, &ev, H_LOAD, filename) == -1) in read_history()
1437 if (history(h, &ev, H_GETSIZE) == 0) in read_history()
1453 if (h == NULL || e == NULL) in write_history()
1457 return history(h, &ev, H_SAVE, filename) == -1 ? in write_history()
1467 if (h == NULL || e == NULL) in append_history()
1475 if (history(h, &ev, H_NSAVE_FP, (size_t)n, fp) == -1) { in append_history()
1496 if (h == NULL || e == NULL) in history_get()
1503 if (history(h, &ev, H_CURR) != 0) 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()
1522 (void)history(h, &ev, H_SET, curr_num); in history_get()
1528 (void)history(h, &ev, H_SET, curr_num); in history_get()
1541 if (h == NULL || e == NULL) in add_history()
1544 if (history(h, &ev, H_ENTER, line) == -1) in add_history()
1547 (void)history(h, &ev, H_GETSIZE); in add_history()
1567 if (h == NULL || e == NULL) in remove_history()
1573 if (history(h, &ev, H_DELDATA, num, &he->data) != 0) { in remove_history()
1579 if (history(h, &ev, H_GETSIZE) == 0) in remove_history()
1596 if (h == NULL || e == NULL) in replace_history_entry()
1600 if (history(h, &ev, H_CURR) != 0) 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()
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()
1640 if (h == NULL || e == NULL) in clear_history()
1643 (void)history(h, &ev, H_CLEAR); in clear_history()
1667 if (history(h, &ev, H_LAST) != 0) in history_list()
1687 } while (history(h, &ev, H_PREV) == 0); in history_list()
1700 if (history(h, &ev, H_PREV_EVENT, history_offset + 1) != 0) in current_history()
1719 if (history(h, &ev, H_CURR) != 0) in history_total_bytes()
1723 (void)history(h, &ev, H_FIRST); 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()
1762 if (history(h, &ev, H_LAST) != 0) in previous_history()
1781 if (history(h, &ev, H_LAST) != 0) in next_history()
1799 if (history(h, &ev, H_CURR) != 0) 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()
1822 return (history(h, &ev, direction < 0 ? in history_search_prefix()
1842 if (history(h, &ev, H_CURR) != 0) in history_search_pos()
1846 if (!history_set_pos(off) || history(h, &ev, H_CURR) != 0) 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()
1960 if (h == NULL || e == NULL) in rl_complete()
2012 if (h == NULL || e == NULL) in rl_bind_key()
2033 if (e == NULL || h == NULL) in rl_read_key()
2048 if (h == NULL || e == NULL) in rl_reset_terminal()
2063 if (h == NULL || e == NULL) in rl_insert()
2082 if (h == NULL || e == NULL) in rl_insert_text()
2316 if (h == NULL || e == NULL) in rl_copy_text()
2345 if (h == NULL || e == NULL) in rl_replace_line()
2355 if (h == NULL || e == NULL) in rl_delete_text()