Mercurial > vim
comparison src/proto/evalvars.pro @ 23295:d9ae7dd3a0f2 v8.2.2193
patch 8.2.2193: Vim9: can change constant in :def function
Commit: https://github.com/vim/vim/commit/3bdc90b7dfab314768a8f56454ea62929524f05c
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 22 20:35:40 2020 +0100
patch 8.2.2193: Vim9: can change constant in :def function
Problem: Vim9: can change constant in :def function.
Solution: Check if a variable is locked. (issue https://github.com/vim/vim/issues/7526)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Dec 2020 20:45:04 +0100 |
parents | 657216220293 |
children | a9433f834693 |
comparison
equal
deleted
inserted
replaced
23294:38b22245d35c | 23295:d9ae7dd3a0f2 |
---|---|
68 void vars_clear(hashtab_T *ht); | 68 void vars_clear(hashtab_T *ht); |
69 void vars_clear_ext(hashtab_T *ht, int free_val); | 69 void vars_clear_ext(hashtab_T *ht, int free_val); |
70 void delete_var(hashtab_T *ht, hashitem_T *hi); | 70 void delete_var(hashtab_T *ht, hashitem_T *hi); |
71 void set_var(char_u *name, typval_T *tv, int copy); | 71 void set_var(char_u *name, typval_T *tv, int copy); |
72 void set_var_const(char_u *name, type_T *type, typval_T *tv_arg, int copy, int flags); | 72 void set_var_const(char_u *name, type_T *type, typval_T *tv_arg, int copy, int flags); |
73 int var_check_permission(dictitem_T *di, char_u *name); | |
73 int var_check_ro(int flags, char_u *name, int use_gettext); | 74 int var_check_ro(int flags, char_u *name, int use_gettext); |
74 int var_check_lock(int flags, char_u *name, int use_gettext); | 75 int var_check_lock(int flags, char_u *name, int use_gettext); |
75 int var_check_fixed(int flags, char_u *name, int use_gettext); | 76 int var_check_fixed(int flags, char_u *name, int use_gettext); |
76 int var_wrong_func_name(char_u *name, int new_var); | 77 int var_wrong_func_name(char_u *name, int new_var); |
77 int value_check_lock(int lock, char_u *name, int use_gettext); | 78 int value_check_lock(int lock, char_u *name, int use_gettext); |