Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/cjkcodecs/
Dcjkcodecs.h248 static PyObject *cofunc = NULL; in getmultibytecodec() local
250 if (cofunc == NULL) { in getmultibytecodec()
254 cofunc = PyObject_GetAttrString(mod, "__create_codec"); in getmultibytecodec()
257 return cofunc; in getmultibytecodec()
263 PyObject *codecobj, *r, *cofunc; in getcodec() local
276 cofunc = getmultibytecodec(); in getcodec()
277 if (cofunc == NULL) in getcodec()
294 r = PyObject_CallOneArg(cofunc, codecobj); in getcodec()
/external/python/cpython2/Modules/cjkcodecs/
Dcjkcodecs.h245 static PyObject *cofunc = NULL; in getmultibytecodec() local
247 if (cofunc == NULL) { in getmultibytecodec()
251 cofunc = PyObject_GetAttrString(mod, "__create_codec"); in getmultibytecodec()
254 return cofunc; in getmultibytecodec()
260 PyObject *codecobj, *r, *cofunc; in getcodec() local
270 cofunc = getmultibytecodec(); in getcodec()
271 if (cofunc == NULL) in getcodec()
289 r = PyObject_CallFunctionObjArgs(cofunc, codecobj, NULL); in getcodec()