Home
last modified time | relevance | path

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

/aosp_15_r20/external/python/cpython2/Modules/
D_struct.c13 static PyTypeObject PyStructType; variable
55 #define PyStruct_Check(op) PyObject_TypeCheck(op, &PyStructType)
56 #define PyStruct_CheckExact(op) (Py_TYPE(op) == &PyStructType)
1769 PyTypeObject PyStructType = { variable
1834 s_object = PyObject_CallFunctionObjArgs((PyObject *)(&PyStructType), fmt, NULL); in cache_struct()
2035 Py_TYPE(&PyStructType) = &PyType_Type; in init_struct()
2036 if (PyType_Ready(&PyStructType) < 0) in init_struct()
2092 Py_INCREF((PyObject*)&PyStructType); in init_struct()
2093 PyModule_AddObject(m, "Struct", (PyObject*)&PyStructType); in init_struct()
/aosp_15_r20/external/python/cpython3/Modules/
D_struct.c24 PyObject *PyStructType; member
73 #define PyStruct_Check(op, state) PyObject_TypeCheck(op, (PyTypeObject *)(state)->PyStructType)
2152 s_object = PyObject_CallOneArg(state->PyStructType, fmt); in cache_struct_converter()
2368 Py_VISIT(state->PyStructType); in _structmodule_traverse()
2381 Py_CLEAR(state->PyStructType); in _structmodule_clear()
2399 state->PyStructType = PyType_FromModuleAndSpec( in _structmodule_exec()
2401 if (state->PyStructType == NULL) { in _structmodule_exec()
2404 if (PyModule_AddType(m, (PyTypeObject *)state->PyStructType) < 0) { in _structmodule_exec()