Searched refs:PyStructType (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Modules/ |
D | _struct.c | 13 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()
|
/external/python/cpython3/Modules/ |
D | _struct.c | 17 static PyTypeObject PyStructType; variable 49 #define PyStruct_Check(op) PyObject_TypeCheck(op, &PyStructType) 50 #define PyStruct_CheckExact(op) (Py_TYPE(op) == &PyStructType) 2003 PyTypeObject PyStructType = { variable 2075 s_object = PyObject_CallFunctionObjArgs((PyObject *)(&PyStructType), fmt, NULL); in cache_struct_converter() 2306 Py_TYPE(&PyStructType) = &PyType_Type; in PyInit__struct() 2307 if (PyType_Ready(&PyStructType) < 0) in PyInit__struct() 2362 Py_INCREF((PyObject*)&PyStructType); in PyInit__struct() 2363 PyModule_AddObject(m, "Struct", (PyObject*)&PyStructType); in PyInit__struct()
|