1 /* public things from edit.c */
2 
3 #ifndef _EDIT_H_
4 #define _EDIT_H_
5 
6 typedef struct {
7   char *name;
8   function_str funct;
9 } edit_function;
10 
11 extern edit_function internal_functions[];
12 
13 /*
14  * GH: completion list, stolen from cancan 2.6.3a
15  *
16  *     words[wordindex] is where the next word will go (always empty)
17  *     words[wordindex].prev is last (least interesting)
18  *     words[wordindex].next is 2nd (first to search for completion)
19  */
20 #define WORD_UNIQUE	1		/* word is unique in list */
21 typedef struct {
22     char *word;
23     int  next, prev;
24     char flags;
25 } wordnode;
26 
27 extern char *hist[MAX_HIST];
28 extern int curline;
29 extern int pickline;
30 
31 extern wordnode words[MAX_WORDS];
32 extern int wordindex;
33 
34 /*         public function declarations         */
35 void edit_bootstrap	  __P ((void));
36 
37 int  lookup_edit_name	  __P ((char *name, char **arg));
38 int  lookup_edit_function __P ((function_str funct));
39 void draw_prompt	  __P ((void));
40 void clear_input_line	  __P ((int deleteprompt));
41 void draw_input_line	  __P ((void));
42 void redraw_line	  __P ((char *dummy));
43 void redraw_line_noprompt __P ((char *dummy));
44 void transpose_words	__P ((char *dummy));
45 void transpose_chars	__P ((char *dummy));
46 void kill_to_eol	__P ((char *dummy));
47 void end_of_line	__P ((char *dummy));
48 void begin_of_line	__P ((char *dummy));
49 void del_char_right	__P ((char *dummy));
50 void del_char_left	__P ((char *dummy));
51 void to_history		__P ((char *dummy));
52 void put_history	__P ((char *str));
53 void complete_word	__P ((char *dummy));
54 void complete_line	__P ((char *dummy));
55 void put_word		__P ((char *s));
56 void put_static_word	__P ((char *s));
57 void set_custom_delimeters __P ((char *s));
58 void to_input_line	__P ((char *str));
59 void clear_line		__P ((char *dummy));
60 void enter_line		__P ((char *dummy));
61 void putbackcursor	__P ((void));
62 void insert_char	__P ((char c));
63 void next_word		__P ((char *dummy));
64 void prev_word		__P ((char *dummy));
65 void del_word_right	__P ((char *dummy));
66 void del_word_left	__P ((char *dummy));
67 void upcase_word	__P ((char *dummy));
68 void downcase_word	__P ((char *dummy));
69 void prev_line		__P ((char *dummy));
70 void next_line		__P ((char *dummy));
71 void prev_char		__P ((char *dummy));
72 void next_char		__P ((char *dummy));
73 void key_run_command	__P ((char *cmd));
74 
75 #endif /* _EDIT_H_ */
76