comparison src/quickfix.c @ 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 54b3059311b5
children 079e10a49ea1
comparison
equal deleted inserted replaced
17788:2cf6b7b53b1d 17789:0f7ae8010787
165 static char_u *qf_types(int, int); 165 static char_u *qf_types(int, int);
166 static int qf_get_fnum(qf_list_T *qfl, char_u *, char_u *); 166 static int qf_get_fnum(qf_list_T *qfl, char_u *, char_u *);
167 static char_u *qf_push_dir(char_u *, struct dir_stack_T **, int is_file_stack); 167 static char_u *qf_push_dir(char_u *, struct dir_stack_T **, int is_file_stack);
168 static char_u *qf_pop_dir(struct dir_stack_T **); 168 static char_u *qf_pop_dir(struct dir_stack_T **);
169 static char_u *qf_guess_filepath(qf_list_T *qfl, char_u *); 169 static char_u *qf_guess_filepath(qf_list_T *qfl, char_u *);
170 static void qf_jump_newwin(qf_info_T *qi, int dir, int errornr, int forceit, int newwin);
170 static void qf_fmt_text(char_u *text, char_u *buf, int bufsize); 171 static void qf_fmt_text(char_u *text, char_u *buf, int bufsize);
171 static int qf_win_pos_update(qf_info_T *qi, int old_qf_index); 172 static int qf_win_pos_update(qf_info_T *qi, int old_qf_index);
172 static win_T *qf_find_win(qf_info_T *qi); 173 static win_T *qf_find_win(qf_info_T *qi);
173 static buf_T *qf_find_buf(qf_info_T *qi); 174 static buf_T *qf_find_buf(qf_info_T *qi);
174 static void qf_update_buffer(qf_info_T *qi, qfline_T *old_last); 175 static void qf_update_buffer(qf_info_T *qi, qfline_T *old_last);
3361 * If dir == BACKWARD_FILE go "errornr" valid entries files backward 3362 * If dir == BACKWARD_FILE go "errornr" valid entries files backward
3362 * else if "errornr" is zero, redisplay the same line 3363 * else if "errornr" is zero, redisplay the same line
3363 * If 'forceit' is TRUE, then can discard changes to the current buffer. 3364 * If 'forceit' is TRUE, then can discard changes to the current buffer.
3364 * If 'newwin' is TRUE, then open the file in a new window. 3365 * If 'newwin' is TRUE, then open the file in a new window.
3365 */ 3366 */
3366 void 3367 static void
3367 qf_jump_newwin(qf_info_T *qi, 3368 qf_jump_newwin(qf_info_T *qi,
3368 int dir, 3369 int dir,
3369 int errornr, 3370 int errornr,
3370 int forceit, 3371 int forceit,
3371 int newwin) 3372 int newwin)