xref: /openbsd/usr.bin/vi/include/ex_extern.h (revision 5af055cd)
1 /*	$OpenBSD: ex_extern.h,v 1.14 2016/01/20 08:43:27 bentley Exp $	*/
2 
3 int ex(SCR **);
4 int ex_cmd(SCR *);
5 int ex_range(SCR *, EXCMD *, int *);
6 int ex_is_abbrev(char *, size_t);
7 int ex_is_unmap(char *, size_t);
8 void ex_badaddr
9 (SCR *, EXCMDLIST const *, enum badaddr, enum nresult);
10 int ex_abbr(SCR *, EXCMD *);
11 int ex_unabbr(SCR *, EXCMD *);
12 int ex_append(SCR *, EXCMD *);
13 int ex_change(SCR *, EXCMD *);
14 int ex_insert(SCR *, EXCMD *);
15 int ex_next(SCR *, EXCMD *);
16 int ex_prev(SCR *, EXCMD *);
17 int ex_rew(SCR *, EXCMD *);
18 int ex_args(SCR *, EXCMD *);
19 char **ex_buildargv(SCR *, EXCMD *, char *);
20 int argv_init(SCR *, EXCMD *);
21 int argv_exp0(SCR *, EXCMD *, char *, size_t);
22 int argv_exp1(SCR *, EXCMD *, char *, size_t, int);
23 int argv_exp2(SCR *, EXCMD *, char *, size_t);
24 int argv_exp3(SCR *, EXCMD *, char *, size_t);
25 int argv_free(SCR *);
26 int ex_at(SCR *, EXCMD *);
27 int ex_bang(SCR *, EXCMD *);
28 int ex_cd(SCR *, EXCMD *);
29 int ex_delete(SCR *, EXCMD *);
30 int ex_display(SCR *, EXCMD *);
31 int ex_edit(SCR *, EXCMD *);
32 int ex_equal(SCR *, EXCMD *);
33 int ex_file(SCR *, EXCMD *);
34 int ex_filter(SCR *, EXCMD *, MARK *, MARK *, MARK *, char *, enum filtertype);
35 int ex_global(SCR *, EXCMD *);
36 int ex_v(SCR *, EXCMD *);
37 int ex_g_insdel(SCR *, lnop_t, recno_t);
38 int ex_screen_copy(SCR *, SCR *);
39 int ex_screen_end(SCR *);
40 int ex_optchange(SCR *, int, char *, u_long *);
41 int ex_exrc(SCR *);
42 int ex_run_str(SCR *, char *, char *, size_t, int, int);
43 int ex_join(SCR *, EXCMD *);
44 int ex_map(SCR *, EXCMD *);
45 int ex_unmap(SCR *, EXCMD *);
46 int ex_mark(SCR *, EXCMD *);
47 int ex_mkexrc(SCR *, EXCMD *);
48 int ex_copy(SCR *, EXCMD *);
49 int ex_move(SCR *, EXCMD *);
50 int ex_open(SCR *, EXCMD *);
51 int ex_preserve(SCR *, EXCMD *);
52 int ex_recover(SCR *, EXCMD *);
53 int ex_list(SCR *, EXCMD *);
54 int ex_number(SCR *, EXCMD *);
55 int ex_pr(SCR *, EXCMD *);
56 int ex_print(SCR *, EXCMD *, MARK *, MARK *, u_int32_t);
57 int ex_ldisplay(SCR *, const char *, size_t, size_t, u_int);
58 int ex_scprint(SCR *, MARK *, MARK *);
59 int ex_printf(SCR *, const char *, ...);
60 int ex_puts(SCR *, const char *);
61 int ex_fflush(SCR *sp);
62 int ex_put(SCR *, EXCMD *);
63 int ex_quit(SCR *, EXCMD *);
64 int ex_read(SCR *, EXCMD *);
65 int ex_readfp(SCR *, char *, FILE *, MARK *, recno_t *, int);
66 int ex_bg(SCR *, EXCMD *);
67 int ex_fg(SCR *, EXCMD *);
68 int ex_resize(SCR *, EXCMD *);
69 int ex_sdisplay(SCR *);
70 int ex_script(SCR *, EXCMD *);
71 int sscr_exec(SCR *, recno_t);
72 int sscr_check_input(SCR *);
73 int sscr_input(SCR *);
74 int sscr_end(SCR *);
75 int ex_set(SCR *, EXCMD *);
76 int ex_shell(SCR *, EXCMD *);
77 int ex_exec_proc(SCR *, EXCMD *, char *, const char *, int);
78 int proc_wait(SCR *, pid_t, const char *, int, int);
79 int ex_shiftl(SCR *, EXCMD *);
80 int ex_shiftr(SCR *, EXCMD *);
81 int ex_source(SCR *, EXCMD *);
82 int ex_sourcefd(SCR *, EXCMD *, int);
83 int ex_stop(SCR *, EXCMD *);
84 int ex_s(SCR *, EXCMD *);
85 int ex_subagain(SCR *, EXCMD *);
86 int ex_subtilde(SCR *, EXCMD *);
87 int re_compile(SCR *, char *, size_t, char **, size_t *, regex_t *, u_int);
88 void re_error(SCR *, int, regex_t *);
89 int ex_tag_first(SCR *, char *);
90 int ex_tag_push(SCR *, EXCMD *);
91 int ex_tag_next(SCR *, EXCMD *);
92 int ex_tag_prev(SCR *, EXCMD *);
93 int ex_tag_nswitch(SCR *, TAG *, int);
94 int ex_tag_Nswitch(SCR *, TAG *, int);
95 int ex_tag_pop(SCR *, EXCMD *);
96 int ex_tag_top(SCR *, EXCMD *);
97 int ex_tag_display(SCR *);
98 int ex_tag_copy(SCR *, SCR *);
99 int tagq_free(SCR *, TAGQ *);
100 void tag_msg(SCR *, tagmsg_t, char *);
101 int ex_tagf_alloc(SCR *, char *);
102 int ex_tag_free(SCR *);
103 int ex_txt(SCR *, TEXTH *, CHAR_T, u_int32_t);
104 int ex_undo(SCR *, EXCMD *);
105 int ex_help(SCR *, EXCMD *);
106 int ex_usage(SCR *, EXCMD *);
107 int ex_viusage(SCR *, EXCMD *);
108 void ex_cinit(EXCMD *, int, int, recno_t, recno_t, int, ARGS **);
109 void ex_cadd(EXCMD *, ARGS *, char *, size_t);
110 int ex_getline(SCR *, FILE *, size_t *);
111 int ex_ncheck(SCR *, int);
112 int ex_init(SCR *);
113 void ex_emsg(SCR *, char *, exm_t);
114 int ex_version(SCR *, EXCMD *);
115 int ex_visual(SCR *, EXCMD *);
116 int ex_wn(SCR *, EXCMD *);
117 int ex_wq(SCR *, EXCMD *);
118 int ex_write(SCR *, EXCMD *);
119 int ex_xit(SCR *, EXCMD *);
120 int ex_writefp(SCR *, char *, FILE *, MARK *, MARK *, u_long *, u_long *, int);
121 int ex_yank(SCR *, EXCMD *);
122 int ex_z(SCR *, EXCMD *);
123