summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pystate.h2
-rw-r--r--Include/pydebug.h1
-rw-r--r--Include/pystate.h13
3 files changed, 14 insertions, 2 deletions
diff --git a/Include/internal/pystate.h b/Include/internal/pystate.h
index 516f829..67b4a51 100644
--- a/Include/internal/pystate.h
+++ b/Include/internal/pystate.h
@@ -90,7 +90,7 @@ PyAPI_FUNC(_PyInitError) _PyRuntime_Initialize(void);
/* Other */
-PyAPI_FUNC(void) _PyInterpreterState_Enable(_PyRuntimeState *);
+PyAPI_FUNC(_PyInitError) _PyInterpreterState_Enable(_PyRuntimeState *);
#ifdef __cplusplus
}
diff --git a/Include/pydebug.h b/Include/pydebug.h
index 6e23a89..d3b9596 100644
--- a/Include/pydebug.h
+++ b/Include/pydebug.h
@@ -25,6 +25,7 @@ PyAPI_DATA(int) Py_HashRandomizationFlag;
PyAPI_DATA(int) Py_IsolatedFlag;
#ifdef MS_WINDOWS
+PyAPI_DATA(int) Py_LegacyWindowsFSEncodingFlag;
PyAPI_DATA(int) Py_LegacyWindowsStdioFlag;
#endif
diff --git a/Include/pystate.h b/Include/pystate.h
index 9381585..4401225 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -30,9 +30,20 @@ typedef struct {
unsigned long hash_seed;
int _disable_importlib; /* Needed by freeze_importlib */
char *allocator;
+ int faulthandler;
+ int tracemalloc; /* Number of saved frames, 0=don't trace */
+ int importtime; /* -X importtime */
} _PyCoreConfig;
-#define _PyCoreConfig_INIT {0, -1, 0, 0, NULL}
+#define _PyCoreConfig_INIT \
+ {.ignore_environment = 0, \
+ .use_hash_seed = -1, \
+ .hash_seed = 0, \
+ ._disable_importlib = 0, \
+ .allocator = NULL, \
+ .faulthandler = 0, \
+ .tracemalloc = 0, \
+ .importtime = 0}
/* Placeholders while working on the new configuration API
*