The global variable has been replaced by a new thread local variable
"pkgcontext" in Python/import.c.
Modules are added there and looked up in _imp.find_extension(). */
struct _Py_hashtable_t *hashtable;
} extensions;
- /* Package context -- the full module name for package imports */
- const char * pkgcontext;
};
struct _import_state {
#define LAST_MODULE_INDEX _PyRuntime.imports.last_module_index
#define EXTENSIONS _PyRuntime.imports.extensions
-#define PKGCONTEXT (_PyRuntime.imports.pkgcontext)
-
/*******************************/
/* interpreter import state */
*/
static _Py_thread_local const char *pkgcontext = NULL;
-# undef PKGCONTEXT
# define PKGCONTEXT pkgcontext
const char *