mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
eval: Change dv_lock type to VarLockStatus
This commit is contained in:
@@ -120,19 +120,18 @@ typedef struct dictitem_S dictitem_T;
|
|||||||
#define DI_FLAGS_LOCK 8 // "di_flags" value: locked variable
|
#define DI_FLAGS_LOCK 8 // "di_flags" value: locked variable
|
||||||
#define DI_FLAGS_ALLOC 16 // "di_flags" value: separately allocated
|
#define DI_FLAGS_ALLOC 16 // "di_flags" value: separately allocated
|
||||||
|
|
||||||
/*
|
/// Structure representing a Dictionary
|
||||||
* Structure to hold info about a Dictionary.
|
|
||||||
*/
|
|
||||||
struct dictvar_S {
|
struct dictvar_S {
|
||||||
char dv_lock; /* zero, VAR_LOCKED, VAR_FIXED */
|
VarLockStatus dv_lock; ///< Whole dictionary lock status.
|
||||||
char dv_scope; /* zero, VAR_SCOPE, VAR_DEF_SCOPE */
|
char dv_scope; ///< Non-zero (#VAR_SCOPE, #VAR_DEF_SCOPE) if
|
||||||
int dv_refcount; /* reference count */
|
///< dictionary represents a scope (i.e. g:, l: …).
|
||||||
int dv_copyID; /* ID used by deepcopy() */
|
int dv_refcount; ///< Reference count.
|
||||||
hashtab_T dv_hashtab; /* hashtab that refers to the items */
|
int dv_copyID; ///< ID used when recursivery traversing a value.
|
||||||
dict_T *dv_copydict; /* copied dict used by deepcopy() */
|
hashtab_T dv_hashtab; ///< Hashtab containing all items.
|
||||||
dict_T *dv_used_next; /* next dict in used dicts list */
|
dict_T *dv_copydict; ///< Copied dict used by deepcopy().
|
||||||
dict_T *dv_used_prev; /* previous dict in used dicts list */
|
dict_T *dv_used_next; ///< Next dictionary in used dictionaries list.
|
||||||
QUEUE watchers; // dictionary key watchers set by user code
|
dict_T *dv_used_prev; ///< Previous dictionary in used dictionaries list.
|
||||||
|
QUEUE watchers; ///< Dictionary key watchers set by user code.
|
||||||
};
|
};
|
||||||
|
|
||||||
// structure used for explicit stack while garbage collecting hash tables
|
// structure used for explicit stack while garbage collecting hash tables
|
||||||
|
Reference in New Issue
Block a user