Lines Matching refs:codec_search_path
37 if (interp->codec_search_path == NULL && _PyCodecRegistry_Init()) in PyCodec_Register()
47 return PyList_Append(interp->codec_search_path, search_function); in PyCodec_Register()
57 PyObject *codec_search_path = interp->codec_search_path; in PyCodec_Unregister() local
59 if (codec_search_path == NULL) { in PyCodec_Unregister()
63 assert(PyList_CheckExact(codec_search_path)); in PyCodec_Unregister()
64 Py_ssize_t n = PyList_GET_SIZE(codec_search_path); in PyCodec_Unregister()
66 PyObject *item = PyList_GET_ITEM(codec_search_path, i); in PyCodec_Unregister()
72 return PyList_SetSlice(codec_search_path, i, i+1, NULL); in PyCodec_Unregister()
134 if (interp->codec_search_path == NULL && _PyCodecRegistry_Init()) { in _PyCodec_Lookup()
159 const Py_ssize_t len = PyList_Size(interp->codec_search_path); in _PyCodec_Lookup()
173 func = PyList_GetItem(interp->codec_search_path, i); in _PyCodec_Lookup()
625 if (interp->codec_search_path == NULL && _PyCodecRegistry_Init()) in PyCodec_RegisterError()
643 if (interp->codec_search_path == NULL && _PyCodecRegistry_Init()) in PyCodec_LookupError()
1498 if (interp->codec_search_path != NULL) in _PyCodecRegistry_Init()
1501 interp->codec_search_path = PyList_New(0); in _PyCodecRegistry_Init()
1502 if (interp->codec_search_path == NULL) { in _PyCodecRegistry_Init()