• Home
  • Raw
  • Download

Lines Matching refs:s_object

1820     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
1863 if (s_object == NULL) in calcsize()
1865 n = ((PyStructObject *)s_object)->s_size; in calcsize()
1866 Py_DECREF(s_object); in calcsize()
1876 PyObject *s_object, *fmt, *newargs, *result; in pack() local
1888 s_object = cache_struct(fmt); in pack()
1889 if (s_object == NULL) { in pack()
1893 result = s_pack(s_object, newargs); in pack()
1895 Py_DECREF(s_object); in pack()
1906 PyObject *s_object, *fmt, *newargs, *result; in pack_into() local
1918 s_object = cache_struct(fmt); in pack_into()
1919 if (s_object == NULL) { in pack_into()
1923 result = s_pack_into(s_object, newargs); in pack_into()
1925 Py_DECREF(s_object); in pack_into()
1936 PyObject *s_object, *fmt, *inputstr, *result; in unpack() local
1941 s_object = cache_struct(fmt); in unpack()
1942 if (s_object == NULL) in unpack()
1944 result = s_unpack(s_object, inputstr); in unpack()
1945 Py_DECREF(s_object); in unpack()
1956 PyObject *s_object, *fmt, *newargs, *result; in unpack_from() local
1968 s_object = cache_struct(fmt); in unpack_from()
1969 if (s_object == NULL) { in unpack_from()
1973 result = s_unpack_from(s_object, newargs, kwds); in unpack_from()
1975 Py_DECREF(s_object); in unpack_from()