xref: /freebsd/contrib/tcsh/ed.decls.h (revision 5521ff5a4d1929056e7ffc982fac3341ca54df7c)
1 /* $Header: /src/pub/tcsh/ed.decls.h,v 3.29 2000/07/15 19:58:50 christos Exp $ */
2 /*
3  * ed.decls.h: Editor external definitions
4  */
5 /*-
6  * Copyright (c) 1980, 1991 The Regents of the University of California.
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  * 1. Redistributions of source code must retain the above copyright
13  *    notice, this list of conditions and the following disclaimer.
14  * 2. Redistributions in binary form must reproduce the above copyright
15  *    notice, this list of conditions and the following disclaimer in the
16  *    documentation and/or other materials provided with the distribution.
17  * 3. All advertising materials mentioning features or use of this software
18  *    must display the following acknowledgement:
19  *	This product includes software developed by the University of
20  *	California, Berkeley and its contributors.
21  * 4. Neither the name of the University nor the names of its contributors
22  *    may be used to endorse or promote products derived from this software
23  *    without specific prior written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35  * SUCH DAMAGE.
36  */
37 #ifndef _h_ed_decls
38 #define _h_ed_decls
39 
40 /*
41  * ed.chared.c
42  */
43 extern	int	InsertStr		__P((Char *));
44 extern	void	DeleteBack		__P((int));
45 
46 /*
47  * ed.init.c
48  */
49 #ifdef SIG_WINDOW
50 extern	void	check_window_size	__P((int));
51 extern	sigret_t window_change		__P((int));
52 #endif /* SIG_WINDOW */
53 extern	int	ed_Setup		__P((int));
54 extern	void	ed_Init			__P((void));
55 extern	int	Cookedmode		__P((void));
56 extern	int	Rawmode			__P((void));
57 extern	void	ed_set_tty_eight_bit	__P((void));
58 
59 extern	void	QuoteModeOn		__P((void));
60 extern	void	QuoteModeOff		__P((void));
61 extern	void	ResetInLine		__P((int));
62 extern	int	Load_input_line		__P((void));
63 
64 /*
65  * ed.term.c:
66  */
67 extern	void	dosetty			__P((Char **, struct command *));
68 extern	int	tty_getty 		__P((int, ttydata_t *));
69 extern	int	tty_setty 		__P((int, ttydata_t *));
70 extern	void	tty_getchar 		__P((ttydata_t *, unsigned char *));
71 extern	void	tty_setchar 		__P((ttydata_t *, unsigned char *));
72 extern	speed_t	tty_getspeed 		__P((ttydata_t *));
73 extern	int	tty_gettabs 		__P((ttydata_t *));
74 extern	int	tty_geteightbit		__P((ttydata_t *));
75 extern	int	tty_cooked_mode		__P((ttydata_t *));
76 #ifdef _IBMR2
77 extern	void	tty_setdisc		__P((int, int));
78 #endif /* _IBMR2 */
79 
80 /*
81  * ed.screen.c
82  */
83 extern	void	terminit		__P((void));
84 extern	void	SetAttributes		__P((int));
85 extern	void	so_write		__P((Char *, int));
86 extern	void	ClearScreen		__P((void));
87 extern	void	MoveToLine		__P((int));
88 extern	void	MoveToChar		__P((int));
89 extern	void	ClearEOL		__P((int));
90 extern	void	Insert_write		__P((Char *, int));
91 extern	void	DeleteChars		__P((int));
92 extern	void	TellTC			__P((char *));
93 extern	void	SetTC			__P((char *, char *));
94 extern	void	EchoTC			__P((Char **));
95 extern	int 	SetArrowKeys		__P((CStr *, XmapVal *, int));
96 extern	int 	IsArrowKey		__P((Char *));
97 extern	void	ResetArrowKeys		__P((void));
98 extern	void	DefaultArrowKeys	__P((void));
99 extern	int 	ClearArrowKeys		__P((CStr *));
100 extern	void 	PrintArrowKeys		__P((CStr *));
101 extern	void	BindArrowKeys		__P((void));
102 extern	void	SoundBeep		__P((void));
103 extern	int	CanWeTab		__P((void));
104 extern	void	ChangeSize		__P((int, int));
105 #ifdef SIG_WINDOW
106 extern	int	GetSize			__P((int *, int *));
107 #endif /* SIG_WINDOW */
108 extern	void	ClearToBottom		__P((void));
109 extern	void	GetTermCaps		__P((void));
110 
111 /*
112  * ed.defns.c
113  */
114 extern	void	editinit		__P((void));
115 extern	void	ed_InitNLSMaps		__P((void));
116 #ifdef DEBUG_EDIT
117 extern	void	CheckMaps		__P((void));
118 #endif
119 extern	void	ed_InitMaps		__P((void));
120 extern	void	ed_InitEmacsMaps	__P((void));
121 extern	void	ed_InitVIMaps		__P((void));
122 
123 extern  CCRETVAL	e_unassigned		__P((int));
124 extern	CCRETVAL	e_insert		__P((int));
125 extern	CCRETVAL	e_newline		__P((int));
126 extern	CCRETVAL	e_delprev		__P((int));
127 extern	CCRETVAL	e_delnext		__P((int));
128 /* added by mtk@ari.ncl.omron.co.jp (920818) */
129 extern	CCRETVAL	e_delnext_eof		__P((int));
130 extern	CCRETVAL	e_delnext_list		__P((int));
131 extern	CCRETVAL	e_delnext_list_eof	__P((int));	/* for ^D */
132 extern	CCRETVAL	e_toend			__P((int));
133 extern	CCRETVAL	e_tobeg			__P((int));
134 extern	CCRETVAL	e_charback		__P((int));
135 extern	CCRETVAL	e_charfwd		__P((int));
136 extern	CCRETVAL	e_quote			__P((int));
137 extern	CCRETVAL	e_startover		__P((int));
138 extern	CCRETVAL	e_redisp		__P((int));
139 extern	CCRETVAL	e_wordback		__P((int));
140 extern	CCRETVAL	e_wordfwd		__P((int));
141 extern	CCRETVAL	v_wordbegnext		__P((int));
142 extern	CCRETVAL	e_uppercase		__P((int));
143 extern	CCRETVAL	e_lowercase		__P((int));
144 extern	CCRETVAL	e_capitolcase		__P((int));
145 extern	CCRETVAL	e_cleardisp		__P((int));
146 extern	CCRETVAL	e_complete		__P((int));
147 extern	CCRETVAL	e_correct		__P((int));
148 extern	CCRETVAL	e_correctl		__P((int));
149 extern	CCRETVAL	e_up_hist		__P((int));
150 extern	CCRETVAL	e_down_hist		__P((int));
151 extern	CCRETVAL	e_up_search_hist	__P((int));
152 extern	CCRETVAL	e_down_search_hist	__P((int));
153 extern	CCRETVAL	e_helpme		__P((int));
154 extern	CCRETVAL	e_list_choices		__P((int));
155 extern	CCRETVAL	e_delwordprev		__P((int));
156 extern	CCRETVAL	e_delwordnext		__P((int));
157 extern	CCRETVAL	e_digit			__P((int));
158 extern	CCRETVAL	e_argdigit		__P((int));
159 extern	CCRETVAL	v_zero			__P((int));
160 extern	CCRETVAL	e_killend		__P((int));
161 extern	CCRETVAL	e_killbeg		__P((int));
162 extern	CCRETVAL	e_metanext		__P((int));
163 #ifdef notdef
164 extern	CCRETVAL	e_extendnext		__P((int));
165 #endif
166 extern	CCRETVAL	e_send_eof		__P((int));
167 extern	CCRETVAL	e_charswitch		__P((int));
168 extern	CCRETVAL	e_gcharswitch		__P((int));
169 extern	CCRETVAL	e_which			__P((int));
170 extern	CCRETVAL	e_yank_kill		__P((int));
171 extern	CCRETVAL	e_tty_dsusp		__P((int));
172 extern	CCRETVAL	e_tty_flusho		__P((int));
173 extern	CCRETVAL	e_tty_quit		__P((int));
174 extern	CCRETVAL	e_tty_tsusp		__P((int));
175 extern	CCRETVAL	e_tty_stopo		__P((int));
176 extern	CCRETVAL	e_tty_starto		__P((int));
177 extern	CCRETVAL	e_argfour		__P((int));
178 extern	CCRETVAL	e_set_mark		__P((int));
179 extern	CCRETVAL	e_exchange_mark		__P((int));
180 extern	CCRETVAL	e_last_item		__P((int));
181 extern	CCRETVAL	v_cmd_mode		__P((int));
182 extern	CCRETVAL	v_insert		__P((int));
183 extern	CCRETVAL	v_replmode		__P((int));
184 extern	CCRETVAL	v_replone		__P((int));
185 extern	CCRETVAL	v_substline		__P((int));
186 extern	CCRETVAL	v_substchar		__P((int));
187 extern	CCRETVAL	v_add			__P((int));
188 extern	CCRETVAL	v_addend		__P((int));
189 extern	CCRETVAL	v_insbeg		__P((int));
190 extern	CCRETVAL	v_chgtoend		__P((int));
191 extern	CCRETVAL	e_killregion		__P((int));
192 extern	CCRETVAL	e_killall		__P((int));
193 extern	CCRETVAL	e_copyregion		__P((int));
194 extern	CCRETVAL	e_tty_int		__P((int));
195 extern	CCRETVAL	e_run_fg_editor		__P((int));
196 extern	CCRETVAL	e_list_eof		__P((int));
197 extern	CCRETVAL	e_expand_history	__P((int));
198 extern	CCRETVAL	e_magic_space		__P((int));
199 extern	CCRETVAL	e_list_glob		__P((int));
200 extern	CCRETVAL	e_expand_glob		__P((int));
201 extern	CCRETVAL	e_insovr		__P((int));
202 extern	CCRETVAL	v_cm_complete		__P((int));
203 extern	CCRETVAL	e_copyprev		__P((int));
204 extern	CCRETVAL	v_change_case		__P((int));
205 extern	CCRETVAL	e_expand		__P((int));
206 extern	CCRETVAL	e_expand_vars		__P((int));
207 extern	CCRETVAL	e_toggle_hist		__P((int));
208 extern  CCRETVAL        e_load_average		__P((int));
209 extern  CCRETVAL        v_delprev		__P((int));
210 extern  CCRETVAL        v_delmeta		__P((int));
211 extern  CCRETVAL        v_wordfwd		__P((int));
212 extern  CCRETVAL        v_wordback		__P((int));
213 extern  CCRETVAL        v_endword		__P((int));
214 extern  CCRETVAL        v_eword			__P((int));
215 extern  CCRETVAL        v_undo			__P((int));
216 extern  CCRETVAL        v_ush_meta		__P((int));
217 extern  CCRETVAL        v_dsh_meta		__P((int));
218 extern  CCRETVAL        v_rsrch_fwd		__P((int));
219 extern  CCRETVAL        v_rsrch_back		__P((int));
220 extern  CCRETVAL        v_char_fwd		__P((int));
221 extern  CCRETVAL        v_char_back		__P((int));
222 extern  CCRETVAL        v_chgmeta		__P((int));
223 extern	CCRETVAL	e_inc_fwd		__P((int));
224 extern	CCRETVAL	e_inc_back		__P((int));
225 extern	CCRETVAL	v_rchar_fwd		__P((int));
226 extern	CCRETVAL	v_rchar_back		__P((int));
227 extern  CCRETVAL        v_charto_fwd		__P((int));
228 extern  CCRETVAL        v_charto_back		__P((int));
229 extern  CCRETVAL        e_normalize_path	__P((int));
230 extern  CCRETVAL        e_normalize_command	__P((int));
231 extern  CCRETVAL        e_stuff_char		__P((int));
232 extern  CCRETVAL        e_list_all		__P((int));
233 extern  CCRETVAL        e_complete_all		__P((int));
234 extern  CCRETVAL        e_complete_fwd		__P((int));
235 extern  CCRETVAL        e_complete_back		__P((int));
236 extern  CCRETVAL        e_dabbrev_expand	__P((int));
237 extern  CCRETVAL	e_copy_to_clipboard	__P((int));
238 extern  CCRETVAL	e_paste_from_clipboard	__P((int));
239 extern  CCRETVAL	e_dosify_next		__P((int));
240 extern  CCRETVAL	e_dosify_prev		__P((int));
241 extern  CCRETVAL	e_page_up			__P((int));
242 extern  CCRETVAL	e_page_down			__P((int));
243 
244 /*
245  * ed.inputl.c
246  */
247 extern	int	Inputl			__P((void));
248 extern	int	GetNextChar		__P((Char *));
249 extern	void	PushMacro		__P((Char *));
250 
251 /*
252  * ed.refresh.c
253  */
254 extern	void	ClearLines		__P((void));
255 extern	void	ClearDisp		__P((void));
256 extern	void	Refresh			__P((void));
257 extern	void	RefCursor		__P((void));
258 extern	void	RefPlusOne		__P((void));
259 extern	void	PastBottom		__P((void));
260 
261 /*
262  * ed.xmap.c
263  */
264 extern  XmapVal *XmapStr		__P((CStr *));
265 extern  XmapVal *XmapCmd		__P((int));
266 extern	void	 AddXkey		__P((CStr *, XmapVal *, int));
267 extern	void	 ClearXkey		__P((KEYCMD *, CStr *));
268 extern	int	 GetXkey		__P((CStr *, XmapVal *));
269 extern	void	 ResetXmap		__P((void));
270 extern	int	 DeleteXkey		__P((CStr *));
271 extern	void	 PrintXkey		__P((CStr *));
272 extern	int	 printOne		__P((CStr *, XmapVal *, int));
273 extern	int		  parseescape	__P((const Char **));
274 extern	unsigned char    *unparsestring	__P((CStr *, unsigned char *, Char *));
275 
276 #endif /* _h_ed_decls */
277