diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-22 17:07:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-22 17:07:00 +0100 |
commit | f1c60d4bf10794265b828afd9c5f7eddacada10b (patch) | |
tree | 97da67230b5a297698ea6065aca3adb0912ab751 /src/proto/strings.pro | |
parent | 6d313bec535d9ccc24f6f82025280a61caad7416 (diff) |
patch 9.0.0548: reduce() with a compiled lambda could be fasterv9.0.0548
Problem: reduce() with a compiled lambda could be faster.
Solution: Call eval_expr_typval() instead of call_func() directly.
Diffstat (limited to 'src/proto/strings.pro')
-rw-r--r-- | src/proto/strings.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/strings.pro b/src/proto/strings.pro index 778ec902bc..50bbf29fe8 100644 --- a/src/proto/strings.pro +++ b/src/proto/strings.pro @@ -23,7 +23,7 @@ char_u *concat_str(char_u *str1, char_u *str2); char_u *string_quote(char_u *str, int function); long string_count(char_u *haystack, char_u *needle, int ic); void string_filter_map(char_u *str, filtermap_T filtermap, typval_T *expr, typval_T *rettv); -void string_reduce(typval_T *argvars, char_u *func_name, funcexe_T *funcexe, typval_T *rettv); +void string_reduce(typval_T *argvars, typval_T *expr, typval_T *rettv); void f_byteidx(typval_T *argvars, typval_T *rettv); void f_byteidxcomp(typval_T *argvars, typval_T *rettv); void f_charidx(typval_T *argvars, typval_T *rettv); |