• Home
  • Raw
  • Download

Lines Matching refs:interp

31     PyInterpreterState *interp = PyThreadState_GET()->interp;  in PyCodec_Register()  local
32 if (interp->codec_search_path == NULL && _PyCodecRegistry_Init()) in PyCodec_Register()
42 return PyList_Append(interp->codec_search_path, search_function); in PyCodec_Register()
96 PyInterpreterState *interp; in _PyCodec_Lookup() local
105 interp = PyThreadState_GET()->interp; in _PyCodec_Lookup()
106 if (interp->codec_search_path == NULL && _PyCodecRegistry_Init()) in _PyCodec_Lookup()
118 result = PyDict_GetItem(interp->codec_search_cache, v); in _PyCodec_Lookup()
131 len = PyList_Size(interp->codec_search_path); in _PyCodec_Lookup()
144 func = PyList_GetItem(interp->codec_search_path, i); in _PyCodec_Lookup()
170 PyDict_SetItem(interp->codec_search_cache, v, result); in _PyCodec_Lookup()
565 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyCodec_RegisterError() local
566 if (interp->codec_search_path == NULL && _PyCodecRegistry_Init()) in PyCodec_RegisterError()
572 return PyDict_SetItemString(interp->codec_error_registry, in PyCodec_RegisterError()
583 PyInterpreterState *interp = PyThreadState_GET()->interp; in PyCodec_LookupError() local
584 if (interp->codec_search_path == NULL && _PyCodecRegistry_Init()) in PyCodec_LookupError()
589 handler = PyDict_GetItemString(interp->codec_error_registry, (char *)name); in PyCodec_LookupError()
1001 PyInterpreterState *interp = PyThreadState_GET()->interp; in _PyCodecRegistry_Init() local
1005 if (interp->codec_search_path != NULL) in _PyCodecRegistry_Init()
1008 interp->codec_search_path = PyList_New(0); in _PyCodecRegistry_Init()
1009 interp->codec_search_cache = PyDict_New(); in _PyCodecRegistry_Init()
1010 interp->codec_error_registry = PyDict_New(); in _PyCodecRegistry_Init()
1012 if (interp->codec_error_registry) { in _PyCodecRegistry_Init()
1025 if (interp->codec_search_path == NULL || in _PyCodecRegistry_Init()
1026 interp->codec_search_cache == NULL || in _PyCodecRegistry_Init()
1027 interp->codec_error_registry == NULL) in _PyCodecRegistry_Init()