1*c77c4889SXin LI public char * saven(constant char *s, size_t n); 2d713e089SXin LI public char * save(constant char *s); 3d713e089SXin LI public void out_of_memory(void); 4*c77c4889SXin LI public void * ecalloc(size_t count, size_t size); 5d713e089SXin LI public char * skipsp(char *s); 6*c77c4889SXin LI public constant char * skipspc(constant char *s); 7*c77c4889SXin LI public size_t sprefix(constant char *ps, constant char *s, int uppercase); 8d713e089SXin LI public void quit(int status); 9*c77c4889SXin LI public int secure_allow(int features); 10d713e089SXin LI public void raw_mode(int on); 11*c77c4889SXin LI public void screen_size_changed(void); 12*c77c4889SXin LI public constant char * special_key_str(int key); 13*c77c4889SXin LI public void init_win_colors(void); 14d713e089SXin LI public void get_term(void); 15d713e089SXin LI public void init_mouse(void); 16d713e089SXin LI public void deinit_mouse(void); 17d713e089SXin LI public void init(void); 18d713e089SXin LI public void deinit(void); 19d713e089SXin LI public int interactive(void); 20d713e089SXin LI public void home(void); 21d713e089SXin LI public void dump_screen(void); 22d713e089SXin LI public void add_line(void); 23d713e089SXin LI public void remove_top(int n); 24d713e089SXin LI public void win32_scroll_up(int n); 25d713e089SXin LI public void lower_left(void); 26d713e089SXin LI public void line_left(void); 27d713e089SXin LI public void check_winch(void); 28d713e089SXin LI public void goto_line(int sindex); 29d713e089SXin LI public void vbell(void); 30d713e089SXin LI public void bell(void); 31d713e089SXin LI public void clear(void); 32d713e089SXin LI public void clear_eol(void); 33d713e089SXin LI public void clear_bot(void); 34*c77c4889SXin LI public COLOR_TYPE parse_color(constant char *str, mutable int *p_fg, mutable int *p_bg, mutable CHAR_ATTR *p_cattr); 35d713e089SXin LI public void at_enter(int attr); 36d713e089SXin LI public void at_exit(void); 37d713e089SXin LI public void at_switch(int attr); 38*c77c4889SXin LI public lbool is_at_equiv(int attr1, int attr2); 39d713e089SXin LI public int apply_at_specials(int attr); 40d713e089SXin LI public void putbs(void); 41f80a33eaSXin LI public void WIN32ungetch(int ch); 42*c77c4889SXin LI public lbool win32_kbhit(void); 43*c77c4889SXin LI public char WIN32getch(void); 44*c77c4889SXin LI public void win32_getch_clear(void); 45d713e089SXin LI public void WIN32setcolors(int fg, int bg); 46*c77c4889SXin LI public void WIN32textout(constant char *text, size_t len); 47d713e089SXin LI public void match_brac(char obrac, char cbrac, int forwdir, int n); 48d713e089SXin LI public void ch_ungetchar(int c); 49d713e089SXin LI public void end_logfile(void); 50d713e089SXin LI public void sync_logfile(void); 51d713e089SXin LI public int ch_seek(POSITION pos); 52d713e089SXin LI public int ch_end_seek(void); 53d713e089SXin LI public int ch_end_buffer_seek(void); 54d713e089SXin LI public int ch_beg_seek(void); 55d713e089SXin LI public POSITION ch_length(void); 56d713e089SXin LI public POSITION ch_tell(void); 57d713e089SXin LI public int ch_forw_get(void); 58d713e089SXin LI public int ch_back_get(void); 59*c77c4889SXin LI public void ch_setbufspace(ssize_t bufspace); 60d713e089SXin LI public void ch_flush(void); 61d713e089SXin LI public int seekable(int f); 62d713e089SXin LI public void ch_set_eof(void); 63*c77c4889SXin LI public void ch_init(int f, int flags, ssize_t nread); 64d713e089SXin LI public void ch_close(void); 65d713e089SXin LI public int ch_getflags(void); 66*c77c4889SXin LI public void setfmt(constant char *s, constant char **fmtvarptr, int *attrptr, constant char *default_fmt, lbool for_printf); 67d713e089SXin LI public void init_charset(void); 68*c77c4889SXin LI public lbool binary_char(LWCHAR c); 69*c77c4889SXin LI public lbool control_char(LWCHAR c); 70*c77c4889SXin LI public constant char * prchar(LWCHAR c); 71*c77c4889SXin LI public constant char * prutfchar(LWCHAR ch); 72*c77c4889SXin LI public int utf_len(char ch); 73*c77c4889SXin LI public lbool is_utf8_well_formed(constant char *ss, int slen); 74*c77c4889SXin LI public void utf_skip_to_lead(constant char **pp, constant char *limit); 75*c77c4889SXin LI public LWCHAR get_wchar(constant char *sp); 76*c77c4889SXin LI public void put_wchar(mutable char **pp, LWCHAR ch); 77*c77c4889SXin LI public LWCHAR step_charc(constant char **pp, signed int dir, constant char *limit); 78d713e089SXin LI public LWCHAR step_char(char **pp, signed int dir, constant char *limit); 79*c77c4889SXin LI public lbool is_composing_char(LWCHAR ch); 80*c77c4889SXin LI public lbool is_ubin_char(LWCHAR ch); 81*c77c4889SXin LI public lbool is_wide_char(LWCHAR ch); 82*c77c4889SXin LI public lbool is_combining_char(LWCHAR ch1, LWCHAR ch2); 83d713e089SXin LI public void cmd_reset(void); 84d713e089SXin LI public void clear_cmd(void); 85d713e089SXin LI public void cmd_putstr(constant char *s); 86d713e089SXin LI public int len_cmdbuf(void); 87d713e089SXin LI public void cmd_repaint(constant char *old_cp); 88d713e089SXin LI public void set_mlist(void *mlist, int cmdflags); 89*c77c4889SXin LI public ssize_t save_updown_match(void); 90*c77c4889SXin LI public void restore_updown_match(ssize_t udm); 91*c77c4889SXin LI public void cmd_addhist(struct mlist *mlist, constant char *cmd, lbool modified); 92d713e089SXin LI public void cmd_accept(void); 93*c77c4889SXin LI public int cmd_char(char c); 94*c77c4889SXin LI public LINENUM cmd_int(mutable long *frac); 95*c77c4889SXin LI public constant char * get_cmdbuf(void); 96*c77c4889SXin LI public constant char * cmd_lastpattern(void); 97d713e089SXin LI public void init_cmdhist(void); 98d713e089SXin LI public void save_cmdhist(void); 99d713e089SXin LI public int in_mca(void); 100d713e089SXin LI public int norm_search_type(int st); 101*c77c4889SXin LI public void screen_trashed_num(int trashed); 102*c77c4889SXin LI public void screen_trashed(void); 103*c77c4889SXin LI public int is_screen_trashed(void); 104d713e089SXin LI public void dispversion(void); 105*c77c4889SXin LI public void getcc_clear(void); 106*c77c4889SXin LI public char getcc(void); 107*c77c4889SXin LI public void ungetcc(char c); 108*c77c4889SXin LI public void ungetcc_back(char c); 109*c77c4889SXin LI public void ungetcc_end_command(void); 110*c77c4889SXin LI public void ungetsc(constant char *s); 111*c77c4889SXin LI public char peekcc(void); 112d713e089SXin LI public void commands(void); 113*c77c4889SXin LI public size_t cvt_length(size_t len, int ops); 114*c77c4889SXin LI public int * cvt_alloc_chpos(size_t len); 115*c77c4889SXin LI public void cvt_text(mutable char *odst, constant char *osrc, mutable int *chpos, mutable size_t *lenp, int ops); 116d713e089SXin LI public void expand_cmd_tables(void); 117d713e089SXin LI public void init_cmds(void); 118*c77c4889SXin LI public void add_fcmd_table(unsigned char *buf, size_t len); 119*c77c4889SXin LI public void add_ecmd_table(unsigned char *buf, size_t len); 120*c77c4889SXin LI public void add_uvar_table(unsigned char *buf, size_t len); 121*c77c4889SXin LI public void add_sysvar_table(unsigned char *buf, size_t len); 122*c77c4889SXin LI public int fcmd_decode(constant char *cmd, constant char **sp); 123*c77c4889SXin LI public int ecmd_decode(constant char *cmd, constant char **sp); 124*c77c4889SXin LI public constant char * lgetenv(constant char *var); 125*c77c4889SXin LI public constant char * lgetenv_ext(constant char *var, unsigned char *env_buf, size_t env_buf_len); 126*c77c4889SXin LI public lbool isnullenv(constant char *s); 127*c77c4889SXin LI public int lesskey(constant char *filename, lbool sysvar); 128*c77c4889SXin LI public int lesskey_src(constant char *filename, lbool sysvar); 129*c77c4889SXin LI public int lesskey_content(constant char *content, lbool sysvar); 130*c77c4889SXin LI public int editchar(char c, int flags); 131*c77c4889SXin LI public void init_textlist(struct textlist *tlist, mutable char *str); 132*c77c4889SXin LI public constant char * forw_textlist(struct textlist *tlist, constant char *prev); 133*c77c4889SXin LI public constant char * back_textlist(struct textlist *tlist, constant char *prev); 134d713e089SXin LI public void close_altpipe(IFILE ifile); 135d713e089SXin LI public void check_altpipe_error(void); 136*c77c4889SXin LI public int edit(constant char *filename); 137d713e089SXin LI public int edit_ifile(IFILE ifile); 138d713e089SXin LI public int edit_list(char *filelist); 139d713e089SXin LI public int edit_first(void); 140d713e089SXin LI public int edit_last(void); 141d713e089SXin LI public int edit_next(int n); 142d713e089SXin LI public int edit_prev(int n); 143d713e089SXin LI public int edit_index(int n); 144d713e089SXin LI public IFILE save_curr_ifile(void); 145d713e089SXin LI public void unsave_ifile(IFILE save_ifile); 146d713e089SXin LI public void reedit_ifile(IFILE save_ifile); 147d713e089SXin LI public void reopen_curr_ifile(void); 148d713e089SXin LI public int edit_stdin(void); 149d713e089SXin LI public void cat_file(void); 150*c77c4889SXin LI public void use_logfile(constant char *filename); 151*c77c4889SXin LI public void expand_evars(mutable char *buf, size_t len, struct xbuffer *xbuf); 152*c77c4889SXin LI public char * shell_unquote(constant char *str); 153*c77c4889SXin LI public constant char * get_meta_escape(void); 154*c77c4889SXin LI public char * shell_quoten(constant char *s, size_t slen); 155*c77c4889SXin LI public char * shell_quote(constant char *s); 156*c77c4889SXin LI public char * dirfile(constant char *dirname, constant char *filename, int must_exist); 157*c77c4889SXin LI public char * homefile(constant char *filename); 158*c77c4889SXin LI public char * fexpand(constant char *s); 159*c77c4889SXin LI public char * fcomplete(constant char *s); 160*c77c4889SXin LI public int bin_file(int f, ssize_t *n); 161*c77c4889SXin LI public char * readfd(FILE *fd); 162*c77c4889SXin LI public char * lglob(constant char *afilename); 163*c77c4889SXin LI public lbool is_fake_pathname(constant char *path); 164*c77c4889SXin LI public char * lrealpath(constant char *path); 165*c77c4889SXin LI public char * open_altfile(constant char *filename, int *pf, void **pfd); 166*c77c4889SXin LI public void close_altfile(constant char *altfilename, constant char *filename); 167*c77c4889SXin LI public lbool is_dir(constant char *filename); 168*c77c4889SXin LI public char * bad_file(constant char *filename); 169d713e089SXin LI public POSITION filesize(int f); 170*c77c4889SXin LI public lbool curr_ifile_changed(void); 171*c77c4889SXin LI public constant char * shell_coption(void); 172*c77c4889SXin LI public constant char * last_component(constant char *name); 173d713e089SXin LI public void eof_bell(void); 174*c77c4889SXin LI public lbool eof_displayed(void); 175*c77c4889SXin LI public lbool entire_file_displayed(void); 176d713e089SXin LI public void squish_check(void); 177d713e089SXin LI public int overlay_header(void); 178*c77c4889SXin LI public void forw(int n, POSITION pos, lbool force, lbool only_last, int nblank); 179*c77c4889SXin LI public void back(int n, POSITION pos, lbool force, lbool only_last); 180*c77c4889SXin LI public void forward(int n, lbool force, lbool only_last); 181*c77c4889SXin LI public void backward(int n, lbool force, lbool only_last); 182d713e089SXin LI public int get_back_scroll(void); 183d713e089SXin LI public int get_one_screen(void); 184d713e089SXin LI public void del_ifile(IFILE h); 185d713e089SXin LI public IFILE next_ifile(IFILE h); 186d713e089SXin LI public IFILE prev_ifile(IFILE h); 187d713e089SXin LI public IFILE getoff_ifile(IFILE ifile); 188d713e089SXin LI public int nifile(void); 189*c77c4889SXin LI public IFILE get_ifile(constant char *filename, IFILE prev); 190*c77c4889SXin LI public constant char * get_filename(IFILE ifile); 191*c77c4889SXin LI public constant char * get_real_filename(IFILE ifile); 192d713e089SXin LI public int get_index(IFILE ifile); 193d713e089SXin LI public void store_pos(IFILE ifile, struct scrpos *scrpos); 194d713e089SXin LI public void get_pos(IFILE ifile, struct scrpos *scrpos); 195d713e089SXin LI public void set_open(IFILE ifile); 196d713e089SXin LI public int opened(IFILE ifile); 197d713e089SXin LI public void hold_ifile(IFILE ifile, int incr); 198d713e089SXin LI public int held_ifile(IFILE ifile); 199d713e089SXin LI public void * get_filestate(IFILE ifile); 200d713e089SXin LI public void set_filestate(IFILE ifile, void *filestate); 201d713e089SXin LI public void set_altpipe(IFILE ifile, void *p); 202d713e089SXin LI public void *get_altpipe(IFILE ifile); 203d713e089SXin LI public void set_altfilename(IFILE ifile, char *altfilename); 204d713e089SXin LI public char * get_altfilename(IFILE ifile); 205d713e089SXin LI public void if_dump(void); 206*c77c4889SXin LI public POSITION forw_line_seg(POSITION curr_pos, lbool skipeol, lbool rscroll, lbool nochop); 207d713e089SXin LI public POSITION forw_line(POSITION curr_pos); 208d713e089SXin LI public POSITION back_line(POSITION curr_pos); 209d713e089SXin LI public void set_attnpos(POSITION pos); 210d713e089SXin LI public void jump_forw(void); 211d713e089SXin LI public void jump_forw_buffered(void); 212d713e089SXin LI public void jump_back(LINENUM linenum); 213d713e089SXin LI public void repaint(void); 214d713e089SXin LI public void jump_percent(int percent, long fraction); 215d713e089SXin LI public void jump_line_loc(POSITION pos, int sline); 216*c77c4889SXin LI public POSITION after_header_pos(POSITION pos); 217d713e089SXin LI public void jump_loc(POSITION pos, int sline); 218d713e089SXin LI public void init_line(void); 219*c77c4889SXin LI public lbool is_ascii_char(LWCHAR ch); 220d713e089SXin LI public POSITION line_position(void); 221d713e089SXin LI public void prewind(void); 222d713e089SXin LI public void plinestart(POSITION pos); 223d713e089SXin LI public int line_pfx_width(void); 224d713e089SXin LI public void pshift_all(void); 225d713e089SXin LI public int pwidth(LWCHAR ch, int a, LWCHAR prev_ch, int prev_a); 226d713e089SXin LI public void savec(void); 227d713e089SXin LI public void loadc(void); 228*c77c4889SXin LI public lbool is_ansi_end(LWCHAR ch); 229*c77c4889SXin LI public lbool is_ansi_middle(LWCHAR ch); 230*c77c4889SXin LI public void skip_ansi(struct ansi_state *pansi, constant char **pp, constant char *limit); 231d713e089SXin LI public struct ansi_state * ansi_start(LWCHAR ch); 232*c77c4889SXin LI public ansi_state ansi_step(struct ansi_state *pansi, LWCHAR ch); 233*c77c4889SXin LI public osc8_state ansi_osc8_state(struct ansi_state *pansi); 234d713e089SXin LI public void ansi_done(struct ansi_state *pansi); 235*c77c4889SXin LI public int pappend_b(char c, POSITION pos, lbool before_pendc); 236*c77c4889SXin LI public int pappend(char c, POSITION pos); 237d713e089SXin LI public int pflushmbc(void); 238d713e089SXin LI public void pdone(int endline, int chopped, int forw); 239*c77c4889SXin LI public int col_from_pos(POSITION linepos, POSITION spos, POSITION saved_pos, int saved_col); 240*c77c4889SXin LI public POSITION pos_from_col(POSITION linepos, int col, POSITION saved_pos, int saved_col); 241d713e089SXin LI public void set_attr_line(int a); 242d713e089SXin LI public void set_status_col(char c, int attr); 243*c77c4889SXin LI public int gline(size_t i, int *ap); 244d713e089SXin LI public void null_line(void); 245*c77c4889SXin LI public POSITION forw_raw_line_len(POSITION curr_pos, size_t read_len, constant char **linep, size_t *line_lenp); 246*c77c4889SXin LI public POSITION forw_raw_line(POSITION curr_pos, constant char **linep, size_t *line_lenp); 247*c77c4889SXin LI public POSITION back_raw_line(POSITION curr_pos, constant char **linep, size_t *line_lenp); 248*c77c4889SXin LI public int skip_columns(int cols, constant char **linep, size_t *line_lenp); 249d713e089SXin LI public void load_line(constant char *str); 250d713e089SXin LI public int rrshift(void); 251*c77c4889SXin LI public int set_color_map(int attr, constant char *colorstr); 252*c77c4889SXin LI public constant char * get_color_map(int attr); 253d713e089SXin LI public void clr_linenum(void); 254d713e089SXin LI public void add_lnum(LINENUM linenum, POSITION pos); 255d713e089SXin LI public LINENUM find_linenum(POSITION pos); 256d713e089SXin LI public POSITION find_pos(LINENUM linenum); 257d713e089SXin LI public LINENUM currline(int where); 258d713e089SXin LI public void scan_eof(void); 259d713e089SXin LI public LINENUM vlinenum(LINENUM linenum); 260*c77c4889SXin LI public void lsystem(constant char *cmd, constant char *donemsg); 261*c77c4889SXin LI public int pipe_mark(char c, constant char *cmd); 262*c77c4889SXin LI public int pipe_data(constant char *cmd, POSITION spos, POSITION epos); 263d713e089SXin LI public void init_mark(void); 264*c77c4889SXin LI public int badmark(char c); 265*c77c4889SXin LI public void setmark(char c, int where); 266*c77c4889SXin LI public void clrmark(char c); 267d713e089SXin LI public void lastmark(void); 268*c77c4889SXin LI public void gomark(char c); 269*c77c4889SXin LI public POSITION markpos(char c); 270d713e089SXin LI public char posmark(POSITION pos); 271d713e089SXin LI public void unmark(IFILE ifile); 272d713e089SXin LI public void mark_check_ifile(IFILE ifile); 273*c77c4889SXin LI public void save_marks(FILE *fout, constant char *hdr); 274*c77c4889SXin LI public void restore_mark(constant char *line); 275*c77c4889SXin LI public void opt_o(int type, constant char *s); 276*c77c4889SXin LI public void opt__O(int type, constant char *s); 277*c77c4889SXin LI public void opt_j(int type, constant char *s); 278d713e089SXin LI public void calc_jump_sline(void); 279*c77c4889SXin LI public void opt_shift(int type, constant char *s); 280d713e089SXin LI public void calc_shift_count(void); 281*c77c4889SXin LI public void opt_k(int type, constant char *s); 282*c77c4889SXin LI public void opt_ks(int type, constant char *s); 283*c77c4889SXin LI public void opt_kc(int type, constant char *s); 284*c77c4889SXin LI public void opt__S(int type, constant char *s); 285*c77c4889SXin LI public void opt_t(int type, constant char *s); 286*c77c4889SXin LI public void opt__T(int type, constant char *s); 287*c77c4889SXin LI public void opt_p(int type, constant char *s); 288*c77c4889SXin LI public void opt__P(int type, constant char *s); 289*c77c4889SXin LI public void opt_b(int type, constant char *s); 290*c77c4889SXin LI public void opt_i(int type, constant char *s); 291*c77c4889SXin LI public void opt__V(int type, constant char *s); 292*c77c4889SXin LI public void opt_D(int type, constant char *s); 293*c77c4889SXin LI public void set_tabs(constant char *s, size_t len); 294*c77c4889SXin LI public void opt_x(int type, constant char *s); 295*c77c4889SXin LI public void opt_quote(int type, constant char *s); 296*c77c4889SXin LI public void opt_rscroll(int type, constant char *s); 297*c77c4889SXin LI public void opt_query(int type, constant char *s); 298*c77c4889SXin LI public void opt_match_shift(int type, constant char *s); 299*c77c4889SXin LI public void calc_match_shift(void); 300*c77c4889SXin LI public void opt_mousecap(int type, constant char *s); 301*c77c4889SXin LI public void opt_wheel_lines(int type, constant char *s); 302*c77c4889SXin LI public void opt_linenum_width(int type, constant char *s); 303*c77c4889SXin LI public void opt_status_col_width(int type, constant char *s); 304*c77c4889SXin LI public void opt_filesize(int type, constant char *s); 305*c77c4889SXin LI public void opt_intr(int type, constant char *s); 306*c77c4889SXin LI public int next_cnum(constant char **sp, constant char *printopt, constant char *errmsg, lbool *errp); 307*c77c4889SXin LI public void opt_header(int type, constant char *s); 308*c77c4889SXin LI public void opt_search_type(int type, constant char *s); 309*c77c4889SXin LI public void opt_nosearch_headers(int type, constant char *s); 310*c77c4889SXin LI public void opt_nosearch_header_lines(int type, constant char *s); 311*c77c4889SXin LI public void opt_nosearch_header_cols(int type, constant char *s); 312*c77c4889SXin LI public void opt_ttyin_name(int type, constant char *s); 313d713e089SXin LI public int chop_line(void); 314d713e089SXin LI public int get_swindow(void); 315*c77c4889SXin LI public constant char * propt(char c); 316*c77c4889SXin LI public void scan_option(constant char *s); 317*c77c4889SXin LI public void toggle_option(struct loption *o, int lower, constant char *s, int how_toggle); 318d713e089SXin LI public int opt_has_param(struct loption *o); 319*c77c4889SXin LI public constant char * opt_prompt(struct loption *o); 320*c77c4889SXin LI public constant char * opt_toggle_disallowed(int c); 321*c77c4889SXin LI public lbool isoptpending(void); 322d713e089SXin LI public void nopendopt(void); 323*c77c4889SXin LI public int getnumc(constant char **sp, constant char *printopt, lbool *errp); 324*c77c4889SXin LI public int getnum(char **sp, constant char *printopt, lbool *errp); 325*c77c4889SXin LI public long getfraction(constant char **sp, constant char *printopt, lbool *errp); 326*c77c4889SXin LI public void init_unsupport(void); 327d713e089SXin LI public int get_quit_at_eof(void); 328d713e089SXin LI public void init_option(void); 329d713e089SXin LI public struct loption * findopt(int c); 330*c77c4889SXin LI public struct loption * findopt_name(constant char **p_optname, constant char **p_oname, lbool *p_ambig); 331d713e089SXin LI public void init_poll(void); 332d713e089SXin LI public int supports_ctrl_x(void); 333*c77c4889SXin LI public ssize_t iread(int fd, unsigned char *buf, size_t len); 334d713e089SXin LI public void intread(void); 335d713e089SXin LI public time_type get_time(void); 336*c77c4889SXin LI public char * errno_message(constant char *filename); 337*c77c4889SXin LI public constant char * signal_message(int sig); 338*c77c4889SXin LI public uintmax umuldiv(uintmax val, uintmax num, uintmax den); 339d713e089SXin LI public int percentage(POSITION num, POSITION den); 340d713e089SXin LI public POSITION percent_pos(POSITION pos, int percent, long fraction); 341d713e089SXin LI public int os9_signal(int type, RETSIGTYPE (*handler)()); 342d713e089SXin LI public void sleep_ms(int ms); 343d713e089SXin LI public void put_line(void); 344d713e089SXin LI public void flush(void); 345d713e089SXin LI public void set_output(int fd); 346*c77c4889SXin LI public int putchr(int ch); 347d713e089SXin LI public void clear_bot_if_needed(void); 348d713e089SXin LI public void putstr(constant char *s); 349*c77c4889SXin LI public int less_printf(constant char *fmt, PARG *parg); 350d713e089SXin LI public void get_return(void); 351*c77c4889SXin LI public void error(constant char *fmt, PARG *parg); 352*c77c4889SXin LI public void ierror(constant char *fmt, PARG *parg); 353*c77c4889SXin LI public void ixerror(constant char *fmt, PARG *parg); 354*c77c4889SXin LI public int query(constant char *fmt, PARG *parg); 355*c77c4889SXin LI public int compile_pattern(constant char *pattern, int search_type, int show_error, PATTERN_TYPE *comp_pattern); 356d713e089SXin LI public void uncompile_pattern(PATTERN_TYPE *pattern); 357d713e089SXin LI public int valid_pattern(char *pattern); 358*c77c4889SXin LI public lbool is_null_pattern(PATTERN_TYPE pattern); 359*c77c4889SXin LI public int match_pattern(PATTERN_TYPE pattern, constant char *tpattern, constant char *line, size_t line_len, constant char **sp, constant char **ep, int nsp, int notbol, int search_type); 360*c77c4889SXin LI public constant char * pattern_lib_name(void); 361d713e089SXin LI public POSITION position(int sindex); 362d713e089SXin LI public void add_forw_pos(POSITION pos); 363d713e089SXin LI public void add_back_pos(POSITION pos); 364d713e089SXin LI public void pos_clear(void); 365d713e089SXin LI public void pos_init(void); 366d713e089SXin LI public int onscreen(POSITION pos); 367d713e089SXin LI public int empty_screen(void); 368d713e089SXin LI public int empty_lines(int s, int e); 369d713e089SXin LI public void get_scrpos(struct scrpos *scrpos, int where); 370d713e089SXin LI public int sindex_from_sline(int sline); 371*c77c4889SXin LI public void pos_rehead(void); 372d713e089SXin LI public void init_prompt(void); 373*c77c4889SXin LI public constant char * pr_expand(constant char *proto); 374*c77c4889SXin LI public constant char * eq_message(void); 375*c77c4889SXin LI public constant char * pr_string(void); 376*c77c4889SXin LI public constant char * wait_message(void); 377d713e089SXin LI public void init_search(void); 378*c77c4889SXin LI public int get_cvt_ops(int search_type); 379*c77c4889SXin LI public void repaint_hilite(lbool on); 380d713e089SXin LI public void clear_attn(void); 381*c77c4889SXin LI public void undo_search(lbool clear); 382d713e089SXin LI public void clr_hlist(struct hilite_tree *anchor); 383d713e089SXin LI public void clr_hilite(void); 384d713e089SXin LI public void clr_filter(void); 385*c77c4889SXin LI public void set_header(POSITION pos); 386*c77c4889SXin LI public lbool is_filtered(POSITION pos); 387d713e089SXin LI public POSITION next_unfiltered(POSITION pos); 388d713e089SXin LI public POSITION prev_unfiltered(POSITION pos); 389d713e089SXin LI public int is_hilited_attr(POSITION pos, POSITION epos, int nohide, int *p_matches); 390d713e089SXin LI public void chg_hilite(void); 391*c77c4889SXin LI public void osc8_search(int search_type, constant char *param, int matches); 392*c77c4889SXin LI public lbool osc8_click(int sindex, int col); 393*c77c4889SXin LI public void osc8_open(void); 394*c77c4889SXin LI public void osc8_jump(void); 395d713e089SXin LI public void chg_caseless(void); 396*c77c4889SXin LI public int search(int search_type, constant char *pattern, int n); 397d713e089SXin LI public void prep_hilite(POSITION spos, POSITION epos, int maxlines); 398*c77c4889SXin LI public void set_filter_pattern(constant char *pattern, int search_type); 399*c77c4889SXin LI public lbool is_filtering(void); 400d713e089SXin LI public RETSIGTYPE winch(int type); 401d713e089SXin LI public void init_signals(int on); 402d713e089SXin LI public void psignals(void); 403d713e089SXin LI public void cleantags(void); 404d713e089SXin LI public int gettagtype(void); 405*c77c4889SXin LI public void findtag(constant char *tag); 406d713e089SXin LI public POSITION tagsearch(void); 407*c77c4889SXin LI public constant char * nexttag(int n); 408*c77c4889SXin LI public constant char * prevtag(int n); 409d713e089SXin LI public int ntags(void); 410d713e089SXin LI public int curr_tag(void); 411d713e089SXin LI public int edit_tagfile(void); 412*c77c4889SXin LI public lbool is_lesstest(void); 413d713e089SXin LI public int open_tty(void); 414d713e089SXin LI public void open_getchr(void); 415d713e089SXin LI public void close_getchr(void); 416d713e089SXin LI public int pclose(FILE *f); 417d713e089SXin LI public int default_wheel_lines(void); 418d713e089SXin LI public int getchr(void); 419d713e089SXin LI public void xbuf_init(struct xbuffer *xbuf); 420*c77c4889SXin LI public void xbuf_init_size(struct xbuffer *xbuf, size_t init_size); 421d713e089SXin LI public void xbuf_deinit(struct xbuffer *xbuf); 422d713e089SXin LI public void xbuf_reset(struct xbuffer *xbuf); 423d713e089SXin LI public void xbuf_add_byte(struct xbuffer *xbuf, unsigned char b); 424*c77c4889SXin LI public void xbuf_add_char(struct xbuffer *xbuf, char c); 425*c77c4889SXin LI public void xbuf_add_data(struct xbuffer *xbuf, constant unsigned char *data, size_t len); 426d713e089SXin LI public int xbuf_pop(struct xbuffer *buf); 427d713e089SXin LI public void xbuf_set(struct xbuffer *dst, struct xbuffer *src); 428*c77c4889SXin LI public constant char * xbuf_char_data(constant struct xbuffer *xbuf); 429*c77c4889SXin LI public lbool help_ckd_add(void *r, uintmax a, uintmax b, int rsize, int rsigned); 430*c77c4889SXin LI public lbool help_ckd_mul(void *r, uintmax a, uintmax b, int rsize, int rsigned); 431