comparison src/structs.h @ 370:3a21825ad207

updated for version 7.0095
author vimboss
date Mon, 27 Jun 2005 22:42:44 +0000
parents 7033303ea0c0
children 6b49757d378c
comparison
equal deleted inserted replaced
369:c53c2d4cda26 370:3a21825ad207
1018 /* 1018 /*
1019 * Structure to hold info about a list. 1019 * Structure to hold info about a list.
1020 */ 1020 */
1021 struct listvar_S 1021 struct listvar_S
1022 { 1022 {
1023 listitem_T *lv_first; /* first item, NULL if none */
1024 listitem_T *lv_last; /* last item, NULL if none */
1023 int lv_refcount; /* reference count */ 1025 int lv_refcount; /* reference count */
1024 int lv_len; /* number of items */ 1026 int lv_len; /* number of items */
1025 listitem_T *lv_first; /* first item, NULL if none */
1026 listitem_T *lv_last; /* last item, NULL if none */
1027 listwatch_T *lv_watch; /* first watcher, NULL if none */ 1027 listwatch_T *lv_watch; /* first watcher, NULL if none */
1028 int lv_idx; /* cached index of an item */ 1028 int lv_idx; /* cached index of an item */
1029 listitem_T *lv_idx_item; /* when not NULL item at index "lv_idx" */ 1029 listitem_T *lv_idx_item; /* when not NULL item at index "lv_idx" */
1030 int lv_copyID; /* ID used by deepcopy() */ 1030 int lv_copyID; /* ID used by deepcopy() */
1031 list_T *lv_copylist; /* copied list used by deepcopy() */ 1031 list_T *lv_copylist; /* copied list used by deepcopy() */
1032 char lv_lock; /* zero, VAR_LOCKED, VAR_FIXED */ 1032 char lv_lock; /* zero, VAR_LOCKED, VAR_FIXED */
1033 list_T *lv_used_next; /* next list in used dicts list */
1034 list_T *lv_used_prev; /* previous list in used lists list */
1033 }; 1035 };
1034 1036
1035 /* 1037 /*
1036 * Structure to hold an item of a Dictionary. 1038 * Structure to hold an item of a Dictionary.
1037 * Also used for a variable. 1039 * Also used for a variable.
1059 int dv_refcount; /* reference count */ 1061 int dv_refcount; /* reference count */
1060 hashtab_T dv_hashtab; /* hashtab that refers to the items */ 1062 hashtab_T dv_hashtab; /* hashtab that refers to the items */
1061 int dv_copyID; /* ID used by deepcopy() */ 1063 int dv_copyID; /* ID used by deepcopy() */
1062 dict_T *dv_copydict; /* copied dict used by deepcopy() */ 1064 dict_T *dv_copydict; /* copied dict used by deepcopy() */
1063 char dv_lock; /* zero, VAR_LOCKED, VAR_FIXED */ 1065 char dv_lock; /* zero, VAR_LOCKED, VAR_FIXED */
1066 dict_T *dv_used_next; /* next dict in used dicts list */
1067 dict_T *dv_used_prev; /* previous dict in used dicts list */
1064 }; 1068 };
1065 1069
1066 1070
1067 /* 1071 /*
1068 * buffer: structure that holds information about one file 1072 * buffer: structure that holds information about one file