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