Mercurial > vim
diff src/evalvars.c @ 19960:3c11b9f6fa03 v8.2.0536
patch 8.2.0536: Vim9: some compilation code not tested
Commit: https://github.com/vim/vim/commit/5da356e07359a59cf2d682908ba8592a72d5d9cd
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 9 19:34:43 2020 +0200
patch 8.2.0536: Vim9: some compilation code not tested
Problem: Vim9: some compilation code not tested.
Solution: Add more test cases.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 Apr 2020 19:45:04 +0200 |
parents | 1f42c49c3d29 |
children | 12fa79cac39b |
line wrap: on
line diff
--- a/src/evalvars.c +++ b/src/evalvars.c @@ -1915,15 +1915,17 @@ get_vimvar_dict(void) /* * Returns the index of a v:variable. Negative if not found. + * Returns DI_ flags in "di_flags". */ int -find_vim_var(char_u *name) +find_vim_var(char_u *name, int *di_flags) { - dictitem_T *di = find_var_in_ht(&vimvarht, 0, name, TRUE); - struct vimvar *vv; + dictitem_T *di = find_var_in_ht(&vimvarht, 0, name, TRUE); + struct vimvar *vv; if (di == NULL) return -1; + *di_flags = di->di_flags; vv = (struct vimvar *)((char *)di - offsetof(vimvar_T, vv_di)); return (int)(vv - vimvars); }