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