annotate src/proto/ops.pro @ 17789:0f7ae8010787 v8.1.1891

patch 8.1.1891: functions used in one file are global commit https://github.com/vim/vim/commit/5843f5f37b0632e2d706abc9014bfd7d98f7b02e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 20 20:13:45 2019 +0200 patch 8.1.1891: functions used in one file are global Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4840)
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Aug 2019 20:15:07 +0200
parents d4b2a212fa2f
children f57481564f2c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 /* ops.c */
17476
d4b2a212fa2f patch 8.1.1736: viminfo support is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17063
diff changeset
2 yankreg_T *get_y_regs(void);
d4b2a212fa2f patch 8.1.1736: viminfo support is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17063
diff changeset
3 yankreg_T *get_y_current(void);
d4b2a212fa2f patch 8.1.1736: viminfo support is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17063
diff changeset
4 yankreg_T *get_y_previous(void);
d4b2a212fa2f patch 8.1.1736: viminfo support is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17063
diff changeset
5 void set_y_previous(yankreg_T *yreg);
7668
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
6 int get_op_type(int char1, int char2);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
7 int op_on_lines(int op);
14019
dc67449d648c patch 8.1.0027: difficult to make a plugin that feeds a line to a job
Christian Brabandt <cb@256bit.org>
parents: 13963
diff changeset
8 int op_is_change(int op);
7668
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
9 int get_op_char(int optype);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
10 int get_extra_op_char(int optype);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
11 void op_shift(oparg_T *oap, int curs_top, int amount);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
12 void shift_line(int left, int round, int amount, int call_changed_bytes);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
13 void op_reindent(oparg_T *oap, int (*how)(void));
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
14 int get_expr_register(void);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
15 void set_expr_line(char_u *new_line);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
16 char_u *get_expr_line(void);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
17 int valid_yank_reg(int regname, int writing);
13425
bb789ed5113a patch 8.0.1587: inserting from the clipboard doesn't work literally
Christian Brabandt <cb@256bit.org>
parents: 11131
diff changeset
18 int get_yank_register(int regname, int writing);
7668
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
19 int may_get_selection(int regname);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
20 void *get_register(int name, int copy);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
21 void put_register(int name, void *reg);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
22 void free_register(void *reg);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
23 int yank_register_mline(int regname);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
24 int do_record(int c);
17476
d4b2a212fa2f patch 8.1.1736: viminfo support is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17063
diff changeset
25 int get_execreg_lastc(void);
d4b2a212fa2f patch 8.1.1736: viminfo support is spread out
Bram Moolenaar <Bram@vim.org>
parents: 17063
diff changeset
26 void set_execreg_lastc(int lastc);
7668
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
27 int do_execreg(int regname, int colon, int addcr, int silent);
13425
bb789ed5113a patch 8.0.1587: inserting from the clipboard doesn't work literally
Christian Brabandt <cb@256bit.org>
parents: 11131
diff changeset
28 int insert_reg(int regname, int literally_arg);
7668
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
29 int get_spec_reg(int regname, char_u **argp, int *allocated, int errmsg);
13963
1174611ad715 Vim 8.1 release
Christian Brabandt <cb@256bit.org>
parents: 13425
diff changeset
30 int cmdline_paste_reg(int regname, int literally_arg, int remcr);
7668
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
31 void adjust_clip_reg(int *rp);
10827
e366b968bf08 patch 8.0.0303: bracketed paste does not work in Visual mode
Christian Brabandt <cb@256bit.org>
parents: 9834
diff changeset
32 void shift_delete_registers(void);
7668
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
33 int op_delete(oparg_T *oap);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
34 int op_replace(oparg_T *oap, int c);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
35 void op_tilde(oparg_T *oap);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
36 int swapchar(int op_type, pos_T *pos);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
37 void op_insert(oparg_T *oap, long count1);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
38 int op_change(oparg_T *oap);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
39 void init_yank(void);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
40 void clear_registers(void);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
41 int op_yank(oparg_T *oap, int deleting, int mess);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
42 void do_put(int regname, int dir, long count, int flags);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
43 void adjust_cursor_eol(void);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
44 int get_register_name(int num);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
45 void ex_display(exarg_T *eap);
11131
8d9ecf09183a patch 8.0.0453: adding fold marker creates new comment
Christian Brabandt <cb@256bit.org>
parents: 10827
diff changeset
46 char_u *skip_comment(char_u *line, int process, int include_space, int *is_comment);
7668
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
47 int do_join(long count, int insert_space, int save_undo, int use_formatoptions, int setmark);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
48 void op_format(oparg_T *oap, int keep_cursor);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
49 void op_formatexpr(oparg_T *oap);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
50 int fex_format(linenr_T lnum, long count, int c);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
51 void format_lines(linenr_T line_count, int avoid_fex);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
52 int paragraph_start(linenr_T lnum);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
53 void op_addsub(oparg_T *oap, linenr_T Prenum1, int g_cmd);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
54 void x11_export_final_selection(void);
17063
3147c7c2e86b patch 8.1.1531: clipboard type name is inconsistent
Bram Moolenaar <Bram@vim.org>
parents: 14019
diff changeset
55 void clip_free_selection(Clipboard_T *cbd);
3147c7c2e86b patch 8.1.1531: clipboard type name is inconsistent
Bram Moolenaar <Bram@vim.org>
parents: 14019
diff changeset
56 void clip_get_selection(Clipboard_T *cbd);
3147c7c2e86b patch 8.1.1531: clipboard type name is inconsistent
Bram Moolenaar <Bram@vim.org>
parents: 14019
diff changeset
57 void clip_yank_selection(int type, char_u *str, long len, Clipboard_T *cbd);
3147c7c2e86b patch 8.1.1531: clipboard type name is inconsistent
Bram Moolenaar <Bram@vim.org>
parents: 14019
diff changeset
58 int clip_convert_selection(char_u **str, long_u *len, Clipboard_T *cbd);
7668
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
59 void dnd_yank_drag_data(char_u *str, long len);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
60 char_u get_reg_type(int regname, long *reglen);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
61 char_u *get_reg_contents(int regname, int flags);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
62 void write_reg_contents(int name, char_u *str, int maxlen, int must_append);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
63 void write_reg_contents_lst(int name, char_u **strings, int maxlen, int must_append, int yank_type, long block_len);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
64 void write_reg_contents_ex(int name, char_u *str, int maxlen, int must_append, int yank_type, long block_len);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
65 void clear_oparg(oparg_T *oap);
21b0a39d13ed commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents: 7574
diff changeset
66 void cursor_pos_info(dict_T *dict);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 /* vim: set ft=c : */