Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/clinic/
D_struct.c.h198 calcsize_impl(PyObject *module, PyStructObject *s_object);
204 PyStructObject *s_object = NULL; in calcsize() local
207 if (!cache_struct_converter(arg, &s_object)) { in calcsize()
210 _return_value = calcsize_impl(module, s_object); in calcsize()
218 Py_XDECREF(s_object); in calcsize()
237 unpack_impl(PyObject *module, PyStructObject *s_object, Py_buffer *buffer);
243 PyStructObject *s_object = NULL; in unpack() local
249 if (!cache_struct_converter(args[0], &s_object)) { in unpack()
259 return_value = unpack_impl(module, s_object, &buffer); in unpack()
263 Py_XDECREF(s_object); in unpack()
[all …]
/external/python/cpython2/Modules/
D_struct.c1820 PyObject * s_object; in cache_struct() local
1828 s_object = PyDict_GetItem(cache, fmt); in cache_struct()
1829 if (s_object != NULL) { in cache_struct()
1830 Py_INCREF(s_object); in cache_struct()
1831 return s_object; in cache_struct()
1834 s_object = PyObject_CallFunctionObjArgs((PyObject *)(&PyStructType), fmt, NULL); in cache_struct()
1835 if (s_object != NULL) { in cache_struct()
1839 if (PyDict_SetItem(cache, fmt, s_object) == -1) in cache_struct()
1842 return s_object; in cache_struct()
1862 PyObject *s_object = cache_struct(fmt); in calcsize() local
[all …]
/external/python/cpython3/Modules/
D_struct.c2088 PyObject * s_object; in cache_struct_converter() local
2102 s_object = PyDict_GetItemWithError(cache, fmt); in cache_struct_converter()
2103 if (s_object != NULL) { in cache_struct_converter()
2104 Py_INCREF(s_object); in cache_struct_converter()
2105 *ptr = (PyStructObject *)s_object; in cache_struct_converter()
2112 s_object = PyObject_CallOneArg(_structmodulestate_global->PyStructType, fmt); in cache_struct_converter()
2113 if (s_object != NULL) { in cache_struct_converter()
2117 if (PyDict_SetItem(cache, fmt, s_object) == -1) in cache_struct_converter()
2119 *ptr = (PyStructObject *)s_object; in cache_struct_converter()
2150 calcsize_impl(PyObject *module, PyStructObject *s_object) in calcsize_impl() argument
[all …]