hist.h (296175) | hist.h (296435) |
---|---|
1/* $NetBSD: hist.h,v 1.18 2016/02/17 19:47:49 christos Exp $ */ | 1/* $NetBSD: hist.h,v 1.15 2016/01/30 15:05:27 christos Exp $ */ |
2 3/*- 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Christos Zoulas of Cornell University. 9 * --- 17 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)hist.h 8.1 (Berkeley) 6/4/93 | 2 3/*- 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Christos Zoulas of Cornell University. 9 * --- 17 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)hist.h 8.1 (Berkeley) 6/4/93 |
35 * $FreeBSD: head/lib/libedit/hist.h 296175 2016-02-29 00:15:25Z pfg $ | 35 * $FreeBSD: head/lib/libedit/hist.h 296435 2016-03-06 21:32:54Z pfg $ |
36 */ 37 38/* 39 * el.hist.c: History functions 40 */ 41#ifndef _h_el_hist 42#define _h_el_hist 43 | 36 */ 37 38/* 39 * el.hist.c: History functions 40 */ 41#ifndef _h_el_hist 42#define _h_el_hist 43 |
44#include "histedit.h" 45 |
|
44typedef int (*hist_fun_t)(void *, TYPE(HistEvent) *, int, ...); 45 46typedef struct el_history_t { 47 Char *buf; /* The history buffer */ 48 size_t sz; /* Size of history buffer */ 49 Char *last; /* The last character */ 50 int eventno; /* Event we are looking for */ 51 void *ref; /* Argument for history fcns */ --- 24 unchanged lines hidden (view full) --- 76 77protected int hist_init(EditLine *); 78protected void hist_end(EditLine *); 79protected el_action_t hist_get(EditLine *); 80protected int hist_set(EditLine *, hist_fun_t, void *); 81protected int hist_command(EditLine *, int, const Char **); 82protected int hist_enlargebuf(EditLine *, size_t, size_t); 83#ifdef WIDECHAR | 46typedef int (*hist_fun_t)(void *, TYPE(HistEvent) *, int, ...); 47 48typedef struct el_history_t { 49 Char *buf; /* The history buffer */ 50 size_t sz; /* Size of history buffer */ 51 Char *last; /* The last character */ 52 int eventno; /* Event we are looking for */ 53 void *ref; /* Argument for history fcns */ --- 24 unchanged lines hidden (view full) --- 78 79protected int hist_init(EditLine *); 80protected void hist_end(EditLine *); 81protected el_action_t hist_get(EditLine *); 82protected int hist_set(EditLine *, hist_fun_t, void *); 83protected int hist_command(EditLine *, int, const Char **); 84protected int hist_enlargebuf(EditLine *, size_t, size_t); 85#ifdef WIDECHAR |
84protected wchar_t *hist_convert(EditLine *, int, void *); | 86protected wchar_t *hist_convert(EditLine *, int, void *); |
85#endif 86 87#endif /* _h_el_hist */ | 87#endif 88 89#endif /* _h_el_hist */ |