Skip to content

Commit 6bfafd9

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents dfe72b8 + 6dff58f commit 6bfafd9

64 files changed

Lines changed: 261 additions & 965 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/arabic.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,6 @@
1717

1818
#if defined(FEAT_ARABIC) || defined(PROTO)
1919

20-
static int A_is_a(int cur_c);
21-
static int A_is_s(int cur_c);
22-
static int A_is_f(int cur_c);
23-
static int chg_c_a2s(int cur_c);
24-
static int chg_c_a2i(int cur_c);
25-
static int chg_c_a2m(int cur_c);
26-
static int chg_c_a2f(int cur_c);
27-
#if 0
28-
static int chg_c_i2m(int cur_c);
29-
#endif
30-
static int chg_c_f2m(int cur_c);
31-
static int chg_c_laa2i(int hid_c);
32-
static int chg_c_laa2f(int hid_c);
33-
static int half_shape(int c);
3420
static int A_firstc_laa(int c1, int c);
3521
static int A_is_harakat(int c);
3622
static int A_is_iso(int c);

src/blowfish.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ typedef struct {
5656
} bf_state_T;
5757

5858

59-
static void bf_e_block(bf_state_T *state, UINT32_T *p_xl, UINT32_T *p_xr);
60-
static void bf_e_cblock(bf_state_T *state, char_u *block);
61-
static int bf_check_tables(UINT32_T pax[18], UINT32_T sbx[4][256], UINT32_T val);
62-
static int bf_self_test(void);
63-
static void bf_key_init(bf_state_T *state, char_u *password, char_u *salt, int salt_len);
64-
static void bf_cfb_init(bf_state_T *state, char_u *seed, int seed_len);
65-
6659
/* Blowfish code */
6760
static UINT32_T pax_init[18] = {
6861
0x243f6a88u, 0x85a308d3u, 0x13198a2eu,

src/buffer.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ static void clear_wininfo(buf_T *buf);
5151
# define dev_T unsigned
5252
#endif
5353

54-
#if defined(FEAT_SIGNS)
55-
static void insert_sign(buf_T *buf, signlist_T *prev, signlist_T *next, int id, linenr_T lnum, int typenr);
56-
#endif
57-
5854
#if defined(FEAT_QUICKFIX)
5955
static char *msg_loclist = N_("[Location List]");
6056
static char *msg_qflist = N_("[Quickfix List]");
@@ -2843,8 +2839,6 @@ buflist_setfpos(
28432839
}
28442840

28452841
#ifdef FEAT_DIFF
2846-
static int wininfo_other_tab_diff(wininfo_T *wip);
2847-
28482842
/*
28492843
* Return TRUE when "wip" has 'diff' set and the diff is only for another tab
28502844
* page. That's because a diff is local to a tab page.

src/charset.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
#include "vim.h"
1111

12-
#ifdef FEAT_LINEBREAK
13-
static int win_chartabsize(win_T *wp, char_u *p, colnr_T col);
14-
#endif
15-
1612
#ifdef FEAT_MBYTE
1713
# if defined(HAVE_WCHAR_H)
1814
# include <wchar.h> /* for towupper() and towlower() */

src/crypt_zip.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ typedef struct {
3636
} zip_state_T;
3737

3838

39-
static void make_crc_tab(void);
40-
4139
static u32_T crc_32_table[256];
4240

4341
/*

src/digraph.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ typedef struct digraph
2828
result_T result;
2929
} digr_T;
3030

31-
static int getexactdigraph(int, int, int);
3231
static void printdigraph(digr_T *);
3332

3433
/* digraphs added by the user */

src/edit.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,9 @@ static void ins_ctrl_x(void);
155155
static int has_compl_option(int dict_opt);
156156
static int ins_compl_accept_char(int c);
157157
static int ins_compl_add(char_u *str, int len, int icase, char_u *fname, char_u **cptext, int cdir, int flags, int adup);
158-
static int ins_compl_equal(compl_T *match, char_u *str, int len);
159158
static void ins_compl_longest_match(compl_T *match);
160-
static void ins_compl_add_matches(int num_matches, char_u **matches, int icase);
161-
static int ins_compl_make_cyclic(void);
162-
static void ins_compl_upd_pum(void);
163159
static void ins_compl_del_pum(void);
164160
static int pum_wanted(void);
165-
static int pum_enough_matches(void);
166-
static void ins_compl_dictionaries(char_u *dict, char_u *pat, int flags, int thesaurus);
167161
static void ins_compl_files(int count, char_u **files, int thesaurus, int flags, regmatch_T *regmatch, char_u *buf, int *dir);
168162
static char_u *find_line_end(char_u *ptr);
169163
static void ins_compl_free(void);
@@ -178,19 +172,15 @@ static void ins_compl_set_original_text(char_u *str);
178172
static void ins_compl_addfrommatch(void);
179173
static int ins_compl_prep(int c);
180174
static void ins_compl_fixRedoBufForLeader(char_u *ptr_arg);
181-
static buf_T *ins_compl_next_buf(buf_T *buf, int flag);
182175
# if defined(FEAT_COMPL_FUNC) || defined(FEAT_EVAL)
183176
static void ins_compl_add_list(list_T *list);
184177
static void ins_compl_add_dict(dict_T *dict);
185178
# endif
186-
static int ins_compl_get_exp(pos_T *ini);
187179
static void ins_compl_delete(void);
188180
static void ins_compl_insert(int in_compl_func);
189-
static int ins_compl_next(int allow_get_expansion, int count, int insert_match, int in_compl_func);
190181
static int ins_compl_key2dir(int c);
191182
static int ins_compl_pum_key(int c);
192183
static int ins_compl_key2count(int c);
193-
static int ins_compl_use_match(int c);
194184
static int ins_complete(int c, int enable_pum);
195185
static void show_pum(int prev_w_wrow, int prev_w_leftcol);
196186
static unsigned quote_meta(char_u *dest, char_u *str, int len);
@@ -212,7 +202,6 @@ static void internal_format(int textwidth, int second_indent, int flags, int for
212202
static void check_auto_format(int);
213203
static void redo_literal(int c);
214204
static void start_arrow(pos_T *end_insert_pos);
215-
static void start_arrow_with_change(pos_T *end_insert_pos, int change);
216205
static void start_arrow_common(pos_T *end_insert_pos, int change);
217206
#ifdef FEAT_SPELL
218207
static void check_spell_redraw(void);
@@ -221,9 +210,7 @@ static int spell_bad_len = 0; /* length of located bad word */
221210
#endif
222211
static void stop_insert(pos_T *end_insert_pos, int esc, int nomove);
223212
static int echeck_abbr(int);
224-
static int replace_pop(void);
225213
static void replace_join(int off);
226-
static void replace_pop_ins(void);
227214
#ifdef FEAT_MBYTE
228215
static void mb_replace_pop_ins(int cc);
229216
#endif
@@ -9067,8 +9054,6 @@ ins_del(void)
90679054
AppendCharToRedobuff(K_DEL);
90689055
}
90699056

9070-
static void ins_bs_one(colnr_T *vcolp);
9071-
90729057
/*
90739058
* Delete one character for ins_bs().
90749059
*/

src/eval.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ static int eval5(char_u **arg, typval_T *rettv, int evaluate);
232232
static int eval6(char_u **arg, typval_T *rettv, int evaluate, int want_string);
233233
static int eval7(char_u **arg, typval_T *rettv, int evaluate, int want_string);
234234

235-
static int eval_index(char_u **arg, typval_T *rettv, int evaluate, int verbose);
236235
static int get_string_tv(char_u **arg, typval_T *rettv, int evaluate);
237236
static int get_lit_string_tv(char_u **arg, typval_T *rettv, int evaluate);
238237
static int free_unref_items(int copyID);
@@ -3050,8 +3049,6 @@ del_menutrans_vars(void)
30503049
* get_user_var_name().
30513050
*/
30523051

3053-
static char_u *cat_prefix_varname(int prefix, char_u *name);
3054-
30553052
static char_u *varnamebuf = NULL;
30563053
static int varnamebuflen = 0;
30573054

@@ -7957,6 +7954,7 @@ get_user_input(
79577954
if (defstr != NULL)
79587955
{
79597956
int save_ex_normal_busy = ex_normal_busy;
7957+
79607958
ex_normal_busy = 0;
79617959
rettv->vval.v_string =
79627960
getcmdline_prompt(secret ? NUL : '@', p, echo_attr,
@@ -8507,8 +8505,6 @@ typedef enum
85078505
VAR_FLAVOUR_VIMINFO /* all uppercase */
85088506
} var_flavour_T;
85098507

8510-
static var_flavour_T var_flavour(char_u *varname);
8511-
85128508
static var_flavour_T
85138509
var_flavour(char_u *varname)
85148510
{
@@ -9431,9 +9427,6 @@ var_exists(char_u *var)
94319427
/*
94329428
* Functions for ":8" filename modifier: get 8.3 version of a filename.
94339429
*/
9434-
static int get_short_pathname(char_u **fnamep, char_u **bufp, int *fnamelen);
9435-
static int shortpath_for_invalid_fname(char_u **fname, char_u **bufp, int *fnamelen);
9436-
static int shortpath_for_partial(char_u **fnamep, char_u **bufp, int *fnamelen);
94379430

94389431
/*
94399432
* Get the short path (8.3) for the filename in "fnamep".

src/evalfunc.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,8 +1121,6 @@ get_tv_lnum(typval_T *argvars)
11211121
}
11221122

11231123
#ifdef FEAT_FLOAT
1124-
static int get_float_arg(typval_T *argvars, float_T *f);
1125-
11261124
/*
11271125
* Get the float value of "argvars[0]" into "f".
11281126
* Returns FAIL when the argument is not a Number or Float.
@@ -1722,8 +1720,6 @@ f_browsedir(typval_T *argvars UNUSED, typval_T *rettv)
17221720
rettv->v_type = VAR_STRING;
17231721
}
17241722

1725-
static buf_T *find_buffer(typval_T *avar);
1726-
17271723
/*
17281724
* Find a buffer by number or exact name.
17291725
*/
@@ -3826,8 +3822,6 @@ f_fnamemodify(typval_T *argvars, typval_T *rettv)
38263822
vim_free(fbuf);
38273823
}
38283824

3829-
static void foldclosed_both(typval_T *argvars, typval_T *rettv, int end);
3830-
38313825
/*
38323826
* "foldclosed()" function
38333827
*/
@@ -4485,8 +4479,6 @@ f_getbufinfo(typval_T *argvars, typval_T *rettv)
44854479
}
44864480
}
44874481

4488-
static void get_buffer_lines(buf_T *buf, linenr_T start, linenr_T end, int retlist, typval_T *rettv);
4489-
44904482
/*
44914483
* Get line or list of lines from buffer "buf" into "rettv".
44924484
* Return a range (from start to end) of lines in rettv from the specified
@@ -7589,8 +7581,6 @@ f_localtime(typval_T *argvars UNUSED, typval_T *rettv)
75897581
rettv->vval.v_number = (varnumber_T)time(NULL);
75907582
}
75917583

7592-
static void get_maparg(typval_T *argvars, typval_T *rettv, int exact);
7593-
75947584
static void
75957585
get_maparg(typval_T *argvars, typval_T *rettv, int exact)
75967586
{
@@ -8200,8 +8190,6 @@ f_matchstrpos(typval_T *argvars, typval_T *rettv)
82008190
find_some_match(argvars, rettv, MATCH_POS);
82018191
}
82028192

8203-
static void max_min(typval_T *argvars, typval_T *rettv, int domax);
8204-
82058193
static void
82068194
max_min(typval_T *argvars, typval_T *rettv, int domax)
82078195
{
@@ -8284,8 +8272,6 @@ f_min(typval_T *argvars, typval_T *rettv)
82848272
max_min(argvars, rettv, FALSE);
82858273
}
82868274

8287-
static int mkdir_recurse(char_u *dir, int prot);
8288-
82898275
/*
82908276
* Create the directory in which "dir" is located, and higher levels when
82918277
* needed.
@@ -9080,8 +9066,6 @@ f_reg_recording(typval_T *argvars UNUSED, typval_T *rettv)
90809066
}
90819067

90829068
#if defined(FEAT_RELTIME)
9083-
static int list2proftime(typval_T *arg, proftime_T *tm);
9084-
90859069
/*
90869070
* Convert a List to proftime_T.
90879071
* Return FAIL when there is something wrong.
@@ -9194,9 +9178,6 @@ f_reltimestr(typval_T *argvars UNUSED, typval_T *rettv)
91949178
}
91959179

91969180
#if defined(FEAT_CLIENTSERVER) && defined(FEAT_X11)
9197-
static void make_connection(void);
9198-
static int check_connection(void);
9199-
92009181
static void
92019182
make_connection(void)
92029183
{
@@ -9874,8 +9855,6 @@ f_reverse(typval_T *argvars, typval_T *rettv)
98749855
#define SP_END 0x40 /* leave cursor at end of match */
98759856
#define SP_COLUMN 0x80 /* start at cursor column */
98769857

9877-
static int get_search_arg(typval_T *varp, int *flagsp);
9878-
98799858
/*
98809859
* Get flags for a search function.
98819860
* Possibly sets "p_ws".
@@ -10705,8 +10684,6 @@ f_setline(typval_T *argvars, typval_T *rettv)
1070510684
set_buffer_lines(curbuf, lnum, FALSE, &argvars[1], rettv);
1070610685
}
1070710686

10708-
static void set_qf_ll_list(win_T *wp, typval_T *list_arg, typval_T *action_arg, typval_T *what_arg, typval_T *rettv);
10709-
1071010687
/*
1071110688
* Used by "setqflist()" and "setloclist()" functions
1071210689
*/
@@ -11246,7 +11223,6 @@ typedef struct
1124611223
int item_compare_keep_zero;
1124711224
} sortinfo_T;
1124811225
static sortinfo_T *sortinfo = NULL;
11249-
static void do_sort_uniq(typval_T *argvars, typval_T *rettv, int sort);
1125011226
#define ITEM_COMPARE_FAIL 999
1125111227

1125211228
/*
@@ -12891,8 +12867,6 @@ f_tabpagenr(typval_T *argvars UNUSED, typval_T *rettv)
1289112867
}
1289212868

1289312869

12894-
static int get_winnr(tabpage_T *tp, typval_T *argvar);
12895-
1289612870
/*
1289712871
* Common code for tabpagewinnr() and winnr().
1289812872
*/

src/ex_cmds.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,7 +1813,6 @@ append_redir(
18131813

18141814
#if defined(FEAT_VIMINFO) || defined(PROTO)
18151815

1816-
static int no_viminfo(void);
18171816
static int read_viminfo_barline(vir_T *virp, int got_encoding, int force, int writing);
18181817
static void write_viminfo_version(FILE *fp_out);
18191818
static void write_viminfo_barlines(vir_T *virp, FILE *fp_out);
@@ -7568,7 +7567,6 @@ struct sign
75687567
static sign_T *first_sign = NULL;
75697568
static int next_sign_typenr = 1;
75707569

7571-
static int sign_cmd_idx(char_u *begin_cmd, char_u *end_cmd);
75727570
static void sign_list_defined(sign_T *sp);
75737571
static void sign_undefine(sign_T *sp, sign_T *sp_prev);
75747572

0 commit comments

Comments
 (0)