Mercurial > vim
diff src/structs.h @ 6751:f5b262981753 v7.4.698
patch 7.4.698
Problem: Various problems with locked and fixed lists and dictionaries.
Solution: Disallow changing locked items, fix a crash, add tests. (Olaf
Dabrunz)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 13 Apr 2015 16:16:38 +0200 |
parents | 97cc4ee3e095 |
children | 62ba356c2d4e |
line wrap: on
line diff
--- a/src/structs.h +++ b/src/structs.h @@ -1203,10 +1203,11 @@ struct dictitem_S typedef struct dictitem_S dictitem_T; -#define DI_FLAGS_RO 1 /* "di_flags" value: read-only variable */ -#define DI_FLAGS_RO_SBX 2 /* "di_flags" value: read-only in the sandbox */ -#define DI_FLAGS_FIX 4 /* "di_flags" value: fixed variable, not allocated */ -#define DI_FLAGS_LOCK 8 /* "di_flags" value: locked variable */ +#define DI_FLAGS_RO 1 /* "di_flags" value: read-only variable */ +#define DI_FLAGS_RO_SBX 2 /* "di_flags" value: read-only in the sandbox */ +#define DI_FLAGS_FIX 4 /* "di_flags" value: fixed: no :unlet or remove() */ +#define DI_FLAGS_LOCK 8 /* "di_flags" value: locked variable */ +#define DI_FLAGS_ALLOC 16 /* "di_flags" value: separately allocated */ /* * Structure to hold info about a Dictionary.