diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-09-30 22:46:42 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2019-09-30 22:46:42 (GMT) |
commit | bdace21b769998396d0ccc8da99a8ca9b507bfdf (patch) | |
tree | de149589d8dd498ddf3574e9d9551951d3f7e79b /Include/cpython | |
parent | 92ca515ee1efbdc51678e12d105ad642c9b9cc13 (diff) | |
download | cpython-bdace21b769998396d0ccc8da99a8ca9b507bfdf.zip cpython-bdace21b769998396d0ccc8da99a8ca9b507bfdf.tar.gz cpython-bdace21b769998396d0ccc8da99a8ca9b507bfdf.tar.bz2 |
bpo-38304: Remove PyConfig.struct_size (GH-16500)
For now, we'll rely on the fact that the config structures aren't covered by the stable ABI.
We may revisit this in the future if we further explore the idea of offering a stable embedding API.
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/initconfig.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Include/cpython/initconfig.h b/Include/cpython/initconfig.h index 8ce5622..25e02ce 100644 --- a/Include/cpython/initconfig.h +++ b/Include/cpython/initconfig.h @@ -45,10 +45,6 @@ PyAPI_FUNC(PyStatus) PyWideStringList_Insert(PyWideStringList *list, /* --- PyPreConfig ----------------------------------------------- */ typedef struct { - /* Size of the structure in bytes: must be initialized to - sizeof(PyPreConfig). Field used for API and ABI compatibility. */ - size_t struct_size; - int _config_init; /* _PyConfigInitEnum value */ /* Parse Py_PreInitializeFromBytesArgs() arguments? @@ -124,17 +120,13 @@ typedef struct { int allocator; } PyPreConfig; -PyAPI_FUNC(PyStatus) PyPreConfig_InitPythonConfig(PyPreConfig *config); -PyAPI_FUNC(PyStatus) PyPreConfig_InitIsolatedConfig(PyPreConfig *config); +PyAPI_FUNC(void) PyPreConfig_InitPythonConfig(PyPreConfig *config); +PyAPI_FUNC(void) PyPreConfig_InitIsolatedConfig(PyPreConfig *config); /* --- PyConfig ---------------------------------------------- */ typedef struct { - /* Size of the structure in bytes: must be initialized to - sizeof(PyConfig). Field used for API and ABI compatibility. */ - size_t struct_size; - int _config_init; /* _PyConfigInitEnum value */ int isolated; /* Isolated mode? see PyPreConfig.isolated */ |