Mercurial > vim
diff src/eval.c @ 16231:0761a4c111a7 v8.1.1120
patch 8.1.1120: cannot easily get directory entry matches
commit https://github.com/vim/vim/commit/543c9b1921d7605498b54afdef518e312f1b4515
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 5 22:50:40 2019 +0200
patch 8.1.1120: cannot easily get directory entry matches
Problem: Cannot easily get directory entry matches.
Solution: Add the readdir() function. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/2439)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 05 Apr 2019 23:00:06 +0200 |
parents | abb67309c1ca |
children | 6ee80f3b5ea9 |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -753,7 +753,7 @@ eval1_emsg(char_u **arg, typval_T *rettv return ret; } - static int + int eval_expr_typval(typval_T *expr, typval_T *argv, int argc, typval_T *rettv) { char_u *s; @@ -966,7 +966,7 @@ eval_to_number(char_u *expr) * Save the current typeval in "save_tv". * When not used yet add the variable to the v: hashtable. */ - static void + void prepare_vimvar(int idx, typval_T *save_tv) { *save_tv = vimvars[idx].vv_tv; @@ -978,7 +978,7 @@ prepare_vimvar(int idx, typval_T *save_t * Restore v: variable "idx" to typeval "save_tv". * When no longer defined, remove the variable from the v: hashtable. */ - static void + void restore_vimvar(int idx, typval_T *save_tv) { hashitem_T *hi;