aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval_defs.h
diff options
context:
space:
mode:
authorJurica Bradaric <jbradaric@gmail.com>2016-09-18 21:23:23 +0200
committerJurica Bradaric <jbradaric@gmail.com>2016-09-28 21:36:11 +0200
commit42731a9a154c991706b8b5816fbdf5d31726cd97 (patch)
tree9cfaabf0d84feb0e0f3e37c536f88edce753aa64 /src/nvim/eval_defs.h
parent87fa495b21c8afa77c190b30e67c78f237c77216 (diff)
downloadrneovim-42731a9a154c991706b8b5816fbdf5d31726cd97.tar.gz
rneovim-42731a9a154c991706b8b5816fbdf5d31726cd97.tar.bz2
rneovim-42731a9a154c991706b8b5816fbdf5d31726cd97.zip
vim-patch:7.4.1648
Problem: Compiler has a problem copying a string into di_key[]. (Yegappan Lakshmanan) Solution: Add dictitem16_T. https://github.com/vim/vim/commit/bee6c0cf86a75faa2aa893f2c9db82fd944a89a5
Diffstat (limited to 'src/nvim/eval_defs.h')
-rw-r--r--src/nvim/eval_defs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/eval_defs.h b/src/nvim/eval_defs.h
index 884c987f10..91d544074f 100644
--- a/src/nvim/eval_defs.h
+++ b/src/nvim/eval_defs.h
@@ -114,6 +114,16 @@ struct dictitem_S {
typedef struct dictitem_S dictitem_T;
+/// A dictitem with a 16 character key (plus NUL)
+struct dictitem16_S {
+ typval_T di_tv; ///< type and value of the variable
+ char_u di_flags; ///< flags (only used for variable)
+ char_u di_key[17]; ///< key
+};
+
+typedef struct dictitem16_S dictitem16_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: no :unlet or remove()