xref: /freebsd/contrib/less/funcs.h (revision 6780e684d49034610f82bea5d3bfb04d42e91628)
1 public char * save LESSPARAMS ((constant char *s));
2 public VOID_POINTER ecalloc LESSPARAMS ((int count, unsigned int size));
3 public char * skipsp LESSPARAMS ((char *s));
4 public int sprefix LESSPARAMS ((char *ps, char *s, int uppercase));
5 public void quit LESSPARAMS ((int status));
6 public void raw_mode LESSPARAMS ((int on));
7 public void scrsize LESSPARAMS ((VOID_PARAM));
8 public char * special_key_str LESSPARAMS ((int key));
9 public void get_term LESSPARAMS ((VOID_PARAM));
10 public void init LESSPARAMS ((VOID_PARAM));
11 public void deinit LESSPARAMS ((VOID_PARAM));
12 public void home LESSPARAMS ((VOID_PARAM));
13 public void add_line LESSPARAMS ((VOID_PARAM));
14 public void remove_top LESSPARAMS ((int n));
15 public void win32_scroll_up LESSPARAMS ((int n));
16 public void lower_left LESSPARAMS ((VOID_PARAM));
17 public void line_left LESSPARAMS ((VOID_PARAM));
18 public void check_winch LESSPARAMS ((VOID_PARAM));
19 public void goto_line LESSPARAMS ((int sindex));
20 public void vbell LESSPARAMS ((VOID_PARAM));
21 public void bell LESSPARAMS ((VOID_PARAM));
22 public void clear LESSPARAMS ((VOID_PARAM));
23 public void clear_eol LESSPARAMS ((VOID_PARAM));
24 public void clear_bot LESSPARAMS ((VOID_PARAM));
25 public void at_enter LESSPARAMS ((int attr));
26 public void at_exit LESSPARAMS ((VOID_PARAM));
27 public void at_switch LESSPARAMS ((int attr));
28 public int is_at_equiv LESSPARAMS ((int attr1, int attr2));
29 public int apply_at_specials LESSPARAMS ((int attr));
30 public void backspace LESSPARAMS ((VOID_PARAM));
31 public void putbs LESSPARAMS ((VOID_PARAM));
32 public char WIN32getch LESSPARAMS ((int tty));
33 public void WIN32setcolors LESSPARAMS ((int fg, int bg));
34 public void WIN32textout LESSPARAMS ((char *text, int len));
35 public void match_brac LESSPARAMS ((int obrac, int cbrac, int forwdir, int n));
36 public void ch_ungetchar LESSPARAMS ((int c));
37 public void end_logfile LESSPARAMS ((VOID_PARAM));
38 public void sync_logfile LESSPARAMS ((VOID_PARAM));
39 public int ch_seek LESSPARAMS ((POSITION pos));
40 public int ch_end_seek LESSPARAMS ((VOID_PARAM));
41 public int ch_end_buffer_seek LESSPARAMS ((VOID_PARAM));
42 public int ch_beg_seek LESSPARAMS ((VOID_PARAM));
43 public POSITION ch_length LESSPARAMS ((VOID_PARAM));
44 public POSITION ch_tell LESSPARAMS ((VOID_PARAM));
45 public int ch_forw_get LESSPARAMS ((VOID_PARAM));
46 public int ch_back_get LESSPARAMS ((VOID_PARAM));
47 public void ch_setbufspace LESSPARAMS ((int bufspace));
48 public void ch_flush LESSPARAMS ((VOID_PARAM));
49 public int seekable LESSPARAMS ((int f));
50 public void ch_set_eof LESSPARAMS ((VOID_PARAM));
51 public void ch_init LESSPARAMS ((int f, int flags));
52 public void ch_close LESSPARAMS ((VOID_PARAM));
53 public int ch_getflags LESSPARAMS ((VOID_PARAM));
54 public void ch_dump LESSPARAMS ((VOID_PARAM));
55 public void setfmt LESSPARAMS ((char *s, char **fmtvarptr, int *attrptr, char *default_fmt));
56 public void init_charset LESSPARAMS ((VOID_PARAM));
57 public int binary_char LESSPARAMS ((LWCHAR c));
58 public int control_char LESSPARAMS ((LWCHAR c));
59 public char * prchar LESSPARAMS ((LWCHAR c));
60 public char * prutfchar LESSPARAMS ((LWCHAR ch));
61 public int utf_len LESSPARAMS ((unsigned char ch));
62 public int is_utf8_well_formed LESSPARAMS ((char *ss, int slen));
63 public void utf_skip_to_lead LESSPARAMS ((char **pp, char *limit));
64 public LWCHAR get_wchar LESSPARAMS ((constant char *p));
65 public void put_wchar LESSPARAMS ((char **pp, LWCHAR ch));
66 public LWCHAR step_char LESSPARAMS ((char **pp, signed int dir, constant char *limit));
67 public int is_composing_char LESSPARAMS ((LWCHAR ch));
68 public int is_ubin_char LESSPARAMS ((LWCHAR ch));
69 public int is_wide_char LESSPARAMS ((LWCHAR ch));
70 public int is_combining_char LESSPARAMS ((LWCHAR ch1, LWCHAR ch2));
71 public void cmd_reset LESSPARAMS ((VOID_PARAM));
72 public void clear_cmd LESSPARAMS ((VOID_PARAM));
73 public void cmd_putstr LESSPARAMS ((constant char *s));
74 public int len_cmdbuf LESSPARAMS ((VOID_PARAM));
75 public void set_mlist LESSPARAMS ((void *mlist, int cmdflags));
76 public void cmd_addhist LESSPARAMS ((struct mlist *mlist, constant char *cmd, int modified));
77 public void cmd_accept LESSPARAMS ((VOID_PARAM));
78 public int cmd_char LESSPARAMS ((int c));
79 public LINENUM cmd_int LESSPARAMS ((long *frac));
80 public char * get_cmdbuf LESSPARAMS ((VOID_PARAM));
81 public char * cmd_lastpattern LESSPARAMS ((VOID_PARAM));
82 public void init_cmdhist LESSPARAMS ((VOID_PARAM));
83 public void save_cmdhist LESSPARAMS ((VOID_PARAM));
84 public int in_mca LESSPARAMS ((VOID_PARAM));
85 public void dispversion LESSPARAMS ((VOID_PARAM));
86 public int getcc LESSPARAMS ((VOID_PARAM));
87 public void ungetcc LESSPARAMS ((LWCHAR c));
88 public void ungetsc LESSPARAMS ((char *s));
89 public LWCHAR peekcc LESSPARAMS ((VOID_PARAM));
90 public void commands LESSPARAMS ((VOID_PARAM));
91 public int cvt_length LESSPARAMS ((int len, int ops));
92 public int * cvt_alloc_chpos LESSPARAMS ((int len));
93 public void cvt_text LESSPARAMS ((char *odst, char *osrc, int *chpos, int *lenp, int ops));
94 public void expand_cmd_tables LESSPARAMS ((VOID_PARAM));
95 public void init_cmds LESSPARAMS ((VOID_PARAM));
96 public void add_fcmd_table LESSPARAMS ((char *buf, int len));
97 public void add_ecmd_table LESSPARAMS ((char *buf, int len));
98 public int fcmd_decode LESSPARAMS ((char *cmd, char **sp));
99 public int ecmd_decode LESSPARAMS ((char *cmd, char **sp));
100 public char * lgetenv LESSPARAMS ((char *var));
101 public int lesskey LESSPARAMS ((char *filename, int sysvar));
102 public void add_hometable LESSPARAMS ((char *envname, char *def_filename, int sysvar));
103 public int editchar LESSPARAMS ((int c, int flags));
104 public void init_textlist LESSPARAMS ((struct textlist *tlist, char *str));
105 public char * forw_textlist LESSPARAMS ((struct textlist *tlist, char *prev));
106 public char * back_textlist LESSPARAMS ((struct textlist *tlist, char *prev));
107 public int edit LESSPARAMS ((char *filename));
108 public int edit_ifile LESSPARAMS ((IFILE ifile));
109 public int edit_list LESSPARAMS ((char *filelist));
110 public int edit_first LESSPARAMS ((VOID_PARAM));
111 public int edit_last LESSPARAMS ((VOID_PARAM));
112 public int edit_next LESSPARAMS ((int n));
113 public int edit_prev LESSPARAMS ((int n));
114 public int edit_index LESSPARAMS ((int n));
115 public IFILE save_curr_ifile LESSPARAMS ((VOID_PARAM));
116 public void unsave_ifile LESSPARAMS ((IFILE save_ifile));
117 public void reedit_ifile LESSPARAMS ((IFILE save_ifile));
118 public void reopen_curr_ifile LESSPARAMS ((VOID_PARAM));
119 public int edit_stdin LESSPARAMS ((VOID_PARAM));
120 public void cat_file LESSPARAMS ((VOID_PARAM));
121 public void use_logfile LESSPARAMS ((char *filename));
122 public char * shell_unquote LESSPARAMS ((char *str));
123 public char * get_meta_escape LESSPARAMS ((VOID_PARAM));
124 public char * shell_quote LESSPARAMS ((char *s));
125 public char * homefile LESSPARAMS ((char *filename));
126 public char * fexpand LESSPARAMS ((char *s));
127 public char * fcomplete LESSPARAMS ((char *s));
128 public int bin_file LESSPARAMS ((int f));
129 public char * lglob LESSPARAMS ((char *filename));
130 public char * open_altfile LESSPARAMS ((char *filename, int *pf, void **pfd));
131 public void close_altfile LESSPARAMS ((char *altfilename, char *filename));
132 public int is_dir LESSPARAMS ((char *filename));
133 public char * bad_file LESSPARAMS ((char *filename));
134 public POSITION filesize LESSPARAMS ((int f));
135 public char * shell_coption LESSPARAMS ((VOID_PARAM));
136 public char * last_component LESSPARAMS ((char *name));
137 public int eof_displayed LESSPARAMS ((VOID_PARAM));
138 public int entire_file_displayed LESSPARAMS ((VOID_PARAM));
139 public void squish_check LESSPARAMS ((VOID_PARAM));
140 public void forw LESSPARAMS ((int n, POSITION pos, int force, int only_last, int nblank));
141 public void back LESSPARAMS ((int n, POSITION pos, int force, int only_last));
142 public void forward LESSPARAMS ((int n, int force, int only_last));
143 public void backward LESSPARAMS ((int n, int force, int only_last));
144 public int get_back_scroll LESSPARAMS ((VOID_PARAM));
145 public int get_line_count LESSPARAMS ((VOID_PARAM));
146 public void del_ifile LESSPARAMS ((IFILE h));
147 public IFILE next_ifile LESSPARAMS ((IFILE h));
148 public IFILE prev_ifile LESSPARAMS ((IFILE h));
149 public IFILE getoff_ifile LESSPARAMS ((IFILE ifile));
150 public int nifile LESSPARAMS ((VOID_PARAM));
151 public IFILE get_ifile LESSPARAMS ((char *filename, IFILE prev));
152 public char * get_filename LESSPARAMS ((IFILE ifile));
153 public int get_index LESSPARAMS ((IFILE ifile));
154 public void store_pos LESSPARAMS ((IFILE ifile, struct scrpos *scrpos));
155 public void get_pos LESSPARAMS ((IFILE ifile, struct scrpos *scrpos));
156 public void set_open LESSPARAMS ((IFILE ifile));
157 public int opened LESSPARAMS ((IFILE ifile));
158 public void hold_ifile LESSPARAMS ((IFILE ifile, int incr));
159 public int held_ifile LESSPARAMS ((IFILE ifile));
160 public void * get_filestate LESSPARAMS ((IFILE ifile));
161 public void set_filestate LESSPARAMS ((IFILE ifile, void *filestate));
162 public void set_altpipe LESSPARAMS ((IFILE ifile, void *p));
163 public void * get_altpipe LESSPARAMS ((IFILE ifile));
164 public void set_altfilename LESSPARAMS ((IFILE ifile, char *altfilename));
165 public char * get_altfilename LESSPARAMS ((IFILE ifile));
166 public void if_dump LESSPARAMS ((VOID_PARAM));
167 public POSITION forw_line LESSPARAMS ((POSITION curr_pos));
168 public POSITION back_line LESSPARAMS ((POSITION curr_pos));
169 public void set_attnpos LESSPARAMS ((POSITION pos));
170 public void jump_forw LESSPARAMS ((VOID_PARAM));
171 public void jump_forw_buffered LESSPARAMS ((VOID_PARAM));
172 public void jump_back LESSPARAMS ((LINENUM linenum));
173 public void repaint LESSPARAMS ((VOID_PARAM));
174 public void jump_percent LESSPARAMS ((int percent, long fraction));
175 public void jump_line_loc LESSPARAMS ((POSITION pos, int sline));
176 public void jump_loc LESSPARAMS ((POSITION pos, int sline));
177 public void init_line LESSPARAMS ((VOID_PARAM));
178 public int is_ascii_char LESSPARAMS ((LWCHAR ch));
179 public void prewind LESSPARAMS ((VOID_PARAM));
180 public void plinenum LESSPARAMS ((POSITION pos));
181 public void pshift_all LESSPARAMS ((VOID_PARAM));
182 public int is_ansi_end LESSPARAMS ((LWCHAR ch));
183 public int is_ansi_middle LESSPARAMS ((LWCHAR ch));
184 public void skip_ansi LESSPARAMS ((char **pp, constant char *limit));
185 public int pappend LESSPARAMS ((unsigned char c, POSITION pos));
186 public int pflushmbc LESSPARAMS ((VOID_PARAM));
187 public void pdone LESSPARAMS ((int endline, int chopped, int forw));
188 public void set_status_col LESSPARAMS ((char c));
189 public int gline LESSPARAMS ((int i, int *ap));
190 public void null_line LESSPARAMS ((VOID_PARAM));
191 public POSITION forw_raw_line LESSPARAMS ((POSITION curr_pos, char **linep, int *line_lenp));
192 public POSITION back_raw_line LESSPARAMS ((POSITION curr_pos, char **linep, int *line_lenp));
193 public int rrshift LESSPARAMS ((VOID_PARAM));
194 public void clr_linenum LESSPARAMS ((VOID_PARAM));
195 public void add_lnum LESSPARAMS ((LINENUM linenum, POSITION pos));
196 public LINENUM find_linenum LESSPARAMS ((POSITION pos));
197 public POSITION find_pos LESSPARAMS ((LINENUM linenum));
198 public LINENUM currline LESSPARAMS ((int where));
199 public void lsystem LESSPARAMS ((char *cmd, char *donemsg));
200 public int pipe_mark LESSPARAMS ((int c, char *cmd));
201 public int pipe_data LESSPARAMS ((char *cmd, POSITION spos, POSITION epos));
202 public void init_mark LESSPARAMS ((VOID_PARAM));
203 public int badmark LESSPARAMS ((int c));
204 public void setmark LESSPARAMS ((int c, int where));
205 public void clrmark LESSPARAMS ((int c));
206 public void lastmark LESSPARAMS ((VOID_PARAM));
207 public void gomark LESSPARAMS ((int c));
208 public POSITION markpos LESSPARAMS ((int c));
209 public char posmark LESSPARAMS ((POSITION pos));
210 public void unmark LESSPARAMS ((IFILE ifile));
211 public void opt_o LESSPARAMS ((int type, char *s));
212 public void opt__O LESSPARAMS ((int type, char *s));
213 public void opt_j LESSPARAMS ((int type, char *s));
214 public void calc_jump_sline LESSPARAMS ((VOID_PARAM));
215 public void opt_shift LESSPARAMS ((int type, char *s));
216 public void calc_shift_count LESSPARAMS ((VOID_PARAM));
217 public void opt_k LESSPARAMS ((int type, char *s));
218 public void opt_t LESSPARAMS ((int type, char *s));
219 public void opt__T LESSPARAMS ((int type, char *s));
220 public void opt_p LESSPARAMS ((int type, char *s));
221 public void opt__P LESSPARAMS ((int type, char *s));
222 public void opt_b LESSPARAMS ((int type, char *s));
223 public void opt_i LESSPARAMS ((int type, char *s));
224 public void opt__V LESSPARAMS ((int type, char *s));
225 public void opt_D LESSPARAMS ((int type, char *s));
226 public void opt_x LESSPARAMS ((int type, char *s));
227 public void opt_quote LESSPARAMS ((int type, char *s));
228 public void opt_rscroll LESSPARAMS ((int type, char *s));
229 public void opt_query LESSPARAMS ((int type, char *s));
230 public int get_swindow LESSPARAMS ((VOID_PARAM));
231 public char * propt LESSPARAMS ((int c));
232 public void scan_option LESSPARAMS ((char *s));
233 public void toggle_option LESSPARAMS ((struct loption *o, int lower, char *s, int how_toggle));
234 public int opt_has_param LESSPARAMS ((struct loption *o));
235 public char * opt_prompt LESSPARAMS ((struct loption *o));
236 public int isoptpending LESSPARAMS ((VOID_PARAM));
237 public void nopendopt LESSPARAMS ((VOID_PARAM));
238 public int getnum LESSPARAMS ((char **sp, char *printopt, int *errp));
239 public long getfraction LESSPARAMS ((char **sp, char *printopt, int *errp));
240 public int get_quit_at_eof LESSPARAMS ((VOID_PARAM));
241 public void init_option LESSPARAMS ((VOID_PARAM));
242 public struct loption * findopt LESSPARAMS ((int c));
243 public struct loption * findopt_name LESSPARAMS ((char **p_optname, char **p_oname, int *p_err));
244 public int iread LESSPARAMS ((int fd, unsigned char *buf, unsigned int len));
245 public void intread LESSPARAMS ((VOID_PARAM));
246 public time_type get_time LESSPARAMS ((VOID_PARAM));
247 public char * errno_message LESSPARAMS ((char *filename));
248 public int percentage LESSPARAMS ((POSITION num, POSITION den));
249 public POSITION percent_pos LESSPARAMS ((POSITION pos, int percent, long fraction));
250 public int  os9_signal LESSPARAMS ((int type, RETSIGTYPE (*handler)()));
251 public void put_line LESSPARAMS ((VOID_PARAM));
252 public void flush LESSPARAMS ((VOID_PARAM));
253 public int putchr LESSPARAMS ((int c));
254 public void putstr LESSPARAMS ((constant char *s));
255 public void get_return LESSPARAMS ((VOID_PARAM));
256 public void error LESSPARAMS ((char *fmt, PARG *parg));
257 public void ierror LESSPARAMS ((char *fmt, PARG *parg));
258 public int query LESSPARAMS ((char *fmt, PARG *parg));
259 public int compile_pattern LESSPARAMS ((char *pattern, int search_type, PATTERN_TYPE *comp_pattern));
260 public void uncompile_pattern LESSPARAMS ((PATTERN_TYPE *pattern));
261 public int valid_pattern LESSPARAMS ((char *pattern));
262 public int is_null_pattern LESSPARAMS ((PATTERN_TYPE pattern));
263 public int match_pattern LESSPARAMS ((PATTERN_TYPE pattern, char *tpattern, char *line, int line_len, char **sp, char **ep, int notbol, int search_type));
264 public POSITION position LESSPARAMS ((int sindex));
265 public void add_forw_pos LESSPARAMS ((POSITION pos));
266 public void add_back_pos LESSPARAMS ((POSITION pos));
267 public void pos_clear LESSPARAMS ((VOID_PARAM));
268 public void pos_init LESSPARAMS ((VOID_PARAM));
269 public int onscreen LESSPARAMS ((POSITION pos));
270 public int empty_screen LESSPARAMS ((VOID_PARAM));
271 public int empty_lines LESSPARAMS ((int s, int e));
272 public void get_scrpos LESSPARAMS ((struct scrpos *scrpos, int where));
273 public int sindex_from_sline LESSPARAMS ((int sline));
274 public void init_prompt LESSPARAMS ((VOID_PARAM));
275 public char * pr_expand LESSPARAMS ((constant char *proto, int maxwidth));
276 public char * eq_message LESSPARAMS ((VOID_PARAM));
277 public char * pr_string LESSPARAMS ((VOID_PARAM));
278 public char * wait_message LESSPARAMS ((VOID_PARAM));
279 public void init_search LESSPARAMS ((VOID_PARAM));
280 public void repaint_hilite LESSPARAMS ((int on));
281 public void clear_attn LESSPARAMS ((VOID_PARAM));
282 public void undo_search LESSPARAMS ((VOID_PARAM));
283 public void clr_hlist LESSPARAMS ((struct hilite_tree *anchor));
284 public void clr_hilite LESSPARAMS ((VOID_PARAM));
285 public void clr_filter LESSPARAMS ((VOID_PARAM));
286 public int is_filtered LESSPARAMS ((POSITION pos));
287 public POSITION next_unfiltered LESSPARAMS ((POSITION pos));
288 public POSITION prev_unfiltered LESSPARAMS ((POSITION pos));
289 public int is_hilited LESSPARAMS ((POSITION pos, POSITION epos, int nohide, int *p_matches));
290 public void chg_hilite LESSPARAMS ((VOID_PARAM));
291 public void chg_caseless LESSPARAMS ((VOID_PARAM));
292 public int search LESSPARAMS ((int search_type, char *pattern, int n));
293 public void prep_hilite LESSPARAMS ((POSITION spos, POSITION epos, int maxlines));
294 public void set_filter_pattern LESSPARAMS ((char *pattern, int search_type));
295 public int is_filtering LESSPARAMS ((VOID_PARAM));
296 public RETSIGTYPE winch LESSPARAMS ((int type));
297 public void init_signals LESSPARAMS ((int on));
298 public void psignals LESSPARAMS ((VOID_PARAM));
299 public void cleantags LESSPARAMS ((VOID_PARAM));
300 public int gettagtype LESSPARAMS ((VOID_PARAM));
301 public void findtag LESSPARAMS ((char *tag));
302 public POSITION tagsearch LESSPARAMS ((VOID_PARAM));
303 public char * nexttag LESSPARAMS ((int n));
304 public char * prevtag LESSPARAMS ((int n));
305 public int ntags LESSPARAMS ((VOID_PARAM));
306 public int curr_tag LESSPARAMS ((VOID_PARAM));
307 public int edit_tagfile LESSPARAMS ((VOID_PARAM));
308 public void open_getchr LESSPARAMS ((VOID_PARAM));
309 public void close_getchr LESSPARAMS ((VOID_PARAM));
310 public int getchr LESSPARAMS ((VOID_PARAM));
311