read.h (268502) | read.h (276881) |
---|---|
1/* $NetBSD: read.h,v 1.7 2009/12/30 22:37:40 christos Exp $ */ 2 |
|
1/*- 2 * Copyright (c) 2001 The NetBSD Foundation, Inc. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The NetBSD Foundation 6 * by Anthony Mallet. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 * POSSIBILITY OF SUCH DAMAGE. 28 * | 3/*- 4 * Copyright (c) 2001 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Anthony Mallet. 9 * 10 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 * |
29 * $NetBSD: read.h,v 1.6 2008/04/29 06:53:01 martin Exp $ 30 * $FreeBSD: head/lib/libedit/read.h 268502 2014-07-10 17:52:17Z pfg $ | 31 * $FreeBSD: head/lib/libedit/read.h 276881 2015-01-09 07:40:56Z bapt $ |
31 */ 32 33/* 34 * el.read.h: Character reading functions 35 */ 36#ifndef _h_el_read 37#define _h_el_read 38 | 32 */ 33 34/* 35 * el.read.h: Character reading functions 36 */ 37#ifndef _h_el_read 38#define _h_el_read 39 |
39typedef int (*el_rfunc_t)(EditLine *, char *); | 40typedef int (*el_rfunc_t)(EditLine *, Char *); |
40 41typedef struct el_read_t { 42 el_rfunc_t read_char; /* Function to read a character */ 43} el_read_t; 44 45protected int read_init(EditLine *); 46protected void read_prepare(EditLine *); 47protected void read_finish(EditLine *); 48protected int el_read_setfn(EditLine *, el_rfunc_t); 49protected el_rfunc_t el_read_getfn(EditLine *); 50 51#endif /* _h_el_read */ | 41 42typedef struct el_read_t { 43 el_rfunc_t read_char; /* Function to read a character */ 44} el_read_t; 45 46protected int read_init(EditLine *); 47protected void read_prepare(EditLine *); 48protected void read_finish(EditLine *); 49protected int el_read_setfn(EditLine *, el_rfunc_t); 50protected el_rfunc_t el_read_getfn(EditLine *); 51 52#endif /* _h_el_read */ |