comparison src/structs.h @ 18358:34d5cd432cac v8.1.2173

patch 8.1.2173: searchit() has too many arguments Commit: https://github.com/vim/vim/commit/92ea26b925a0835badb0af2d5887238a4198cabb Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 18 20:53:34 2019 +0200 patch 8.1.2173: searchit() has too many arguments Problem: Searchit() has too many arguments. Solution: Move optional arguments to a struct. Add the "wrapped" argument.
author Bram Moolenaar <Bram@vim.org>
date Fri, 18 Oct 2019 21:00:04 +0200
parents 506bf60a30a0
children 1848b3e07266
comparison
equal deleted inserted replaced
18357:ffe2ff94a3e0 18358:34d5cd432cac
3869 int magic; // magicness of the pattern 3869 int magic; // magicness of the pattern
3870 int no_scs; // no smartcase for this pattern 3870 int no_scs; // no smartcase for this pattern
3871 soffset_T off; 3871 soffset_T off;
3872 } spat_T; 3872 } spat_T;
3873 3873
3874 /*
3875 * Optional extra arguments for searchit().
3876 */
3877 typedef struct
3878 {
3879 linenr_T sa_stop_lnum; // stop after this line number when != 0
3880 #ifdef FEAT_RELTIME
3881 proftime_T *sa_tm; // timeout limit or NULL
3882 int sa_timed_out; // set when timed out
3883 #endif
3884 int sa_wrapped; // search wrapped around
3885 } searchit_arg_T;
3886
3874 #define WRITEBUFSIZE 8192 // size of normal write buffer 3887 #define WRITEBUFSIZE 8192 // size of normal write buffer
3875 3888
3876 #define FIO_LATIN1 0x01 // convert Latin1 3889 #define FIO_LATIN1 0x01 // convert Latin1
3877 #define FIO_UTF8 0x02 // convert UTF-8 3890 #define FIO_UTF8 0x02 // convert UTF-8
3878 #define FIO_UCS2 0x04 // convert UCS-2 3891 #define FIO_UCS2 0x04 // convert UCS-2