PageRenderTime 41ms CodeModel.GetById 11ms app.highlight 26ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/tcsh/ed.decls.h

https://bitbucket.org/freebsd/freebsd-head/
C++ Header | 282 lines | 214 code | 11 blank | 57 comment | 0 complexity | ecfc9621a1b3746f8dbad0a2b2571c58 MD5 | raw file
  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.
  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. 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.
 20 *
 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.
 32 */
 33#ifndef _h_ed_decls
 34#define _h_ed_decls
 35
 36/*
 37 * ed.chared.c
 38 */
 39extern	int	InsertStr		(Char *);
 40extern	int	ExpandHistory		(void);
 41extern	void	DeleteBack		(int);
 42extern	void	SetKillRing		(int);
 43extern	CCRETVAL GetHistLine		(void);
 44
 45/*
 46 * ed.init.c
 47 */
 48#ifdef SIG_WINDOW
 49extern	void	check_window_size	(int);
 50extern	void	window_change		(int);
 51#endif /* SIG_WINDOW */
 52extern	int	ed_Setup		(int);
 53extern	void	ed_Init			(void);
 54extern	int	Cookedmode		(void);
 55extern	int	Rawmode			(void);
 56extern	void	ed_set_tty_eight_bit	(void);
 57
 58extern	void	QuoteModeOn		(void);
 59extern	void	QuoteModeOff		(void);
 60extern	void	ResetInLine		(int);
 61extern	int	Load_input_line		(void);
 62
 63/*
 64 * ed.term.c:
 65 */
 66extern	void	dosetty			(Char **, struct command *);
 67extern	int	tty_getty 		(int, ttydata_t *);
 68extern	int	tty_setty 		(int, ttydata_t *);
 69extern	void	tty_getchar 		(ttydata_t *, unsigned char *);
 70extern	void	tty_setchar 		(ttydata_t *, unsigned char *);
 71extern	speed_t	tty_getspeed 		(ttydata_t *);
 72extern	int	tty_gettabs 		(ttydata_t *);
 73extern	int	tty_geteightbit		(ttydata_t *);
 74extern	int	tty_cooked_mode		(ttydata_t *);
 75#ifdef _IBMR2
 76extern	void	tty_setdisc		(int, int);
 77#endif /* _IBMR2 */
 78
 79/*
 80 * ed.screen.c
 81 */
 82extern	void	terminit		(void);
 83extern	void	SetAttributes		(Char);
 84extern	void	so_write		(Char *, int);
 85extern	void	ClearScreen		(void);
 86extern	void	MoveToLine		(int);
 87extern	void	MoveToChar		(int);
 88extern	void	ClearEOL		(int);
 89extern	void	Insert_write		(Char *, int);
 90extern	void	DeleteChars		(int);
 91extern	void	TellTC			(void);
 92extern	void	SetTC			(char *, char *);
 93extern	void	EchoTC			(Char **);
 94extern	int 	SetArrowKeys		(const CStr *, XmapVal *, int);
 95extern	int 	IsArrowKey		(Char *);
 96extern	void	ResetArrowKeys		(void);
 97extern	void	DefaultArrowKeys	(void);
 98extern	int 	ClearArrowKeys		(const CStr *);
 99extern	void 	PrintArrowKeys		(const CStr *);
100extern	void	BindArrowKeys		(void);
101extern	void	SoundBeep		(void);
102extern	int	CanWeTab		(void);
103extern	void	ChangeSize		(int, int);
104#ifdef SIG_WINDOW
105extern	int	GetSize			(int *, int *);
106#endif /* SIG_WINDOW */
107extern	void	ClearToBottom		(void);
108extern	void	GetTermCaps		(void);
109extern	void	StartHighlight		(void);
110extern	void	StopHighlight		(void);
111
112/*
113 * ed.defns.c
114 */
115extern	void	editinit		(void);
116extern	void	ed_InitNLSMaps		(void);
117#ifdef DEBUG_EDIT
118extern	void	CheckMaps		(void);
119#endif
120extern	void	ed_InitMaps		(void);
121extern	void	ed_InitEmacsMaps	(void);
122extern	void	ed_InitVIMaps		(void);
123
124extern  CCRETVAL	e_unassigned		(Char);
125extern	CCRETVAL	e_insert		(Char);
126extern	CCRETVAL	e_newline		(Char);
127extern	CCRETVAL	e_delprev		(Char);
128extern	CCRETVAL	e_delnext		(Char);
129/* added by mtk@ari.ncl.omron.co.jp (920818) */
130extern	CCRETVAL	e_delnext_eof		(Char);
131extern	CCRETVAL	e_delnext_list		(Char);
132extern	CCRETVAL	e_delnext_list_eof	(Char);	/* for ^D */
133extern	CCRETVAL	e_toend			(Char);
134extern	CCRETVAL	e_tobeg			(Char);
135extern	CCRETVAL	e_charback		(Char);
136extern	CCRETVAL	e_charfwd		(Char);
137extern	CCRETVAL	e_quote			(Char);
138extern	CCRETVAL	e_startover		(Char);
139extern	CCRETVAL	e_redisp		(Char);
140extern	CCRETVAL	e_wordback		(Char);
141extern	CCRETVAL	e_wordfwd		(Char);
142extern	CCRETVAL	v_wordbegnext		(Char);
143extern	CCRETVAL	e_uppercase		(Char);
144extern	CCRETVAL	e_lowercase		(Char);
145extern	CCRETVAL	e_capitolcase		(Char);
146extern	CCRETVAL	e_cleardisp		(Char);
147extern	CCRETVAL	e_complete		(Char);
148extern	CCRETVAL	e_correct		(Char);
149extern	CCRETVAL	e_correctl		(Char);
150extern	CCRETVAL	e_up_hist		(Char);
151extern	CCRETVAL	e_down_hist		(Char);
152extern	CCRETVAL	e_up_search_hist	(Char);
153extern	CCRETVAL	e_down_search_hist	(Char);
154extern	CCRETVAL	e_helpme		(Char);
155extern	CCRETVAL	e_list_choices		(Char);
156extern	CCRETVAL	e_delwordprev		(Char);
157extern	CCRETVAL	e_delwordnext		(Char);
158extern	CCRETVAL	e_digit			(Char);
159extern	CCRETVAL	e_argdigit		(Char);
160extern	CCRETVAL	v_zero			(Char);
161extern	CCRETVAL	e_killend		(Char);
162extern	CCRETVAL	e_killbeg		(Char);
163extern	CCRETVAL	e_metanext		(Char);
164#ifdef notdef
165extern	CCRETVAL	e_extendnext		(Char);
166#endif
167extern	CCRETVAL	e_send_eof		(Char);
168extern	CCRETVAL	e_charswitch		(Char);
169extern	CCRETVAL	e_gcharswitch		(Char);
170extern	CCRETVAL	e_which			(Char);
171extern	CCRETVAL	e_yank_kill		(Char);
172extern	CCRETVAL	e_tty_dsusp		(Char);
173extern	CCRETVAL	e_tty_flusho		(Char);
174extern	CCRETVAL	e_tty_quit		(Char);
175extern	CCRETVAL	e_tty_tsusp		(Char);
176extern	CCRETVAL	e_tty_stopo		(Char);
177extern	CCRETVAL	e_tty_starto		(Char);
178extern	CCRETVAL	e_argfour		(Char);
179extern	CCRETVAL	e_set_mark		(Char);
180extern	CCRETVAL	e_exchange_mark		(Char);
181extern	CCRETVAL	e_last_item		(Char);
182extern	CCRETVAL	v_cmd_mode		(Char);
183extern	CCRETVAL	v_insert		(Char);
184extern	CCRETVAL	v_replmode		(Char);
185extern	CCRETVAL	v_replone		(Char);
186extern	CCRETVAL	v_substline		(Char);
187extern	CCRETVAL	v_substchar		(Char);
188extern	CCRETVAL	v_add			(Char);
189extern	CCRETVAL	v_addend		(Char);
190extern	CCRETVAL	v_insbeg		(Char);
191extern	CCRETVAL	v_chgtoend		(Char);
192extern	CCRETVAL	e_killregion		(Char);
193extern	CCRETVAL	e_killall		(Char);
194extern	CCRETVAL	e_copyregion		(Char);
195extern	CCRETVAL	e_tty_int		(Char);
196extern	CCRETVAL	e_run_fg_editor		(Char);
197extern	CCRETVAL	e_list_eof		(Char);
198extern	int     	e_expand_history_rne	(Char);
199extern	CCRETVAL	e_expand_history	(Char);
200extern	CCRETVAL	e_magic_space		(Char);
201extern	CCRETVAL	e_list_glob		(Char);
202extern	CCRETVAL	e_expand_glob		(Char);
203extern	CCRETVAL	e_insovr		(Char);
204extern	CCRETVAL	v_cm_complete		(Char);
205extern	CCRETVAL	e_copyprev		(Char);
206extern	CCRETVAL	v_change_case		(Char);
207extern	CCRETVAL	e_expand		(Char);
208extern	CCRETVAL	e_expand_vars		(Char);
209extern	CCRETVAL	e_toggle_hist		(Char);
210extern  CCRETVAL        e_load_average		(Char);
211extern  CCRETVAL        v_delprev		(Char);
212extern  CCRETVAL        v_delmeta		(Char);
213extern  CCRETVAL        v_wordfwd		(Char);
214extern  CCRETVAL        v_wordback		(Char);
215extern  CCRETVAL        v_endword		(Char);
216extern  CCRETVAL        v_eword			(Char);
217extern  CCRETVAL        v_undo			(Char);
218extern  CCRETVAL        v_ush_meta		(Char);
219extern  CCRETVAL        v_dsh_meta		(Char);
220extern  CCRETVAL        v_rsrch_fwd		(Char);
221extern  CCRETVAL        v_rsrch_back		(Char);
222extern  CCRETVAL        v_char_fwd		(Char);
223extern  CCRETVAL        v_char_back		(Char);
224extern  CCRETVAL        v_chgmeta		(Char);
225extern	CCRETVAL	e_inc_fwd		(Char);
226extern	CCRETVAL	e_inc_back		(Char);
227extern	CCRETVAL	v_rchar_fwd		(Char);
228extern	CCRETVAL	v_rchar_back		(Char);
229extern  CCRETVAL        v_charto_fwd		(Char);
230extern  CCRETVAL        v_charto_back		(Char);
231extern  CCRETVAL        e_normalize_path	(Char);
232extern  CCRETVAL        e_normalize_command	(Char);
233extern  CCRETVAL        e_stuff_char		(Char);
234extern  CCRETVAL        e_list_all		(Char);
235extern  CCRETVAL        e_complete_all		(Char);
236extern  CCRETVAL        e_complete_fwd		(Char);
237extern  CCRETVAL        e_complete_back		(Char);
238extern  CCRETVAL        e_dabbrev_expand	(Char);
239extern  CCRETVAL	e_copy_to_clipboard	(Char);
240extern  CCRETVAL	e_paste_from_clipboard	(Char);
241extern  CCRETVAL	e_dosify_next		(Char);
242extern  CCRETVAL	e_dosify_prev		(Char);
243extern  CCRETVAL	e_page_up		(Char);
244extern  CCRETVAL	e_page_down		(Char);
245extern  CCRETVAL	e_yank_pop		(Char);
246extern  CCRETVAL	e_newline_hold		(Char);
247extern  CCRETVAL	e_newline_down_hist	(Char);
248
249/*
250 * ed.inputl.c
251 */
252extern	int	Inputl			(void);
253extern	int	GetNextChar		(Char *);
254extern	void    UngetNextChar		(Char);
255extern	void	PushMacro		(Char *);
256
257/*
258 * ed.refresh.c
259 */
260extern	void	ClearLines		(void);
261extern	void	ClearDisp		(void);
262extern	void	Refresh			(void);
263extern	void	RefCursor		(void);
264extern	void	RefPlusOne		(int);
265extern	void	PastBottom		(void);
266
267/*
268 * ed.xmap.c
269 */
270extern  XmapVal *XmapStr		(CStr *);
271extern  XmapVal *XmapCmd		(int);
272extern	void	 AddXkey		(const CStr *, XmapVal *, int);
273extern	void	 ClearXkey		(KEYCMD *, const CStr *);
274extern	int	 GetXkey		(CStr *, XmapVal *);
275extern	void	 ResetXmap		(void);
276extern	int	 DeleteXkey		(const CStr *);
277extern	void	 PrintXkey		(const CStr *);
278extern	void	 printOne		(const Char *, const XmapVal *, int);
279extern	eChar		  parseescape	(const Char **);
280extern	unsigned char    *unparsestring	(const CStr *, const Char *);
281
282#endif /* _h_ed_decls */