summaryrefslogtreecommitdiffstats
path: root/src/proto/evalvars.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-14 21:39:44 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-14 21:39:44 +0200
commit0b4c66c67a083f25816b9cdb8e76a41e02d9f560 (patch)
treeb371efc32dbbbda792f5177e1269c0eb7f2a3d64 /src/proto/evalvars.pro
parentefd5d8a967ba80f9e2826c35be98344d8f00af77 (diff)
patch 8.2.1685: Vim9: cannot declare a constant valuev8.2.1685
Problem: Vim9: cannot declare a constant value. Solution: Introduce ":const!".
Diffstat (limited to 'src/proto/evalvars.pro')
-rw-r--r--src/proto/evalvars.pro3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/proto/evalvars.pro b/src/proto/evalvars.pro
index f304872230..010e630d7e 100644
--- a/src/proto/evalvars.pro
+++ b/src/proto/evalvars.pro
@@ -23,6 +23,7 @@ void ex_unlet(exarg_T *eap);
void ex_lockvar(exarg_T *eap);
void ex_unletlock(exarg_T *eap, char_u *argstart, int deep, int glv_flags, int (*callback)(lval_T *, char_u *, exarg_T *, int, void *), void *cookie);
int do_unlet(char_u *name, int forceit);
+void item_lock(typval_T *tv, int deep, int lock, int check_refcount);
void del_menutrans_vars(void);
char_u *get_user_var_name(expand_T *xp, int idx);
char *get_var_special_name(int nr);
@@ -65,7 +66,7 @@ void unref_var_dict(dict_T *dict);
void vars_clear(hashtab_T *ht);
void vars_clear_ext(hashtab_T *ht, int free_val);
void set_var(char_u *name, typval_T *tv, int copy);
-void set_var_const(char_u *name, type_T *type, typval_T *tv, int copy, int flags);
+void set_var_const(char_u *name, type_T *type, typval_T *tv_arg, int copy, int flags);
int var_check_ro(int flags, char_u *name, int use_gettext);
int var_check_fixed(int flags, char_u *name, int use_gettext);
int var_wrong_func_name(char_u *name, int new_var);