comparison src/edit.c @ 14862:27b9a84395b5 v8.1.0443

patch 8.1.0443: unnecessary static function prototypes commit https://github.com/vim/vim/commit/6dff58f15cede9139b2fcfc64c9064326ea3d3b0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 30 21:43:26 2018 +0200 patch 8.1.0443: unnecessary static function prototypes Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
author Christian Brabandt <cb@256bit.org>
date Sun, 30 Sep 2018 21:45:07 +0200
parents a9665096074b
children 4ebda55537a5
comparison
equal deleted inserted replaced
14861:41fbdae837df 14862:27b9a84395b5
153 153
154 static void ins_ctrl_x(void); 154 static void ins_ctrl_x(void);
155 static int has_compl_option(int dict_opt); 155 static int has_compl_option(int dict_opt);
156 static int ins_compl_accept_char(int c); 156 static int ins_compl_accept_char(int c);
157 static int ins_compl_add(char_u *str, int len, int icase, char_u *fname, char_u **cptext, int cdir, int flags, int adup); 157 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);
159 static void ins_compl_longest_match(compl_T *match); 158 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);
163 static void ins_compl_del_pum(void); 159 static void ins_compl_del_pum(void);
164 static int pum_wanted(void); 160 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);
167 static void ins_compl_files(int count, char_u **files, int thesaurus, int flags, regmatch_T *regmatch, char_u *buf, int *dir); 161 static void ins_compl_files(int count, char_u **files, int thesaurus, int flags, regmatch_T *regmatch, char_u *buf, int *dir);
168 static char_u *find_line_end(char_u *ptr); 162 static char_u *find_line_end(char_u *ptr);
169 static void ins_compl_free(void); 163 static void ins_compl_free(void);
170 static void ins_compl_clear(void); 164 static void ins_compl_clear(void);
171 static int ins_compl_bs(void); 165 static int ins_compl_bs(void);
176 static void ins_compl_restart(void); 170 static void ins_compl_restart(void);
177 static void ins_compl_set_original_text(char_u *str); 171 static void ins_compl_set_original_text(char_u *str);
178 static void ins_compl_addfrommatch(void); 172 static void ins_compl_addfrommatch(void);
179 static int ins_compl_prep(int c); 173 static int ins_compl_prep(int c);
180 static void ins_compl_fixRedoBufForLeader(char_u *ptr_arg); 174 static void ins_compl_fixRedoBufForLeader(char_u *ptr_arg);
181 static buf_T *ins_compl_next_buf(buf_T *buf, int flag);
182 # if defined(FEAT_COMPL_FUNC) || defined(FEAT_EVAL) 175 # if defined(FEAT_COMPL_FUNC) || defined(FEAT_EVAL)
183 static void ins_compl_add_list(list_T *list); 176 static void ins_compl_add_list(list_T *list);
184 static void ins_compl_add_dict(dict_T *dict); 177 static void ins_compl_add_dict(dict_T *dict);
185 # endif 178 # endif
186 static int ins_compl_get_exp(pos_T *ini);
187 static void ins_compl_delete(void); 179 static void ins_compl_delete(void);
188 static void ins_compl_insert(int in_compl_func); 180 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);
190 static int ins_compl_key2dir(int c); 181 static int ins_compl_key2dir(int c);
191 static int ins_compl_pum_key(int c); 182 static int ins_compl_pum_key(int c);
192 static int ins_compl_key2count(int c); 183 static int ins_compl_key2count(int c);
193 static int ins_compl_use_match(int c);
194 static int ins_complete(int c, int enable_pum); 184 static int ins_complete(int c, int enable_pum);
195 static void show_pum(int prev_w_wrow, int prev_w_leftcol); 185 static void show_pum(int prev_w_wrow, int prev_w_leftcol);
196 static unsigned quote_meta(char_u *dest, char_u *str, int len); 186 static unsigned quote_meta(char_u *dest, char_u *str, int len);
197 #endif /* FEAT_INS_EXPAND */ 187 #endif /* FEAT_INS_EXPAND */
198 188
210 static void insert_special(int, int, int); 200 static void insert_special(int, int, int);
211 static void internal_format(int textwidth, int second_indent, int flags, int format_only, int c); 201 static void internal_format(int textwidth, int second_indent, int flags, int format_only, int c);
212 static void check_auto_format(int); 202 static void check_auto_format(int);
213 static void redo_literal(int c); 203 static void redo_literal(int c);
214 static void start_arrow(pos_T *end_insert_pos); 204 static void start_arrow(pos_T *end_insert_pos);
215 static void start_arrow_with_change(pos_T *end_insert_pos, int change);
216 static void start_arrow_common(pos_T *end_insert_pos, int change); 205 static void start_arrow_common(pos_T *end_insert_pos, int change);
217 #ifdef FEAT_SPELL 206 #ifdef FEAT_SPELL
218 static void check_spell_redraw(void); 207 static void check_spell_redraw(void);
219 static void spell_back_to_badword(void); 208 static void spell_back_to_badword(void);
220 static int spell_bad_len = 0; /* length of located bad word */ 209 static int spell_bad_len = 0; /* length of located bad word */
221 #endif 210 #endif
222 static void stop_insert(pos_T *end_insert_pos, int esc, int nomove); 211 static void stop_insert(pos_T *end_insert_pos, int esc, int nomove);
223 static int echeck_abbr(int); 212 static int echeck_abbr(int);
224 static int replace_pop(void);
225 static void replace_join(int off); 213 static void replace_join(int off);
226 static void replace_pop_ins(void);
227 #ifdef FEAT_MBYTE 214 #ifdef FEAT_MBYTE
228 static void mb_replace_pop_ins(int cc); 215 static void mb_replace_pop_ins(int cc);
229 #endif 216 #endif
230 static void replace_flush(void); 217 static void replace_flush(void);
231 static void replace_do_bs(int limit_col); 218 static void replace_do_bs(int limit_col);
9050 can_si_back = FALSE; 9037 can_si_back = FALSE;
9051 #endif 9038 #endif
9052 AppendCharToRedobuff(K_DEL); 9039 AppendCharToRedobuff(K_DEL);
9053 } 9040 }
9054 9041
9055 static void ins_bs_one(colnr_T *vcolp);
9056
9057 /* 9042 /*
9058 * Delete one character for ins_bs(). 9043 * Delete one character for ins_bs().
9059 */ 9044 */
9060 static void 9045 static void
9061 ins_bs_one(colnr_T *vcolp) 9046 ins_bs_one(colnr_T *vcolp)