Lines Matching refs:retobj
227 PyObject *retobj = NULL, *retstr = NULL, *tobj; in multibytecodec_encerror() local
307 retobj = call_error_callback(errors, buf->excobj); in multibytecodec_encerror()
308 if (retobj == NULL) in multibytecodec_encerror()
311 if (!PyTuple_Check(retobj) || PyTuple_GET_SIZE(retobj) != 2 || in multibytecodec_encerror()
312 !PyUnicode_Check((tobj = PyTuple_GET_ITEM(retobj, 0))) || in multibytecodec_encerror()
313 !_PyAnyInt_Check(PyTuple_GET_ITEM(retobj, 1))) { in multibytecodec_encerror()
337 newpos = PyInt_AsSsize_t(PyTuple_GET_ITEM(retobj, 1)); in multibytecodec_encerror()
349 Py_DECREF(retobj); in multibytecodec_encerror()
354 Py_XDECREF(retobj); in multibytecodec_encerror()
365 PyObject *retobj = NULL, *retuni = NULL; in multibytecodec_decerror() local
426 retobj = call_error_callback(errors, buf->excobj); in multibytecodec_decerror()
427 if (retobj == NULL) in multibytecodec_decerror()
430 if (!PyTuple_Check(retobj) || PyTuple_GET_SIZE(retobj) != 2 || in multibytecodec_decerror()
431 !PyUnicode_Check((retuni = PyTuple_GET_ITEM(retobj, 0))) || in multibytecodec_decerror()
432 !_PyAnyInt_Check(PyTuple_GET_ITEM(retobj, 1))) { in multibytecodec_decerror()
447 newpos = PyInt_AsSsize_t(PyTuple_GET_ITEM(retobj, 1)); in multibytecodec_decerror()
458 Py_DECREF(retobj); in multibytecodec_decerror()
462 Py_XDECREF(retobj); in multibytecodec_decerror()