hist.h (256281) | hist.h (278411) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)hist.h 8.1 (Berkeley) 6/4/93 33 * $NetBSD: hist.h,v 1.10 2003/08/07 16:44:31 agc Exp $ | 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 --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)hist.h 8.1 (Berkeley) 6/4/93 33 * $NetBSD: hist.h,v 1.10 2003/08/07 16:44:31 agc Exp $ |
34 * $FreeBSD: stable/10/lib/libedit/hist.h 148834 2005-08-07 20:55:59Z stefanf $ | 34 * $FreeBSD: stable/10/lib/libedit/hist.h 278411 2015-02-08 22:11:24Z bapt $ |
35 */ 36 37/* 38 * el.hist.c: History functions 39 */ 40#ifndef _h_el_hist 41#define _h_el_hist 42 --- 17 unchanged lines hidden (view full) --- 60 61#define HIST_NEXT(el) HIST_FUN(el, H_NEXT, NULL) 62#define HIST_FIRST(el) HIST_FUN(el, H_FIRST, NULL) 63#define HIST_LAST(el) HIST_FUN(el, H_LAST, NULL) 64#define HIST_PREV(el) HIST_FUN(el, H_PREV, NULL) 65#define HIST_SET(el, num) HIST_FUN(el, H_SET, num) 66#define HIST_LOAD(el, fname) HIST_FUN(el, H_LOAD fname) 67#define HIST_SAVE(el, fname) HIST_FUN(el, H_SAVE fname) | 35 */ 36 37/* 38 * el.hist.c: History functions 39 */ 40#ifndef _h_el_hist 41#define _h_el_hist 42 --- 17 unchanged lines hidden (view full) --- 60 61#define HIST_NEXT(el) HIST_FUN(el, H_NEXT, NULL) 62#define HIST_FIRST(el) HIST_FUN(el, H_FIRST, NULL) 63#define HIST_LAST(el) HIST_FUN(el, H_LAST, NULL) 64#define HIST_PREV(el) HIST_FUN(el, H_PREV, NULL) 65#define HIST_SET(el, num) HIST_FUN(el, H_SET, num) 66#define HIST_LOAD(el, fname) HIST_FUN(el, H_LOAD fname) 67#define HIST_SAVE(el, fname) HIST_FUN(el, H_SAVE fname) |
68#define HIST_SAVE_FP(el, fp) HIST_FUN(el, H_SAVE_FP fp) |
|
68 69protected int hist_init(EditLine *); 70protected void hist_end(EditLine *); 71protected el_action_t hist_get(EditLine *); 72protected int hist_set(EditLine *, hist_fun_t, ptr_t); 73protected int hist_command(EditLine *, int, const char **); 74protected int hist_enlargebuf(EditLine *, size_t, size_t); 75 76#endif /* _h_el_hist */ | 69 70protected int hist_init(EditLine *); 71protected void hist_end(EditLine *); 72protected el_action_t hist_get(EditLine *); 73protected int hist_set(EditLine *, hist_fun_t, ptr_t); 74protected int hist_command(EditLine *, int, const char **); 75protected int hist_enlargebuf(EditLine *, size_t, size_t); 76 77#endif /* _h_el_hist */ |