diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-18 20:53:34 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-18 20:53:34 +0200 |
commit | 92ea26b925a0835badb0af2d5887238a4198cabb (patch) | |
tree | 0ed45513ea242aa5c252f84cc00cf59b155b38e3 /src/proto/search.pro | |
parent | 7751d1d1a3d447d0d48f57f34e0da9f7c6ac433d (diff) |
patch 8.1.2173: searchit() has too many argumentsv8.1.2173
Problem: Searchit() has too many arguments.
Solution: Move optional arguments to a struct. Add the "wrapped" argument.
Diffstat (limited to 'src/proto/search.pro')
-rw-r--r-- | src/proto/search.pro | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/proto/search.pro b/src/proto/search.pro index 143333d467..e6ac11b2cb 100644 --- a/src/proto/search.pro +++ b/src/proto/search.pro @@ -22,9 +22,9 @@ char_u *last_search_pat(void); void reset_search_dir(void); void set_last_search_pat(char_u *s, int idx, int magic, int setlast); void last_pat_prog(regmmatch_T *regmatch); -int searchit(win_T *win, buf_T *buf, pos_T *pos, pos_T *end_pos, int dir, char_u *pat, long count, int options, int pat_use, linenr_T stop_lnum, proftime_T *tm, int *timed_out); +int searchit(win_T *win, buf_T *buf, pos_T *pos, pos_T *end_pos, int dir, char_u *pat, long count, int options, int pat_use, searchit_arg_T *extra_arg); void set_search_direction(int cdir); -int do_search(oparg_T *oap, int dirc, char_u *pat, long count, int options, proftime_T *tm, int *timed_out); +int do_search(oparg_T *oap, int dirc, char_u *pat, long count, int options, searchit_arg_T *sia); int search_for_exact_line(buf_T *buf, pos_T *pos, int dir, char_u *pat); int searchc(cmdarg_T *cap, int t_cmd); pos_T *findmatch(oparg_T *oap, int initc); @@ -46,6 +46,6 @@ int current_quote(oparg_T *oap, long count, int include, int quotechar); int current_search(long count, int forward); int linewhite(linenr_T lnum); void find_pattern_in_path(char_u *ptr, int dir, int len, int whole, int skip_comments, int type, long count, int action, linenr_T start_lnum, linenr_T end_lnum); -struct spat *get_spat(int idx); +spat_T *get_spat(int idx); int get_spat_last_idx(void); /* vim: set ft=c : */ |