xref: /freebsd/contrib/less/funcs.h (revision 5c831a5bd61576cacb48b39f8eeb47b92707a355)
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 slinenum));
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 init_charset LESSPARAMS((VOID_PARAM));
56 public int binary_char LESSPARAMS((LWCHAR c));
57 public int control_char LESSPARAMS((LWCHAR c));
58 public char * prchar LESSPARAMS((LWCHAR c));
59 public char * prutfchar LESSPARAMS((LWCHAR ch));
60 public int utf_len LESSPARAMS((unsigned char ch));
61 public int is_utf8_well_formed LESSPARAMS((char *ss, int slen));
62 public int utf_bin_count LESSPARAMS((char *data, int len));
63 public LWCHAR get_wchar LESSPARAMS((constant char *p));
64 public void put_wchar LESSPARAMS((char **pp, LWCHAR ch));
65 public LWCHAR step_char LESSPARAMS((char **pp, signed int dir, constant char *limit));
66 public int is_composing_char LESSPARAMS((LWCHAR ch));
67 public int is_ubin_char LESSPARAMS((LWCHAR ch));
68 public int is_wide_char LESSPARAMS((LWCHAR ch));
69 public int is_combining_char LESSPARAMS((LWCHAR ch1, LWCHAR ch2));
70 public void cmd_reset LESSPARAMS((VOID_PARAM));
71 public void clear_cmd LESSPARAMS((VOID_PARAM));
72 public void cmd_putstr LESSPARAMS((constant char *s));
73 public int len_cmdbuf LESSPARAMS((VOID_PARAM));
74 public void set_mlist LESSPARAMS((void *mlist, int cmdflags));
75 public void cmd_addhist LESSPARAMS((struct mlist *mlist, constant char *cmd, int modified));
76 public void cmd_accept LESSPARAMS((VOID_PARAM));
77 public int cmd_char LESSPARAMS((int c));
78 public LINENUM cmd_int LESSPARAMS((long *frac));
79 public char * get_cmdbuf LESSPARAMS((VOID_PARAM));
80 public char * cmd_lastpattern LESSPARAMS((VOID_PARAM));
81 public void init_cmdhist LESSPARAMS((VOID_PARAM));
82 public void save_cmdhist LESSPARAMS((VOID_PARAM));
83 public int in_mca LESSPARAMS((VOID_PARAM));
84 public void dispversion LESSPARAMS((VOID_PARAM));
85 public int getcc LESSPARAMS((VOID_PARAM));
86 public void ungetcc LESSPARAMS((int c));
87 public void ungetsc LESSPARAMS((char *s));
88 public void commands LESSPARAMS((VOID_PARAM));
89 public int cvt_length LESSPARAMS((int len, int ops));
90 public int * cvt_alloc_chpos LESSPARAMS((int len));
91 public void cvt_text LESSPARAMS((char *odst, char *osrc, int *chpos, int *lenp, int ops));
92 public void init_cmds LESSPARAMS((VOID_PARAM));
93 public void add_fcmd_table LESSPARAMS((char *buf, int len));
94 public void add_ecmd_table LESSPARAMS((char *buf, int len));
95 public int fcmd_decode LESSPARAMS((char *cmd, char **sp));
96 public int ecmd_decode LESSPARAMS((char *cmd, char **sp));
97 public char * lgetenv LESSPARAMS((char *var));
98 public int lesskey LESSPARAMS((char *filename, int sysvar));
99 public void add_hometable LESSPARAMS((char *envname, char *def_filename, int sysvar));
100 public int editchar LESSPARAMS((int c, int flags));
101 public void init_textlist LESSPARAMS((struct textlist *tlist, char *str));
102 public char * forw_textlist LESSPARAMS((struct textlist *tlist, char *prev));
103 public char * back_textlist LESSPARAMS((struct textlist *tlist, char *prev));
104 public int edit LESSPARAMS((char *filename));
105 public int edit_ifile LESSPARAMS((IFILE ifile));
106 public int edit_list LESSPARAMS((char *filelist));
107 public int edit_first LESSPARAMS((VOID_PARAM));
108 public int edit_last LESSPARAMS((VOID_PARAM));
109 public int edit_next LESSPARAMS((int n));
110 public int edit_prev LESSPARAMS((int n));
111 public int edit_index LESSPARAMS((int n));
112 public IFILE save_curr_ifile LESSPARAMS((VOID_PARAM));
113 public void unsave_ifile LESSPARAMS((IFILE save_ifile));
114 public void reedit_ifile LESSPARAMS((IFILE save_ifile));
115 public void reopen_curr_ifile LESSPARAMS((VOID_PARAM));
116 public int edit_stdin LESSPARAMS((VOID_PARAM));
117 public void cat_file LESSPARAMS((VOID_PARAM));
118 public void use_logfile LESSPARAMS((char *filename));
119 public char * shell_unquote LESSPARAMS((char *str));
120 public char * get_meta_escape LESSPARAMS((VOID_PARAM));
121 public char * shell_quote LESSPARAMS((char *s));
122 public char * homefile LESSPARAMS((char *filename));
123 public char * fexpand LESSPARAMS((char *s));
124 public char * fcomplete LESSPARAMS((char *s));
125 public int bin_file LESSPARAMS((int f));
126 public char * lglob LESSPARAMS((char *filename));
127 public char * open_altfile LESSPARAMS((char *filename, int *pf, void **pfd));
128 public void close_altfile LESSPARAMS((char *altfilename, char *filename, void *pipefd));
129 public int is_dir LESSPARAMS((char *filename));
130 public char * bad_file LESSPARAMS((char *filename));
131 public POSITION filesize LESSPARAMS((int f));
132 public char * shell_coption LESSPARAMS((VOID_PARAM));
133 public char * last_component LESSPARAMS((char *name));
134 public int eof_displayed LESSPARAMS((VOID_PARAM));
135 public int entire_file_displayed LESSPARAMS((VOID_PARAM));
136 public void squish_check LESSPARAMS((VOID_PARAM));
137 public void forw LESSPARAMS((int n, POSITION pos, int force, int only_last, int nblank));
138 public void back LESSPARAMS((int n, POSITION pos, int force, int only_last));
139 public void forward LESSPARAMS((int n, int force, int only_last));
140 public void backward LESSPARAMS((int n, int force, int only_last));
141 public int get_back_scroll LESSPARAMS((VOID_PARAM));
142 public int get_line_count LESSPARAMS((VOID_PARAM));
143 public void del_ifile LESSPARAMS((IFILE h));
144 public IFILE next_ifile LESSPARAMS((IFILE h));
145 public IFILE prev_ifile LESSPARAMS((IFILE h));
146 public IFILE getoff_ifile LESSPARAMS((IFILE ifile));
147 public int nifile LESSPARAMS((VOID_PARAM));
148 public IFILE get_ifile LESSPARAMS((char *filename, IFILE prev));
149 public char * get_filename LESSPARAMS((IFILE ifile));
150 public int get_index LESSPARAMS((IFILE ifile));
151 public void store_pos LESSPARAMS((IFILE ifile, struct scrpos *scrpos));
152 public void get_pos LESSPARAMS((IFILE ifile, struct scrpos *scrpos));
153 public void set_open LESSPARAMS((IFILE ifile));
154 public int opened LESSPARAMS((IFILE ifile));
155 public void hold_ifile LESSPARAMS((IFILE ifile, int incr));
156 public int held_ifile LESSPARAMS((IFILE ifile));
157 public void * get_filestate LESSPARAMS((IFILE ifile));
158 public void set_filestate LESSPARAMS((IFILE ifile, void *filestate));
159 public void if_dump LESSPARAMS((VOID_PARAM));
160 public POSITION forw_line LESSPARAMS((POSITION curr_pos));
161 public POSITION back_line LESSPARAMS((POSITION curr_pos));
162 public void set_attnpos LESSPARAMS((POSITION pos));
163 public void jump_forw LESSPARAMS((VOID_PARAM));
164 public void jump_forw_buffered LESSPARAMS((VOID_PARAM));
165 public void jump_back LESSPARAMS((LINENUM linenum));
166 public void repaint LESSPARAMS((VOID_PARAM));
167 public void jump_percent LESSPARAMS((int percent, long fraction));
168 public void jump_line_loc LESSPARAMS((POSITION pos, int sline));
169 public void jump_loc LESSPARAMS((POSITION pos, int sline));
170 public void init_line LESSPARAMS((VOID_PARAM));
171 public int is_ascii_char LESSPARAMS((LWCHAR ch));
172 public void prewind LESSPARAMS((VOID_PARAM));
173 public void plinenum LESSPARAMS((POSITION pos));
174 public void pshift_all LESSPARAMS((VOID_PARAM));
175 public int is_ansi_end LESSPARAMS((LWCHAR ch));
176 public int is_ansi_middle LESSPARAMS((LWCHAR ch));
177 public int pappend LESSPARAMS((unsigned char c, POSITION pos));
178 public int pflushmbc LESSPARAMS((VOID_PARAM));
179 public void pdone LESSPARAMS((int endline, int forw));
180 public void set_status_col LESSPARAMS((char c));
181 public int gline LESSPARAMS((int i, int *ap));
182 public void null_line LESSPARAMS((VOID_PARAM));
183 public POSITION forw_raw_line LESSPARAMS((POSITION curr_pos, char **linep, int *line_lenp));
184 public POSITION back_raw_line LESSPARAMS((POSITION curr_pos, char **linep, int *line_lenp));
185 public int rrshift LESSPARAMS((VOID_PARAM));
186 public void clr_linenum LESSPARAMS((VOID_PARAM));
187 public void add_lnum LESSPARAMS((LINENUM linenum, POSITION pos));
188 public LINENUM find_linenum LESSPARAMS((POSITION pos));
189 public POSITION find_pos LESSPARAMS((LINENUM linenum));
190 public LINENUM currline LESSPARAMS((int where));
191 public void lsystem LESSPARAMS((char *cmd, char *donemsg));
192 public int pipe_mark LESSPARAMS((int c, char *cmd));
193 public int pipe_data LESSPARAMS((char *cmd, POSITION spos, POSITION epos));
194 public void init_mark LESSPARAMS((VOID_PARAM));
195 public int badmark LESSPARAMS((int c));
196 public void setmark LESSPARAMS((int c));
197 public void lastmark LESSPARAMS((VOID_PARAM));
198 public void gomark LESSPARAMS((int c));
199 public POSITION markpos LESSPARAMS((int c));
200 public void unmark LESSPARAMS((IFILE ifile));
201 public void opt_o LESSPARAMS((int type, char *s));
202 public void opt__O LESSPARAMS((int type, char *s));
203 public void opt_j LESSPARAMS((int type, char *s));
204 public void calc_jump_sline LESSPARAMS((VOID_PARAM));
205 public void opt_shift LESSPARAMS((int type, char *s));
206 public void calc_shift_count LESSPARAMS((VOID_PARAM));
207 public void opt_k LESSPARAMS((int type, char *s));
208 public void opt_t LESSPARAMS((int type, char *s));
209 public void opt__T LESSPARAMS((int type, char *s));
210 public void opt_p LESSPARAMS((int type, char *s));
211 public void opt__P LESSPARAMS((int type, char *s));
212 public void opt_b LESSPARAMS((int type, char *s));
213 public void opt_i LESSPARAMS((int type, char *s));
214 public void opt__V LESSPARAMS((int type, char *s));
215 public void opt_D LESSPARAMS((int type, char *s));
216 public void opt_x LESSPARAMS((int type, char *s));
217 public void opt_quote LESSPARAMS((int type, char *s));
218 public void opt_query LESSPARAMS((int type, char *s));
219 public int get_swindow LESSPARAMS((VOID_PARAM));
220 public char * propt LESSPARAMS((int c));
221 public void scan_option LESSPARAMS((char *s));
222 public void toggle_option LESSPARAMS((struct loption *o, int lower, char *s, int how_toggle));
223 public int opt_has_param LESSPARAMS((struct loption *o));
224 public char * opt_prompt LESSPARAMS((struct loption *o));
225 public int isoptpending LESSPARAMS((VOID_PARAM));
226 public void nopendopt LESSPARAMS((VOID_PARAM));
227 public int getnum LESSPARAMS((char **sp, char *printopt, int *errp));
228 public long getfraction LESSPARAMS((char **sp, char *printopt, int *errp));
229 public int get_quit_at_eof LESSPARAMS((VOID_PARAM));
230 public void init_option LESSPARAMS((VOID_PARAM));
231 public struct loption * findopt LESSPARAMS((int c));
232 public struct loption * findopt_name LESSPARAMS((char **p_optname, char **p_oname, int *p_err));
233 public int iread LESSPARAMS((int fd, unsigned char *buf, unsigned int len));
234 public void intread LESSPARAMS((VOID_PARAM));
235 public time_type get_time LESSPARAMS((VOID_PARAM));
236 public char * errno_message LESSPARAMS((char *filename));
237 public int percentage LESSPARAMS((POSITION num, POSITION den));
238 public POSITION percent_pos LESSPARAMS((POSITION pos, int percent, long fraction));
239 public int  os9_signal LESSPARAMS((int type, RETSIGTYPE (*handler)()));
240 public void put_line LESSPARAMS((VOID_PARAM));
241 public void flush LESSPARAMS((VOID_PARAM));
242 public int putchr LESSPARAMS((int c));
243 public void putstr LESSPARAMS((constant char *s));
244 public void get_return LESSPARAMS((VOID_PARAM));
245 public void error LESSPARAMS((char *fmt, PARG *parg));
246 public void ierror LESSPARAMS((char *fmt, PARG *parg));
247 public int query LESSPARAMS((char *fmt, PARG *parg));
248 public int compile_pattern LESSPARAMS((char *pattern, int search_type, PATTERN_TYPE *comp_pattern));
249 public void uncompile_pattern LESSPARAMS((PATTERN_TYPE *pattern));
250 public int valid_pattern LESSPARAMS((char *pattern));
251 public int is_null_pattern LESSPARAMS((PATTERN_TYPE pattern));
252 public int match_pattern LESSPARAMS((PATTERN_TYPE pattern, char *tpattern, char *line, int line_len, char **sp, char **ep, int notbol, int search_type));
253 public POSITION position LESSPARAMS((int where));
254 public void add_forw_pos LESSPARAMS((POSITION pos));
255 public void add_back_pos LESSPARAMS((POSITION pos));
256 public void pos_clear LESSPARAMS((VOID_PARAM));
257 public void pos_init LESSPARAMS((VOID_PARAM));
258 public int onscreen LESSPARAMS((POSITION pos));
259 public int empty_screen LESSPARAMS((VOID_PARAM));
260 public int empty_lines LESSPARAMS((int s, int e));
261 public void get_scrpos LESSPARAMS((struct scrpos *scrpos));
262 public int adjsline LESSPARAMS((int sline));
263 public void init_prompt LESSPARAMS((VOID_PARAM));
264 public char * pr_expand LESSPARAMS((constant char *proto, int maxwidth));
265 public char * eq_message LESSPARAMS((VOID_PARAM));
266 public char * pr_string LESSPARAMS((VOID_PARAM));
267 public char * wait_message LESSPARAMS((VOID_PARAM));
268 public void init_search LESSPARAMS((VOID_PARAM));
269 public void repaint_hilite LESSPARAMS((int on));
270 public void clear_attn LESSPARAMS((VOID_PARAM));
271 public void undo_search LESSPARAMS((VOID_PARAM));
272 public void clr_hlist LESSPARAMS((struct hilite_tree *anchor));
273 public void clr_hilite LESSPARAMS((VOID_PARAM));
274 public void clr_filter LESSPARAMS((VOID_PARAM));
275 public int is_filtered LESSPARAMS((POSITION pos));
276 public POSITION next_unfiltered LESSPARAMS((POSITION pos));
277 public POSITION prev_unfiltered LESSPARAMS((POSITION pos));
278 public int is_hilited LESSPARAMS((POSITION pos, POSITION epos, int nohide, int *p_matches));
279 public void chg_hilite LESSPARAMS((VOID_PARAM));
280 public void chg_caseless LESSPARAMS((VOID_PARAM));
281 public int search LESSPARAMS((int search_type, char *pattern, int n));
282 public void prep_hilite LESSPARAMS((POSITION spos, POSITION epos, int maxlines));
283 public void set_filter_pattern LESSPARAMS((char *pattern, int search_type));
284 public int is_filtering LESSPARAMS((VOID_PARAM));
285 public RETSIGTYPE winch LESSPARAMS((int type));
286 public RETSIGTYPE winch LESSPARAMS((int type));
287 public void init_signals LESSPARAMS((int on));
288 public void psignals LESSPARAMS((VOID_PARAM));
289 public void cleantags LESSPARAMS((VOID_PARAM));
290 public int gettagtype LESSPARAMS((VOID_PARAM));
291 public void findtag LESSPARAMS((char *tag));
292 public POSITION tagsearch LESSPARAMS((VOID_PARAM));
293 public char * nexttag LESSPARAMS((int n));
294 public char * prevtag LESSPARAMS((int n));
295 public int ntags LESSPARAMS((VOID_PARAM));
296 public int curr_tag LESSPARAMS((VOID_PARAM));
297 public int edit_tagfile LESSPARAMS((VOID_PARAM));
298 public void open_getchr LESSPARAMS((VOID_PARAM));
299 public void close_getchr LESSPARAMS((VOID_PARAM));
300 public int getchr LESSPARAMS((VOID_PARAM));
301