Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/
D_struct.c18 PyObject *PyStructType; member
65 … PyStruct_Check(op) PyObject_TypeCheck(op, (PyTypeObject *)_structmodulestate_global->PyStructType)
66 …ine PyStruct_CheckExact(op) Py_IS_TYPE(op, (PyTypeObject *)_structmodulestate_global->PyStructType)
2112 s_object = PyObject_CallOneArg(_structmodulestate_global->PyStructType, fmt); in cache_struct_converter()
2327 Py_VISIT(state->PyStructType); in _structmodule_traverse()
2339 Py_CLEAR(state->PyStructType); in _structmodule_clear()
2373 PyObject *PyStructType = PyType_FromSpec(&PyStructType_spec); in PyInit__struct() local
2374 if (PyStructType == NULL) { in PyInit__struct()
2377 Py_INCREF(PyStructType); in PyInit__struct()
2378 PyModule_AddObject(m, "Struct", PyStructType); in PyInit__struct()
[all …]
/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()