Deleted Added
full compact
histedit.h (170511) histedit.h (170547)
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

--- 16 unchanged lines hidden (view full) ---

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * @(#)histedit.h 8.2 (Berkeley) 1/3/94
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

--- 16 unchanged lines hidden (view full) ---

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * @(#)histedit.h 8.2 (Berkeley) 1/3/94
33 * $NetBSD: histedit.h,v 1.31 2006/12/15 22:13:33 christos Exp $
34 * $FreeBSD: head/include/histedit.h 170511 2007-06-10 19:06:09Z stefanf $
33 * $NetBSD: histedit.h,v 1.32 2007/06/10 20:20:28 christos Exp $
34 * $FreeBSD: head/include/histedit.h 170547 2007-06-11 06:25:19Z stefanf $
35 */
36
37/*
38 * histedit.h: Line editor and history interface.
39 */
40#ifndef _HISTEDIT_H_
41#define _HISTEDIT_H_
42

--- 83 unchanged lines hidden (view full) ---

126#define EL_HIST 10 /* , hist_fun_t, const char *); */
127#define EL_EDITMODE 11 /* , int); */
128#define EL_RPROMPT 12 /* , el_pfunc_t); */
129#define EL_GETCFN 13 /* , el_rfunc_t); */
130#define EL_CLIENTDATA 14 /* , void *); */
131#define EL_UNBUFFERED 15 /* , int); */
132#define EL_PREP_TERM 16 /* , int); */
133#define EL_GETTC 17 /* , const char *, ..., NULL); */
35 */
36
37/*
38 * histedit.h: Line editor and history interface.
39 */
40#ifndef _HISTEDIT_H_
41#define _HISTEDIT_H_
42

--- 83 unchanged lines hidden (view full) ---

126#define EL_HIST 10 /* , hist_fun_t, const char *); */
127#define EL_EDITMODE 11 /* , int); */
128#define EL_RPROMPT 12 /* , el_pfunc_t); */
129#define EL_GETCFN 13 /* , el_rfunc_t); */
130#define EL_CLIENTDATA 14 /* , void *); */
131#define EL_UNBUFFERED 15 /* , int); */
132#define EL_PREP_TERM 16 /* , int); */
133#define EL_GETTC 17 /* , const char *, ..., NULL); */
134#define EL_GETFP 18 /* , int, FILE **) */
135#define EL_SETFP 19 /* , int, FILE *) */
134#define EL_GETFP 18 /* , int, FILE **) */
135#define EL_SETFP 19 /* , int, FILE *) */
136
136
137#define EL_BUILTIN_GETCFN (NULL)
137#define EL_BUILTIN_GETCFN (NULL)
138
139/*
140 * Source named file or $PWD/.editrc or $HOME/.editrc
141 */
142int el_source(EditLine *, const char *);
143
144/*
145 * Must be called when the terminal changes size; If EL_SIGNAL

--- 33 unchanged lines hidden (view full) ---

179 */
180History * history_init(void);
181void history_end(History *);
182
183int history(History *, HistEvent *, int, ...);
184
185#define H_FUNC 0 /* , UTSL */
186#define H_SETSIZE 1 /* , const int); */
138
139/*
140 * Source named file or $PWD/.editrc or $HOME/.editrc
141 */
142int el_source(EditLine *, const char *);
143
144/*
145 * Must be called when the terminal changes size; If EL_SIGNAL

--- 33 unchanged lines hidden (view full) ---

179 */
180History * history_init(void);
181void history_end(History *);
182
183int history(History *, HistEvent *, int, ...);
184
185#define H_FUNC 0 /* , UTSL */
186#define H_SETSIZE 1 /* , const int); */
187#define H_EVENT 1 /* , const int); */
187#define H_EVENT 1 /* , const int); */
188#define H_GETSIZE 2 /* , void); */
189#define H_FIRST 3 /* , void); */
190#define H_LAST 4 /* , void); */
191#define H_PREV 5 /* , void); */
192#define H_NEXT 6 /* , void); */
193#define H_CURR 8 /* , const int); */
194#define H_SET 7 /* , int); */
195#define H_ADD 9 /* , const char *); */

--- 35 unchanged lines hidden ---
188#define H_GETSIZE 2 /* , void); */
189#define H_FIRST 3 /* , void); */
190#define H_LAST 4 /* , void); */
191#define H_PREV 5 /* , void); */
192#define H_NEXT 6 /* , void); */
193#define H_CURR 8 /* , const int); */
194#define H_SET 7 /* , int); */
195#define H_ADD 9 /* , const char *); */

--- 35 unchanged lines hidden ---