summaryrefslogtreecommitdiffstats
path: root/Include/pystate.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/pystate.h')
-rw-r--r--Include/pystate.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index 2081ff5..a3840c9 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -25,15 +25,17 @@ typedef PyObject* (*_PyFrameEvalFunction)(struct _frame *, int);
typedef struct {
- int ignore_environment;
- int use_hash_seed;
+ int ignore_environment; /* -E */
+ int use_hash_seed; /* PYTHONHASHSEED=x */
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 */
+ const char *allocator; /* Memory allocator: _PyMem_SetupAllocators() */
int dev_mode; /* -X dev */
+ int faulthandler; /* -X faulthandler */
+ int tracemalloc; /* -X tracemalloc=N */
+ int import_time; /* -X importtime */
+ int show_ref_count; /* -X showrefcount */
+ int show_alloc_count; /* -X showalloccount */
} _PyCoreConfig;
#define _PyCoreConfig_INIT \
@@ -42,10 +44,12 @@ typedef struct {
.hash_seed = 0, \
._disable_importlib = 0, \
.allocator = NULL, \
+ .dev_mode = 0, \
.faulthandler = 0, \
.tracemalloc = 0, \
- .importtime = 0, \
- .dev_mode = 0}
+ .import_time = 0, \
+ .show_ref_count = 0, \
+ .show_alloc_count = 0}
/* Placeholders while working on the new configuration API
*