Mercurial > vim
diff src/structs.h @ 8718:f1840a719771 v7.4.1648
commit https://github.com/vim/vim/commit/bee6c0cf86a75faa2aa893f2c9db82fd944a89a5
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 25 15:40:50 2016 +0100
patch 7.4.1648
Problem: Compiler has a problem copying a string into di_key[]. (Yegappan
Lakshmanan)
Solution: Add dictitem16_T.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 25 Mar 2016 15:45:05 +0100 |
parents | 4a4d5815a974 |
children | 7038ec89d1fd |
line wrap: on
line diff
--- a/src/structs.h +++ b/src/structs.h @@ -1221,6 +1221,15 @@ 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() */