1*6680e5a5SBaptiste Daroussin #ifdef CL_IN_EX /* cl.h */ 2*6680e5a5SBaptiste Daroussin int cl_waddstr(SCR *, const CHAR_T *, size_t); 3*6680e5a5SBaptiste Daroussin int cl_addstr(SCR *, const char *, size_t); 4*6680e5a5SBaptiste Daroussin int cl_attr(SCR *, scr_attr_t, int); 5*6680e5a5SBaptiste Daroussin int cl_baud(SCR *, u_long *); 6*6680e5a5SBaptiste Daroussin int cl_bell(SCR *); 7*6680e5a5SBaptiste Daroussin int cl_clrtoeol(SCR *); 8*6680e5a5SBaptiste Daroussin int cl_cursor(SCR *, size_t *, size_t *); 9*6680e5a5SBaptiste Daroussin int cl_deleteln(SCR *); 10*6680e5a5SBaptiste Daroussin int cl_discard(SCR *, SCR **); 11*6680e5a5SBaptiste Daroussin int cl_ex_adjust(SCR *, exadj_t); 12*6680e5a5SBaptiste Daroussin int cl_insertln(SCR *); 13*6680e5a5SBaptiste Daroussin int cl_keyval(SCR *, scr_keyval_t, CHAR_T *, int *); 14*6680e5a5SBaptiste Daroussin int cl_move(SCR *, size_t, size_t); 15*6680e5a5SBaptiste Daroussin int cl_refresh(SCR *, int); 16*6680e5a5SBaptiste Daroussin int cl_rename(SCR *, char *, int); 17*6680e5a5SBaptiste Daroussin void cl_setname(GS *, char *); 18*6680e5a5SBaptiste Daroussin int cl_split(SCR *, SCR *); 19*6680e5a5SBaptiste Daroussin int cl_suspend(SCR *, int *); 20*6680e5a5SBaptiste Daroussin void cl_usage(void); 21*6680e5a5SBaptiste Daroussin int sig_init(GS *, SCR *); 22*6680e5a5SBaptiste Daroussin int cl_event(SCR *, EVENT *, u_int32_t, int); 23*6680e5a5SBaptiste Daroussin int cl_screen(SCR *, u_int32_t); 24*6680e5a5SBaptiste Daroussin int cl_quit(GS *); 25*6680e5a5SBaptiste Daroussin int cl_getcap(SCR *, char *, char **); 26*6680e5a5SBaptiste Daroussin int cl_term_init(SCR *); 27*6680e5a5SBaptiste Daroussin int cl_term_end(GS *); 28*6680e5a5SBaptiste Daroussin int cl_fmap(SCR *, seq_t, CHAR_T *, size_t, CHAR_T *, size_t); 29*6680e5a5SBaptiste Daroussin int cl_optchange(SCR *, int, char *, u_long *); 30*6680e5a5SBaptiste Daroussin int cl_omesg(SCR *, CL_PRIVATE *, int); 31*6680e5a5SBaptiste Daroussin int cl_ssize(SCR *, int, size_t *, size_t *, int *); 32*6680e5a5SBaptiste Daroussin int cl_putchar(int); 33*6680e5a5SBaptiste Daroussin #endif 34*6680e5a5SBaptiste Daroussin #ifdef EXP /* ex.h */ 35*6680e5a5SBaptiste Daroussin int ex(SCR **); 36*6680e5a5SBaptiste Daroussin int ex_cmd(SCR *); 37*6680e5a5SBaptiste Daroussin int ex_range(SCR *, EXCMD *, int *); 38*6680e5a5SBaptiste Daroussin int ex_is_abbrev(CHAR_T *, size_t); 39*6680e5a5SBaptiste Daroussin int ex_is_unmap(CHAR_T *, size_t); 40*6680e5a5SBaptiste Daroussin void ex_badaddr 41*6680e5a5SBaptiste Daroussin (SCR *, EXCMDLIST const *, enum badaddr, enum nresult); 42*6680e5a5SBaptiste Daroussin int ex_abbr(SCR *, EXCMD *); 43*6680e5a5SBaptiste Daroussin int ex_unabbr(SCR *, EXCMD *); 44*6680e5a5SBaptiste Daroussin int ex_append(SCR *, EXCMD *); 45*6680e5a5SBaptiste Daroussin int ex_change(SCR *, EXCMD *); 46*6680e5a5SBaptiste Daroussin int ex_insert(SCR *, EXCMD *); 47*6680e5a5SBaptiste Daroussin int ex_next(SCR *, EXCMD *); 48*6680e5a5SBaptiste Daroussin int ex_prev(SCR *, EXCMD *); 49*6680e5a5SBaptiste Daroussin int ex_rew(SCR *, EXCMD *); 50*6680e5a5SBaptiste Daroussin int ex_args(SCR *, EXCMD *); 51*6680e5a5SBaptiste Daroussin char **ex_buildargv(SCR *, EXCMD *, char *); 52*6680e5a5SBaptiste Daroussin int argv_init(SCR *, EXCMD *); 53*6680e5a5SBaptiste Daroussin int argv_exp0(SCR *, EXCMD *, CHAR_T *, size_t); 54*6680e5a5SBaptiste Daroussin int argv_exp1(SCR *, EXCMD *, CHAR_T *, size_t, int); 55*6680e5a5SBaptiste Daroussin int argv_exp2(SCR *, EXCMD *, CHAR_T *, size_t); 56*6680e5a5SBaptiste Daroussin int argv_exp3(SCR *, EXCMD *, CHAR_T *, size_t); 57*6680e5a5SBaptiste Daroussin int argv_flt_ex(SCR *, EXCMD *, CHAR_T *, size_t); 58*6680e5a5SBaptiste Daroussin int argv_free(SCR *); 59*6680e5a5SBaptiste Daroussin int argv_flt_path(SCR *, EXCMD *, CHAR_T *, size_t); 60*6680e5a5SBaptiste Daroussin CHAR_T *argv_esc(SCR *, EXCMD *, CHAR_T *, size_t); 61*6680e5a5SBaptiste Daroussin CHAR_T *argv_uesc(SCR *, EXCMD *, CHAR_T *, size_t); 62*6680e5a5SBaptiste Daroussin int ex_at(SCR *, EXCMD *); 63*6680e5a5SBaptiste Daroussin int ex_bang(SCR *, EXCMD *); 64*6680e5a5SBaptiste Daroussin int ex_cd(SCR *, EXCMD *); 65*6680e5a5SBaptiste Daroussin int ex_cscope(SCR *, EXCMD *); 66*6680e5a5SBaptiste Daroussin int cscope_end(SCR *); 67*6680e5a5SBaptiste Daroussin int cscope_display(SCR *); 68*6680e5a5SBaptiste Daroussin int cscope_search(SCR *, TAGQ *, TAG *); 69*6680e5a5SBaptiste Daroussin int ex_delete(SCR *, EXCMD *); 70*6680e5a5SBaptiste Daroussin int ex_display(SCR *, EXCMD *); 71*6680e5a5SBaptiste Daroussin int ex_edit(SCR *, EXCMD *); 72*6680e5a5SBaptiste Daroussin int ex_equal(SCR *, EXCMD *); 73*6680e5a5SBaptiste Daroussin int ex_file(SCR *, EXCMD *); 74*6680e5a5SBaptiste Daroussin int ex_filter(SCR *, 75*6680e5a5SBaptiste Daroussin EXCMD *, MARK *, MARK *, MARK *, CHAR_T *, enum filtertype); 76*6680e5a5SBaptiste Daroussin int ex_global(SCR *, EXCMD *); 77*6680e5a5SBaptiste Daroussin int ex_v(SCR *, EXCMD *); 78*6680e5a5SBaptiste Daroussin int ex_g_insdel(SCR *, lnop_t, recno_t); 79*6680e5a5SBaptiste Daroussin int ex_screen_copy(SCR *, SCR *); 80*6680e5a5SBaptiste Daroussin int ex_screen_end(SCR *); 81*6680e5a5SBaptiste Daroussin int ex_optchange(SCR *, int, char *, u_long *); 82*6680e5a5SBaptiste Daroussin int ex_exrc(SCR *); 83*6680e5a5SBaptiste Daroussin int ex_run_str(SCR *, char *, CHAR_T *, size_t, int, int); 84*6680e5a5SBaptiste Daroussin int ex_join(SCR *, EXCMD *); 85*6680e5a5SBaptiste Daroussin int ex_map(SCR *, EXCMD *); 86*6680e5a5SBaptiste Daroussin int ex_unmap(SCR *, EXCMD *); 87*6680e5a5SBaptiste Daroussin int ex_mark(SCR *, EXCMD *); 88*6680e5a5SBaptiste Daroussin int ex_mkexrc(SCR *, EXCMD *); 89*6680e5a5SBaptiste Daroussin int ex_copy(SCR *, EXCMD *); 90*6680e5a5SBaptiste Daroussin int ex_move(SCR *, EXCMD *); 91*6680e5a5SBaptiste Daroussin int ex_open(SCR *, EXCMD *); 92*6680e5a5SBaptiste Daroussin int ex_preserve(SCR *, EXCMD *); 93*6680e5a5SBaptiste Daroussin int ex_recover(SCR *, EXCMD *); 94*6680e5a5SBaptiste Daroussin int ex_list(SCR *, EXCMD *); 95*6680e5a5SBaptiste Daroussin int ex_number(SCR *, EXCMD *); 96*6680e5a5SBaptiste Daroussin int ex_pr(SCR *, EXCMD *); 97*6680e5a5SBaptiste Daroussin int ex_print(SCR *, EXCMD *, MARK *, MARK *, u_int32_t); 98*6680e5a5SBaptiste Daroussin int ex_ldisplay(SCR *, const CHAR_T *, size_t, size_t, u_int); 99*6680e5a5SBaptiste Daroussin int ex_scprint(SCR *, MARK *, MARK *); 100*6680e5a5SBaptiste Daroussin int ex_printf(SCR *, const char *, ...); 101*6680e5a5SBaptiste Daroussin int ex_puts(SCR *, const char *); 102*6680e5a5SBaptiste Daroussin int ex_fflush(SCR *sp); 103*6680e5a5SBaptiste Daroussin int ex_put(SCR *, EXCMD *); 104*6680e5a5SBaptiste Daroussin int ex_quit(SCR *, EXCMD *); 105*6680e5a5SBaptiste Daroussin int ex_read(SCR *, EXCMD *); 106*6680e5a5SBaptiste Daroussin int ex_readfp(SCR *, char *, FILE *, MARK *, recno_t *, int); 107*6680e5a5SBaptiste Daroussin int ex_bg(SCR *, EXCMD *); 108*6680e5a5SBaptiste Daroussin int ex_fg(SCR *, EXCMD *); 109*6680e5a5SBaptiste Daroussin int ex_resize(SCR *, EXCMD *); 110*6680e5a5SBaptiste Daroussin int ex_sdisplay(SCR *); 111*6680e5a5SBaptiste Daroussin int ex_script(SCR *, EXCMD *); 112*6680e5a5SBaptiste Daroussin int sscr_exec(SCR *, recno_t); 113*6680e5a5SBaptiste Daroussin int sscr_input(SCR *); 114*6680e5a5SBaptiste Daroussin int sscr_end(SCR *); 115*6680e5a5SBaptiste Daroussin int ex_set(SCR *, EXCMD *); 116*6680e5a5SBaptiste Daroussin int ex_shell(SCR *, EXCMD *); 117*6680e5a5SBaptiste Daroussin int ex_exec_proc(SCR *, EXCMD *, char *, const char *, int); 118*6680e5a5SBaptiste Daroussin int proc_wait(SCR *, long, const char *, int, int); 119*6680e5a5SBaptiste Daroussin int ex_shiftl(SCR *, EXCMD *); 120*6680e5a5SBaptiste Daroussin int ex_shiftr(SCR *, EXCMD *); 121*6680e5a5SBaptiste Daroussin int ex_retab(SCR *, EXCMD *); 122*6680e5a5SBaptiste Daroussin int ex_source(SCR *, EXCMD *); 123*6680e5a5SBaptiste Daroussin int ex_stop(SCR *, EXCMD *); 124*6680e5a5SBaptiste Daroussin int ex_s(SCR *, EXCMD *); 125*6680e5a5SBaptiste Daroussin int ex_subagain(SCR *, EXCMD *); 126*6680e5a5SBaptiste Daroussin int ex_subtilde(SCR *, EXCMD *); 127*6680e5a5SBaptiste Daroussin int re_compile(SCR *, 128*6680e5a5SBaptiste Daroussin CHAR_T *, size_t, CHAR_T **, size_t *, regex_t *, u_int); 129*6680e5a5SBaptiste Daroussin void re_error(SCR *, int, regex_t *); 130*6680e5a5SBaptiste Daroussin int ex_tag_first(SCR *, CHAR_T *); 131*6680e5a5SBaptiste Daroussin int ex_tag_push(SCR *, EXCMD *); 132*6680e5a5SBaptiste Daroussin int ex_tag_next(SCR *, EXCMD *); 133*6680e5a5SBaptiste Daroussin int ex_tag_prev(SCR *, EXCMD *); 134*6680e5a5SBaptiste Daroussin int ex_tag_nswitch(SCR *, TAG *, int); 135*6680e5a5SBaptiste Daroussin int ex_tag_Nswitch(SCR *, TAG *, int); 136*6680e5a5SBaptiste Daroussin int ex_tag_pop(SCR *, EXCMD *); 137*6680e5a5SBaptiste Daroussin int ex_tag_top(SCR *, EXCMD *); 138*6680e5a5SBaptiste Daroussin int ex_tag_display(SCR *); 139*6680e5a5SBaptiste Daroussin int ex_tag_copy(SCR *, SCR *); 140*6680e5a5SBaptiste Daroussin int tagq_free(SCR *, TAGQ *); 141*6680e5a5SBaptiste Daroussin int tagq_push(SCR*, TAGQ*, int, int ); 142*6680e5a5SBaptiste Daroussin void tag_msg(SCR *, tagmsg_t, char *); 143*6680e5a5SBaptiste Daroussin int ex_tagf_alloc(SCR *, char *); 144*6680e5a5SBaptiste Daroussin int ex_tag_free(SCR *); 145*6680e5a5SBaptiste Daroussin int ex_txt(SCR *, TEXTH *, ARG_CHAR_T, u_int32_t); 146*6680e5a5SBaptiste Daroussin int ex_undo(SCR *, EXCMD *); 147*6680e5a5SBaptiste Daroussin int ex_help(SCR *, EXCMD *); 148*6680e5a5SBaptiste Daroussin int ex_usage(SCR *, EXCMD *); 149*6680e5a5SBaptiste Daroussin int ex_viusage(SCR *, EXCMD *); 150*6680e5a5SBaptiste Daroussin void ex_cinit(SCR *, EXCMD *, int, int, recno_t, recno_t, int); 151*6680e5a5SBaptiste Daroussin int ex_getline(SCR *, FILE *, size_t *); 152*6680e5a5SBaptiste Daroussin int ex_ncheck(SCR *, int); 153*6680e5a5SBaptiste Daroussin int ex_init(SCR *); 154*6680e5a5SBaptiste Daroussin void ex_wemsg(SCR *, CHAR_T *, exm_t); 155*6680e5a5SBaptiste Daroussin void ex_emsg(SCR *, char *, exm_t); 156*6680e5a5SBaptiste Daroussin int ex_version(SCR *, EXCMD *); 157*6680e5a5SBaptiste Daroussin int ex_visual(SCR *, EXCMD *); 158*6680e5a5SBaptiste Daroussin int ex_wn(SCR *, EXCMD *); 159*6680e5a5SBaptiste Daroussin int ex_wq(SCR *, EXCMD *); 160*6680e5a5SBaptiste Daroussin int ex_write(SCR *, EXCMD *); 161*6680e5a5SBaptiste Daroussin int ex_xit(SCR *, EXCMD *); 162*6680e5a5SBaptiste Daroussin int ex_writefp(SCR *, 163*6680e5a5SBaptiste Daroussin char *, FILE *, MARK *, MARK *, u_long *, u_long *, int); 164*6680e5a5SBaptiste Daroussin int ex_yank(SCR *, EXCMD *); 165*6680e5a5SBaptiste Daroussin int ex_z(SCR *, EXCMD *); 166*6680e5a5SBaptiste Daroussin #endif 167*6680e5a5SBaptiste Daroussin #ifdef V_ABS /* vi.h */ 168*6680e5a5SBaptiste Daroussin int cs_init(SCR *, VCS *); 169*6680e5a5SBaptiste Daroussin int cs_next(SCR *, VCS *); 170*6680e5a5SBaptiste Daroussin int cs_fspace(SCR *, VCS *); 171*6680e5a5SBaptiste Daroussin int cs_fblank(SCR *, VCS *); 172*6680e5a5SBaptiste Daroussin int cs_prev(SCR *, VCS *); 173*6680e5a5SBaptiste Daroussin int cs_bblank(SCR *, VCS *); 174*6680e5a5SBaptiste Daroussin int v_at(SCR *, VICMD *); 175*6680e5a5SBaptiste Daroussin int v_chrepeat(SCR *, VICMD *); 176*6680e5a5SBaptiste Daroussin int v_chrrepeat(SCR *, VICMD *); 177*6680e5a5SBaptiste Daroussin int v_cht(SCR *, VICMD *); 178*6680e5a5SBaptiste Daroussin int v_chf(SCR *, VICMD *); 179*6680e5a5SBaptiste Daroussin int v_chT(SCR *, VICMD *); 180*6680e5a5SBaptiste Daroussin int v_chF(SCR *, VICMD *); 181*6680e5a5SBaptiste Daroussin int v_delete(SCR *, VICMD *); 182*6680e5a5SBaptiste Daroussin int v_again(SCR *, VICMD *); 183*6680e5a5SBaptiste Daroussin int v_exmode(SCR *, VICMD *); 184*6680e5a5SBaptiste Daroussin int v_join(SCR *, VICMD *); 185*6680e5a5SBaptiste Daroussin int v_shiftl(SCR *, VICMD *); 186*6680e5a5SBaptiste Daroussin int v_shiftr(SCR *, VICMD *); 187*6680e5a5SBaptiste Daroussin int v_suspend(SCR *, VICMD *); 188*6680e5a5SBaptiste Daroussin int v_switch(SCR *, VICMD *); 189*6680e5a5SBaptiste Daroussin int v_tagpush(SCR *, VICMD *); 190*6680e5a5SBaptiste Daroussin int v_tagpop(SCR *, VICMD *); 191*6680e5a5SBaptiste Daroussin int v_filter(SCR *, VICMD *); 192*6680e5a5SBaptiste Daroussin int v_ex(SCR *, VICMD *); 193*6680e5a5SBaptiste Daroussin int v_ecl_exec(SCR *); 194*6680e5a5SBaptiste Daroussin int v_increment(SCR *, VICMD *); 195*6680e5a5SBaptiste Daroussin int v_screen_copy(SCR *, SCR *); 196*6680e5a5SBaptiste Daroussin int v_screen_end(SCR *); 197*6680e5a5SBaptiste Daroussin int v_optchange(SCR *, int, char *, u_long *); 198*6680e5a5SBaptiste Daroussin int v_iA(SCR *, VICMD *); 199*6680e5a5SBaptiste Daroussin int v_ia(SCR *, VICMD *); 200*6680e5a5SBaptiste Daroussin int v_iI(SCR *, VICMD *); 201*6680e5a5SBaptiste Daroussin int v_ii(SCR *, VICMD *); 202*6680e5a5SBaptiste Daroussin int v_iO(SCR *, VICMD *); 203*6680e5a5SBaptiste Daroussin int v_io(SCR *, VICMD *); 204*6680e5a5SBaptiste Daroussin int v_change(SCR *, VICMD *); 205*6680e5a5SBaptiste Daroussin int v_Replace(SCR *, VICMD *); 206*6680e5a5SBaptiste Daroussin int v_subst(SCR *, VICMD *); 207*6680e5a5SBaptiste Daroussin int v_left(SCR *, VICMD *); 208*6680e5a5SBaptiste Daroussin int v_cfirst(SCR *, VICMD *); 209*6680e5a5SBaptiste Daroussin int v_first(SCR *, VICMD *); 210*6680e5a5SBaptiste Daroussin int v_ncol(SCR *, VICMD *); 211*6680e5a5SBaptiste Daroussin int v_zero(SCR *, VICMD *); 212*6680e5a5SBaptiste Daroussin int v_mark(SCR *, VICMD *); 213*6680e5a5SBaptiste Daroussin int v_bmark(SCR *, VICMD *); 214*6680e5a5SBaptiste Daroussin int v_fmark(SCR *, VICMD *); 215*6680e5a5SBaptiste Daroussin int v_emark(SCR *, VICMD *); 216*6680e5a5SBaptiste Daroussin int v_match(SCR *, VICMD *); 217*6680e5a5SBaptiste Daroussin int v_buildmcs(SCR *, char *); 218*6680e5a5SBaptiste Daroussin int v_paragraphf(SCR *, VICMD *); 219*6680e5a5SBaptiste Daroussin int v_paragraphb(SCR *, VICMD *); 220*6680e5a5SBaptiste Daroussin int v_buildps(SCR *, char *, char *); 221*6680e5a5SBaptiste Daroussin int v_Put(SCR *, VICMD *); 222*6680e5a5SBaptiste Daroussin int v_put(SCR *, VICMD *); 223*6680e5a5SBaptiste Daroussin int v_redraw(SCR *, VICMD *); 224*6680e5a5SBaptiste Daroussin int v_replace(SCR *, VICMD *); 225*6680e5a5SBaptiste Daroussin int v_right(SCR *, VICMD *); 226*6680e5a5SBaptiste Daroussin int v_dollar(SCR *, VICMD *); 227*6680e5a5SBaptiste Daroussin int v_screen(SCR *, VICMD *); 228*6680e5a5SBaptiste Daroussin int v_lgoto(SCR *, VICMD *); 229*6680e5a5SBaptiste Daroussin int v_home(SCR *, VICMD *); 230*6680e5a5SBaptiste Daroussin int v_middle(SCR *, VICMD *); 231*6680e5a5SBaptiste Daroussin int v_bottom(SCR *, VICMD *); 232*6680e5a5SBaptiste Daroussin int v_up(SCR *, VICMD *); 233*6680e5a5SBaptiste Daroussin int v_cr(SCR *, VICMD *); 234*6680e5a5SBaptiste Daroussin int v_down(SCR *, VICMD *); 235*6680e5a5SBaptiste Daroussin int v_hpageup(SCR *, VICMD *); 236*6680e5a5SBaptiste Daroussin int v_hpagedown(SCR *, VICMD *); 237*6680e5a5SBaptiste Daroussin int v_pagedown(SCR *, VICMD *); 238*6680e5a5SBaptiste Daroussin int v_pageup(SCR *, VICMD *); 239*6680e5a5SBaptiste Daroussin int v_lineup(SCR *, VICMD *); 240*6680e5a5SBaptiste Daroussin int v_linedown(SCR *, VICMD *); 241*6680e5a5SBaptiste Daroussin int v_searchb(SCR *, VICMD *); 242*6680e5a5SBaptiste Daroussin int v_searchf(SCR *, VICMD *); 243*6680e5a5SBaptiste Daroussin int v_searchN(SCR *, VICMD *); 244*6680e5a5SBaptiste Daroussin int v_searchn(SCR *, VICMD *); 245*6680e5a5SBaptiste Daroussin int v_searchw(SCR *, VICMD *); 246*6680e5a5SBaptiste Daroussin int v_correct(SCR *, VICMD *, int); 247*6680e5a5SBaptiste Daroussin int v_sectionf(SCR *, VICMD *); 248*6680e5a5SBaptiste Daroussin int v_sectionb(SCR *, VICMD *); 249*6680e5a5SBaptiste Daroussin int v_sentencef(SCR *, VICMD *); 250*6680e5a5SBaptiste Daroussin int v_sentenceb(SCR *, VICMD *); 251*6680e5a5SBaptiste Daroussin int v_status(SCR *, VICMD *); 252*6680e5a5SBaptiste Daroussin int v_tcmd(SCR *, VICMD *, ARG_CHAR_T, u_int); 253*6680e5a5SBaptiste Daroussin int v_txt(SCR *, VICMD *, MARK *, 254*6680e5a5SBaptiste Daroussin const CHAR_T *, size_t, ARG_CHAR_T, recno_t, u_long, u_int32_t); 255*6680e5a5SBaptiste Daroussin int v_txt_auto(SCR *, recno_t, TEXT *, size_t, TEXT *); 256*6680e5a5SBaptiste Daroussin int v_ulcase(SCR *, VICMD *); 257*6680e5a5SBaptiste Daroussin int v_mulcase(SCR *, VICMD *); 258*6680e5a5SBaptiste Daroussin int v_Undo(SCR *, VICMD *); 259*6680e5a5SBaptiste Daroussin int v_undo(SCR *, VICMD *); 260*6680e5a5SBaptiste Daroussin void v_eof(SCR *, MARK *); 261*6680e5a5SBaptiste Daroussin void v_eol(SCR *, MARK *); 262*6680e5a5SBaptiste Daroussin void v_nomove(SCR *); 263*6680e5a5SBaptiste Daroussin void v_sof(SCR *, MARK *); 264*6680e5a5SBaptiste Daroussin void v_sol(SCR *); 265*6680e5a5SBaptiste Daroussin int v_isempty(CHAR_T *, size_t); 266*6680e5a5SBaptiste Daroussin void v_emsg(SCR *, char *, vim_t); 267*6680e5a5SBaptiste Daroussin int v_wordW(SCR *, VICMD *); 268*6680e5a5SBaptiste Daroussin int v_wordw(SCR *, VICMD *); 269*6680e5a5SBaptiste Daroussin int v_wordE(SCR *, VICMD *); 270*6680e5a5SBaptiste Daroussin int v_worde(SCR *, VICMD *); 271*6680e5a5SBaptiste Daroussin int v_wordB(SCR *, VICMD *); 272*6680e5a5SBaptiste Daroussin int v_wordb(SCR *, VICMD *); 273*6680e5a5SBaptiste Daroussin int v_xchar(SCR *, VICMD *); 274*6680e5a5SBaptiste Daroussin int v_Xchar(SCR *, VICMD *); 275*6680e5a5SBaptiste Daroussin int v_yank(SCR *, VICMD *); 276*6680e5a5SBaptiste Daroussin int v_z(SCR *, VICMD *); 277*6680e5a5SBaptiste Daroussin int vs_crel(SCR *, long); 278*6680e5a5SBaptiste Daroussin int v_zexit(SCR *, VICMD *); 279*6680e5a5SBaptiste Daroussin int vi(SCR **); 280*6680e5a5SBaptiste Daroussin int v_curword(SCR *); 281*6680e5a5SBaptiste Daroussin int vs_line(SCR *, SMAP *, size_t *, size_t *); 282*6680e5a5SBaptiste Daroussin int vs_number(SCR *); 283*6680e5a5SBaptiste Daroussin void vs_busy(SCR *, const char *, busy_t); 284*6680e5a5SBaptiste Daroussin void vs_home(SCR *); 285*6680e5a5SBaptiste Daroussin void vs_update(SCR *, const char *, const CHAR_T *); 286*6680e5a5SBaptiste Daroussin void vs_msg(SCR *, mtype_t, char *, size_t); 287*6680e5a5SBaptiste Daroussin int vs_ex_resolve(SCR *, int *); 288*6680e5a5SBaptiste Daroussin int vs_resolve(SCR *, SCR *, int); 289*6680e5a5SBaptiste Daroussin int vs_repaint(SCR *, EVENT *); 290*6680e5a5SBaptiste Daroussin int vs_refresh(SCR *, int); 291*6680e5a5SBaptiste Daroussin int vs_column(SCR *, size_t *); 292*6680e5a5SBaptiste Daroussin size_t vs_screens(SCR *, recno_t, size_t *); 293*6680e5a5SBaptiste Daroussin size_t vs_columns(SCR *, CHAR_T *, recno_t, size_t *, size_t *); 294*6680e5a5SBaptiste Daroussin size_t vs_rcm(SCR *, recno_t, int); 295*6680e5a5SBaptiste Daroussin size_t vs_colpos(SCR *, recno_t, size_t); 296*6680e5a5SBaptiste Daroussin int vs_change(SCR *, recno_t, lnop_t); 297*6680e5a5SBaptiste Daroussin int vs_sm_fill(SCR *, recno_t, pos_t); 298*6680e5a5SBaptiste Daroussin int vs_sm_scroll(SCR *, MARK *, recno_t, scroll_t); 299*6680e5a5SBaptiste Daroussin int vs_sm_1up(SCR *); 300*6680e5a5SBaptiste Daroussin int vs_sm_1down(SCR *); 301*6680e5a5SBaptiste Daroussin int vs_sm_next(SCR *, SMAP *, SMAP *); 302*6680e5a5SBaptiste Daroussin int vs_sm_prev(SCR *, SMAP *, SMAP *); 303*6680e5a5SBaptiste Daroussin int vs_sm_cursor(SCR *, SMAP **); 304*6680e5a5SBaptiste Daroussin int vs_sm_position(SCR *, MARK *, u_long, pos_t); 305*6680e5a5SBaptiste Daroussin recno_t vs_sm_nlines(SCR *, SMAP *, recno_t, size_t); 306*6680e5a5SBaptiste Daroussin int vs_split(SCR *, SCR *, int); 307*6680e5a5SBaptiste Daroussin int vs_vsplit(SCR *, SCR *); 308*6680e5a5SBaptiste Daroussin int vs_discard(SCR *, SCR **); 309*6680e5a5SBaptiste Daroussin int vs_fg(SCR *, SCR **, CHAR_T *, int); 310*6680e5a5SBaptiste Daroussin int vs_bg(SCR *); 311*6680e5a5SBaptiste Daroussin int vs_swap(SCR *, SCR **, char *); 312*6680e5a5SBaptiste Daroussin int vs_resize(SCR *, long, adj_t); 313*6680e5a5SBaptiste Daroussin #endif /* common.h */ 314*6680e5a5SBaptiste Daroussin char * codeset(void); 315*6680e5a5SBaptiste Daroussin void conv_init(SCR *, SCR *); 316*6680e5a5SBaptiste Daroussin int conv_enc(SCR *, int, char *); 317*6680e5a5SBaptiste Daroussin void conv_end(SCR *); 318*6680e5a5SBaptiste Daroussin int cut(SCR *, CHAR_T *, MARK *, MARK *, int); 319*6680e5a5SBaptiste Daroussin int cut_line(SCR *, recno_t, size_t, size_t, CB *); 320*6680e5a5SBaptiste Daroussin void cut_close(GS *); 321*6680e5a5SBaptiste Daroussin TEXT *text_init(SCR *, const CHAR_T *, size_t, size_t); 322*6680e5a5SBaptiste Daroussin void text_lfree(TEXTH *); 323*6680e5a5SBaptiste Daroussin void text_free(TEXT *); 324*6680e5a5SBaptiste Daroussin int del(SCR *, MARK *, MARK *, int); 325*6680e5a5SBaptiste Daroussin int looks_utf8(const char *, size_t); 326*6680e5a5SBaptiste Daroussin int looks_utf16(const char *, size_t); 327*6680e5a5SBaptiste Daroussin int decode_utf8(const char *); 328*6680e5a5SBaptiste Daroussin int decode_utf16(const char *, int); 329*6680e5a5SBaptiste Daroussin FREF *file_add(SCR *, char *); 330*6680e5a5SBaptiste Daroussin int file_init(SCR *, FREF *, char *, int); 331*6680e5a5SBaptiste Daroussin int file_end(SCR *, EXF *, int); 332*6680e5a5SBaptiste Daroussin int file_write(SCR *, MARK *, MARK *, char *, int); 333*6680e5a5SBaptiste Daroussin int file_m1(SCR *, int, int); 334*6680e5a5SBaptiste Daroussin int file_m2(SCR *, int); 335*6680e5a5SBaptiste Daroussin int file_m3(SCR *, int); 336*6680e5a5SBaptiste Daroussin int file_aw(SCR *, int); 337*6680e5a5SBaptiste Daroussin void set_alt_name(SCR *, char *); 338*6680e5a5SBaptiste Daroussin lockr_t file_lock(SCR *, char *, int, int); 339*6680e5a5SBaptiste Daroussin int v_key_init(SCR *); 340*6680e5a5SBaptiste Daroussin void v_key_ilookup(SCR *); 341*6680e5a5SBaptiste Daroussin size_t v_key_len(SCR *, ARG_CHAR_T); 342*6680e5a5SBaptiste Daroussin char *v_key_name(SCR *, ARG_CHAR_T); 343*6680e5a5SBaptiste Daroussin e_key_t v_key_val(SCR *, ARG_CHAR_T); 344*6680e5a5SBaptiste Daroussin int v_event_push(SCR *, EVENT *, CHAR_T *, size_t, u_int); 345*6680e5a5SBaptiste Daroussin int v_event_get(SCR *, EVENT *, int, u_int32_t); 346*6680e5a5SBaptiste Daroussin void v_event_err(SCR *, EVENT *); 347*6680e5a5SBaptiste Daroussin int v_event_flush(SCR *, u_int); 348*6680e5a5SBaptiste Daroussin int db_eget(SCR *, recno_t, CHAR_T **, size_t *, int *); 349*6680e5a5SBaptiste Daroussin int db_get(SCR *, recno_t, u_int32_t, CHAR_T **, size_t *); 350*6680e5a5SBaptiste Daroussin int db_delete(SCR *, recno_t); 351*6680e5a5SBaptiste Daroussin int db_append(SCR *, int, recno_t, CHAR_T *, size_t); 352*6680e5a5SBaptiste Daroussin int db_insert(SCR *, recno_t, CHAR_T *, size_t); 353*6680e5a5SBaptiste Daroussin int db_set(SCR *, recno_t, CHAR_T *, size_t); 354*6680e5a5SBaptiste Daroussin int db_exist(SCR *, recno_t); 355*6680e5a5SBaptiste Daroussin int db_last(SCR *, recno_t *); 356*6680e5a5SBaptiste Daroussin int db_rget(SCR *, recno_t, char **, size_t *); 357*6680e5a5SBaptiste Daroussin int db_rset(SCR *, recno_t, char *, size_t); 358*6680e5a5SBaptiste Daroussin void db_err(SCR *, recno_t); 359*6680e5a5SBaptiste Daroussin int log_init(SCR *, EXF *); 360*6680e5a5SBaptiste Daroussin int log_end(SCR *, EXF *); 361*6680e5a5SBaptiste Daroussin int log_cursor(SCR *); 362*6680e5a5SBaptiste Daroussin int log_line(SCR *, recno_t, u_int); 363*6680e5a5SBaptiste Daroussin int log_mark(SCR *, LMARK *); 364*6680e5a5SBaptiste Daroussin int log_backward(SCR *, MARK *); 365*6680e5a5SBaptiste Daroussin int log_setline(SCR *); 366*6680e5a5SBaptiste Daroussin int log_forward(SCR *, MARK *); 367*6680e5a5SBaptiste Daroussin int editor(GS *, int, char *[]); 368*6680e5a5SBaptiste Daroussin void v_end(GS *); 369*6680e5a5SBaptiste Daroussin int mark_init(SCR *, EXF *); 370*6680e5a5SBaptiste Daroussin int mark_end(SCR *, EXF *); 371*6680e5a5SBaptiste Daroussin int mark_get(SCR *, ARG_CHAR_T, MARK *, mtype_t); 372*6680e5a5SBaptiste Daroussin int mark_set(SCR *, ARG_CHAR_T, MARK *, int); 373*6680e5a5SBaptiste Daroussin int mark_insdel(SCR *, lnop_t, recno_t); 374*6680e5a5SBaptiste Daroussin void msgq(SCR *, mtype_t, const char *, ...); 375*6680e5a5SBaptiste Daroussin void msgq_wstr(SCR *, mtype_t, const CHAR_T *, const char *); 376*6680e5a5SBaptiste Daroussin void msgq_str(SCR *, mtype_t, const char *, const char *); 377*6680e5a5SBaptiste Daroussin void mod_rpt(SCR *); 378*6680e5a5SBaptiste Daroussin void msgq_status(SCR *, recno_t, u_int); 379*6680e5a5SBaptiste Daroussin int msg_open(SCR *, char *); 380*6680e5a5SBaptiste Daroussin void msg_close(GS *); 381*6680e5a5SBaptiste Daroussin const char *msg_cmsg(SCR *, cmsg_t, size_t *); 382*6680e5a5SBaptiste Daroussin const char *msg_cat(SCR *, const char *, size_t *); 383*6680e5a5SBaptiste Daroussin char *msg_print(SCR *, const char *, int *); 384*6680e5a5SBaptiste Daroussin int opts_init(SCR *, int *); 385*6680e5a5SBaptiste Daroussin int opts_set(SCR *, ARGS *[], char *); 386*6680e5a5SBaptiste Daroussin int o_set(SCR *, int, u_int, char *, u_long); 387*6680e5a5SBaptiste Daroussin int opts_empty(SCR *, int, int); 388*6680e5a5SBaptiste Daroussin void opts_dump(SCR *, enum optdisp); 389*6680e5a5SBaptiste Daroussin int opts_save(SCR *, FILE *); 390*6680e5a5SBaptiste Daroussin OPTLIST const *opts_search(CHAR_T *); 391*6680e5a5SBaptiste Daroussin void opts_nomatch(SCR *, CHAR_T *); 392*6680e5a5SBaptiste Daroussin int opts_copy(SCR *, SCR *); 393*6680e5a5SBaptiste Daroussin void opts_free(SCR *); 394*6680e5a5SBaptiste Daroussin int f_altwerase(SCR *, OPTION *, char *, u_long *); 395*6680e5a5SBaptiste Daroussin int f_columns(SCR *, OPTION *, char *, u_long *); 396*6680e5a5SBaptiste Daroussin int f_lines(SCR *, OPTION *, char *, u_long *); 397*6680e5a5SBaptiste Daroussin int f_lisp(SCR *, OPTION *, char *, u_long *); 398*6680e5a5SBaptiste Daroussin int f_msgcat(SCR *, OPTION *, char *, u_long *); 399*6680e5a5SBaptiste Daroussin int f_print(SCR *, OPTION *, char *, u_long *); 400*6680e5a5SBaptiste Daroussin int f_readonly(SCR *, OPTION *, char *, u_long *); 401*6680e5a5SBaptiste Daroussin int f_recompile(SCR *, OPTION *, char *, u_long *); 402*6680e5a5SBaptiste Daroussin int f_reformat(SCR *, OPTION *, char *, u_long *); 403*6680e5a5SBaptiste Daroussin int f_ttywerase(SCR *, OPTION *, char *, u_long *); 404*6680e5a5SBaptiste Daroussin int f_w300(SCR *, OPTION *, char *, u_long *); 405*6680e5a5SBaptiste Daroussin int f_w1200(SCR *, OPTION *, char *, u_long *); 406*6680e5a5SBaptiste Daroussin int f_w9600(SCR *, OPTION *, char *, u_long *); 407*6680e5a5SBaptiste Daroussin int f_window(SCR *, OPTION *, char *, u_long *); 408*6680e5a5SBaptiste Daroussin int f_encoding(SCR *, OPTION *, char *, u_long *); 409*6680e5a5SBaptiste Daroussin int put(SCR *, CB *, CHAR_T *, MARK *, MARK *, int); 410*6680e5a5SBaptiste Daroussin int rcv_tmp(SCR *, EXF *, char *); 411*6680e5a5SBaptiste Daroussin int rcv_init(SCR *); 412*6680e5a5SBaptiste Daroussin int rcv_sync(SCR *, u_int); 413*6680e5a5SBaptiste Daroussin int rcv_list(SCR *); 414*6680e5a5SBaptiste Daroussin int rcv_read(SCR *, FREF *); 415*6680e5a5SBaptiste Daroussin int screen_init(GS *, SCR *, SCR **); 416*6680e5a5SBaptiste Daroussin int screen_end(SCR *); 417*6680e5a5SBaptiste Daroussin SCR *screen_next(SCR *); 418*6680e5a5SBaptiste Daroussin int f_search(SCR *, 419*6680e5a5SBaptiste Daroussin MARK *, MARK *, CHAR_T *, size_t, CHAR_T **, u_int); 420*6680e5a5SBaptiste Daroussin int b_search(SCR *, 421*6680e5a5SBaptiste Daroussin MARK *, MARK *, CHAR_T *, size_t, CHAR_T **, u_int); 422*6680e5a5SBaptiste Daroussin void search_busy(SCR *, busy_t); 423*6680e5a5SBaptiste Daroussin int seq_set(SCR *, CHAR_T *, 424*6680e5a5SBaptiste Daroussin size_t, CHAR_T *, size_t, CHAR_T *, size_t, seq_t, int); 425*6680e5a5SBaptiste Daroussin int seq_delete(SCR *, CHAR_T *, size_t, seq_t); 426*6680e5a5SBaptiste Daroussin int seq_free(SEQ *); 427*6680e5a5SBaptiste Daroussin SEQ *seq_find 428*6680e5a5SBaptiste Daroussin (SCR *, SEQ **, EVENT *, CHAR_T *, size_t, seq_t, int *); 429*6680e5a5SBaptiste Daroussin void seq_close(GS *); 430*6680e5a5SBaptiste Daroussin int seq_dump(SCR *, seq_t, int); 431*6680e5a5SBaptiste Daroussin int seq_save(SCR *, FILE *, char *, seq_t); 432*6680e5a5SBaptiste Daroussin int e_memcmp(CHAR_T *, EVENT *, size_t); 433*6680e5a5SBaptiste Daroussin void *binc(SCR *, void *, size_t *, size_t); 434*6680e5a5SBaptiste Daroussin int nonblank(SCR *, recno_t, size_t *); 435*6680e5a5SBaptiste Daroussin char *join(char *, char *); 436*6680e5a5SBaptiste Daroussin char *expanduser(char *); 437*6680e5a5SBaptiste Daroussin char *quote(char *); 438*6680e5a5SBaptiste Daroussin char *v_strdup(SCR *, const char *, size_t); 439*6680e5a5SBaptiste Daroussin CHAR_T *v_wstrdup(SCR *, const CHAR_T *, size_t); 440*6680e5a5SBaptiste Daroussin enum nresult nget_uslong(u_long *, const CHAR_T *, CHAR_T **, int); 441*6680e5a5SBaptiste Daroussin enum nresult nget_slong(long *, const CHAR_T *, CHAR_T **, int); 442*6680e5a5SBaptiste Daroussin void timepoint_steady(struct timespec *); 443*6680e5a5SBaptiste Daroussin void timepoint_system(struct timespec *); 444*6680e5a5SBaptiste Daroussin void TRACE(SCR *, const char *, ...); 445