hist.h (1574) | hist.h (26926) |
---|---|
1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Christos Zoulas of Cornell University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 51 unchanged lines hidden (view full) --- 60 (*(el)->el_history.fun)((el)->el_history.ref, fn, arg)) == NULL) ? \ 61 NULL : (el)->el_history.ev->str) 62 63#define HIST_NEXT(el) HIST_FUN(el, H_NEXT, NULL) 64#define HIST_FIRST(el) HIST_FUN(el, H_FIRST, NULL) 65#define HIST_LAST(el) HIST_FUN(el, H_LAST, NULL) 66#define HIST_PREV(el) HIST_FUN(el, H_PREV, NULL) 67#define HIST_EVENT(el, num) HIST_FUN(el, H_EVENT, num) | 1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Christos Zoulas of Cornell University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 51 unchanged lines hidden (view full) --- 60 (*(el)->el_history.fun)((el)->el_history.ref, fn, arg)) == NULL) ? \ 61 NULL : (el)->el_history.ev->str) 62 63#define HIST_NEXT(el) HIST_FUN(el, H_NEXT, NULL) 64#define HIST_FIRST(el) HIST_FUN(el, H_FIRST, NULL) 65#define HIST_LAST(el) HIST_FUN(el, H_LAST, NULL) 66#define HIST_PREV(el) HIST_FUN(el, H_PREV, NULL) 67#define HIST_EVENT(el, num) HIST_FUN(el, H_EVENT, num) |
68#define HIST_LOAD(el, fname) HIST_FUN(el, H_LOAD fname) 69#define HIST_SAVE(el, fname) HIST_FUN(el, H_SAVE fname) |
|
68 69protected int hist_init __P((EditLine *)); 70protected void hist_end __P((EditLine *)); 71protected el_action_t hist_get __P((EditLine *)); 72protected int hist_set __P((EditLine *, hist_fun_t, ptr_t)); 73protected int hist_list __P((EditLine *, int, char **)); 74 75#endif /* _h_el_hist */ | 70 71protected int hist_init __P((EditLine *)); 72protected void hist_end __P((EditLine *)); 73protected el_action_t hist_get __P((EditLine *)); 74protected int hist_set __P((EditLine *, hist_fun_t, ptr_t)); 75protected int hist_list __P((EditLine *, int, char **)); 76 77#endif /* _h_el_hist */ |