Lines Matching refs:dict

1568     dict_T	*dict;  member
1574 #define NEW_DICTIONARY(dict) DictionaryNew(&DictionaryType, dict) argument
1577 DictionaryNew(PyTypeObject *subtype, dict_T *dict) in DictionaryNew() argument
1584 self->dict = dict; in DictionaryNew()
1585 ++dict->dv_refcount; in DictionaryNew()
1611 dict_T *dict; in DictionaryConstructor() local
1613 if (!(dict = py_dict_alloc())) in DictionaryConstructor()
1616 self = (DictionaryObject *) DictionaryNew(subtype, dict); in DictionaryConstructor()
1618 --dict->dv_refcount; in DictionaryConstructor()
1639 dict_unref(self->dict); in DictionaryDestructor()
1667 if (self->dict->dv_lock == VAR_FIXED) in DictionarySetattr()
1679 self->dict->dv_lock = VAR_LOCKED; in DictionarySetattr()
1681 self->dict->dv_lock = 0; in DictionarySetattr()
1695 return ((PyInt) (self->dict->dv_hashtab.ht_used)); in DictionaryLength()
1712 dict_T *dict = self->dict; in _DictionaryItem() local
1737 hi = hash_find(&dict->dv_hashtab, key); in _DictionaryItem()
1768 if (dict->dv_lock) in _DictionaryItem()
1775 hash_remove(&dict->dv_hashtab, hi); in _DictionaryItem()
1850 ht = &self->dict->dv_hashtab; in DictionaryIter()
1867 dict_T *dict = self->dict; in DictionaryAssItem() local
1871 if (dict->dv_lock) in DictionaryAssItem()
1887 di = dict_find(dict, key, -1); in DictionaryAssItem()
1899 hi = hash_find(&dict->dv_hashtab, di->di_key); in DictionaryAssItem()
1900 hash_remove(&dict->dv_hashtab, hi); in DictionaryAssItem()
1922 if (dict_add(dict, di) == FAIL) in DictionaryAssItem()
1945 dict_T *dict = self->dict; in DictionaryListObjects() local
1946 long_u todo = dict->dv_hashtab.ht_used; in DictionaryListObjects()
1953 for (hi = dict->dv_hashtab.ht_array; todo > 0; ++hi) in DictionaryListObjects()
2030 dict_T *dict = self->dict; in DictionaryUpdate() local
2032 if (dict->dv_lock) in DictionaryUpdate()
2046 dict_extend(self->dict, tv.vval.v_dict, (char_u *) "force", NULL); in DictionaryUpdate()
2138 hi = hash_find(&dict->dv_hashtab, di->di_key); in DictionaryUpdate()
2139 if (!HASHITEM_EMPTY(hi) || dict_add(dict, di) == FAIL) in DictionaryUpdate()
2180 if (self->dict->dv_hashtab.ht_used == 0) in DictionaryPopItem()
2186 hi = self->dict->dv_hashtab.ht_array; in DictionaryPopItem()
2201 hash_remove(&self->dict->dv_hashtab, hi); in DictionaryPopItem()
5877 abort = set_ref_in_dict(((DictionaryObject *)(cur->pll_obj))->dict, in set_ref_in_py()
5921 dict_T *dict; in pydict_to_tv() local
5928 if (!(dict = py_dict_alloc())) in pydict_to_tv()
5932 tv->vval.v_dict = dict; in pydict_to_tv()
5940 dict_unref(dict); in pydict_to_tv()
5946 dict_unref(dict); in pydict_to_tv()
5952 dict_unref(dict); in pydict_to_tv()
5965 dict_unref(dict); in pydict_to_tv()
5972 dict_unref(dict); in pydict_to_tv()
5976 if (dict_add(dict, di) == FAIL) in pydict_to_tv()
5981 dict_unref(dict); in pydict_to_tv()
5986 --dict->dv_refcount; in pydict_to_tv()
5993 dict_T *dict; in pymap_to_tv() local
6001 if (!(dict = py_dict_alloc())) in pymap_to_tv()
6005 tv->vval.v_dict = dict; in pymap_to_tv()
6009 dict_unref(dict); in pymap_to_tv()
6015 dict_unref(dict); in pymap_to_tv()
6029 dict_unref(dict); in pymap_to_tv()
6038 dict_unref(dict); in pymap_to_tv()
6048 dict_unref(dict); in pymap_to_tv()
6061 dict_unref(dict); in pymap_to_tv()
6071 dict_unref(dict); in pymap_to_tv()
6077 if (dict_add(dict, di) == FAIL) in pymap_to_tv()
6082 dict_unref(dict); in pymap_to_tv()
6087 --dict->dv_refcount; in pymap_to_tv()
6182 tv->vval.v_dict = (((DictionaryObject *)(obj))->dict); in ConvertFromPyMapping()
6249 tv->vval.v_dict = (((DictionaryObject *)(obj))->dict); in _ConvertFromPyObject()
6863 PyObject *dict; in populate_module() local
6942 dict = PyModule_GetDict(imp); in populate_module()
6944 if (!(cls = PyDict_GetItemString(dict, "PathFinder"))) in populate_module()