Home
last modified time | relevance | path

Searched refs:cur_slot (Results 1 – 1 of 1) sorted by relevance

/external/python/cpython3/Objects/
Dmoduleobject.c247 PyModuleDef_Slot* cur_slot; in PyModule_FromDefAndSpec2() local
278 for (cur_slot = def->m_slots; cur_slot && cur_slot->slot; cur_slot++) { in PyModule_FromDefAndSpec2()
279 if (cur_slot->slot == Py_mod_create) { in PyModule_FromDefAndSpec2()
287 create = cur_slot->value; in PyModule_FromDefAndSpec2()
288 } else if (cur_slot->slot < 0 || cur_slot->slot > _Py_mod_LAST_SLOT) { in PyModule_FromDefAndSpec2()
292 name, cur_slot->slot); in PyModule_FromDefAndSpec2()
381 PyModuleDef_Slot *cur_slot; in PyModule_ExecDef() local
408 for (cur_slot = def->m_slots; cur_slot && cur_slot->slot; cur_slot++) { in PyModule_ExecDef()
409 switch (cur_slot->slot) { in PyModule_ExecDef()
414 ret = ((int (*)(PyObject *))cur_slot->value)(module); in PyModule_ExecDef()
[all …]