bpo-22257: Private C-API for core runtime initialization (PEP 432). (#1772)

(patch by Nick Coghlan)
This commit is contained in:
Eric Snow 2017-05-23 21:46:51 -07:00 committed by GitHub
parent c842efc6ae
commit 1abcf6700b
5 changed files with 224 additions and 62 deletions

View file

@ -23,6 +23,16 @@ typedef struct _is PyInterpreterState;
#else
typedef PyObject* (*_PyFrameEvalFunction)(struct _frame *, int);
typedef struct {
int ignore_environment;
int use_hash_seed;
unsigned long hash_seed;
int _disable_importlib; /* Needed by freeze_importlib */
} _PyCoreConfig;
#define _PyCoreConfig_INIT {0, -1, 0, 0}
typedef struct _is {
struct _is *next;
@ -42,6 +52,7 @@ typedef struct _is {
int codecs_initialized;
int fscodec_initialized;
_PyCoreConfig core_config;
#ifdef HAVE_DLOPEN
int dlopenflags;
#endif