Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/cjkcodecs/
Dcjkcodecs.h263 PyObject *codecobj, *r, *cofunc; in getcodec() local
290 codecobj = PyCapsule_New((void *)codec, PyMultibyteCodec_CAPSULE_NAME, NULL); in getcodec()
291 if (codecobj == NULL) in getcodec()
294 r = PyObject_CallOneArg(cofunc, codecobj); in getcodec()
295 Py_DECREF(codecobj); in getcodec()
/external/python/cpython2/Modules/cjkcodecs/
Dcjkcodecs.h260 PyObject *codecobj, *r, *cofunc; in getcodec() local
285 codecobj = PyCapsule_New((void *)codec, PyMultibyteCodec_CAPSULE_NAME, NULL); in getcodec()
286 if (codecobj == NULL) in getcodec()
289 r = PyObject_CallFunctionObjArgs(cofunc, codecobj, NULL); in getcodec()
290 Py_DECREF(codecobj); in getcodec()