diff options
author | LemonBoy <thatlemon@gmail.com> | 2022-04-02 21:59:06 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-02 21:59:06 +0100 |
commit | 58f331a05f5b7bdddf04e68b6e51a827fd0c43f0 (patch) | |
tree | 349de5cab822dc0ccaea9c127fc960f6ab335d2f /src/evalfunc.c | |
parent | 0dac1ab5791819ee9a496273eea38f69a217ac45 (diff) | |
download | vim-git-58f331a05f5b7bdddf04e68b6e51a827fd0c43f0.tar.gz |
patch 8.2.4669: in compiled code len('string') is not inlinedv8.2.4669
Problem: In compiled code len('string') is not inlined.
Solution: Compute the length at compile time if possible. (closes #10065)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 60ca50a11..768b27f92 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -90,7 +90,6 @@ static void f_interrupt(typval_T *argvars, typval_T *rettv); static void f_invert(typval_T *argvars, typval_T *rettv); static void f_islocked(typval_T *argvars, typval_T *rettv); static void f_last_buffer_nr(typval_T *argvars, typval_T *rettv); -static void f_len(typval_T *argvars, typval_T *rettv); static void f_libcall(typval_T *argvars, typval_T *rettv); static void f_libcallnr(typval_T *argvars, typval_T *rettv); static void f_line(typval_T *argvars, typval_T *rettv); @@ -7019,7 +7018,7 @@ f_last_buffer_nr(typval_T *argvars UNUSED, typval_T *rettv) /* * "len()" function */ - static void + void f_len(typval_T *argvars, typval_T *rettv) { switch (argvars[0].v_type) |