Lines Matching refs:select_id

154     PyObject *select_id = PyDict_GetItem(feature_dict, modname);  in getFeatureSelectId()  local
155 if ( select_id == nullptr in getFeatureSelectId()
156 || !PyInt_Check(select_id) // int/long cheating in getFeatureSelectId()
157 || select_id == undef) in getFeatureSelectId()
161 last_select_id = select_id; in getFeatureSelectId()
162 assert(PyInt_AsSsize_t(select_id) >= 0); in getFeatureSelectId()
163 return select_id; in getFeatureSelectId()
176 __slots__ = ("dict_ring", "select_id") in createDerivedDictType()
207 static inline void setSelectId(PyObject *dict, PyObject *select_id) in setSelectId() argument
209 PyObject_SetAttr(dict, PyName::select_id(), select_id); in setSelectId()
214 auto select_id = PyObject_GetAttr(dict, PyName::select_id()); in getSelectId() local
215 return select_id; in getSelectId()
218 static inline void setCurrentSelectId(PyTypeObject *type, PyObject *select_id) in setCurrentSelectId() argument
220 SbkObjectType_SetReserved(type, PyInt_AsSsize_t(select_id)); // int/long cheating in setCurrentSelectId()
250 AutoDecRef select_id(PyInt_FromLong(0)); in replaceClassDict() local
251 setSelectId(new_dict, select_id); in replaceClassDict()
261 static bool addNewDict(PyTypeObject *type, PyObject *select_id) in addNewDict() argument
272 setSelectId(new_dict, select_id); in addNewDict()
281 static bool moveToFeatureSet(PyTypeObject *type, PyObject *select_id) in moveToFeatureSet() argument
293 if (current_id == select_id) { in moveToFeatureSet()
295 setCurrentSelectId(type, select_id); in moveToFeatureSet()
303 static bool createNewFeatureSet(PyTypeObject *type, PyObject *select_id) in createNewFeatureSet() argument
327 if (!addNewDict(type, select_id)) in createNewFeatureSet()
329 auto id = PyInt_AsSsize_t(select_id); // int/long cheating in createNewFeatureSet()
352 static bool SelectFeatureSetSubtype(PyTypeObject *type, PyObject *select_id) in SelectFeatureSetSubtype() argument
366 if (!moveToFeatureSet(type, select_id)) { in SelectFeatureSetSubtype()
367 if (!createNewFeatureSet(type, select_id)) { in SelectFeatureSetSubtype()
390 PyObject *select_id = getFeatureSelectId(); // borrowed in SelectFeatureSet() local
396 current_id = select_id = fast_id_array[0]; in SelectFeatureSet()
398 if (select_id != current_id) { in SelectFeatureSet()
405 if (!SelectFeatureSetSubtype(sub_type, select_id)) in SelectFeatureSet()