diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-01 16:52:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-01 16:52:56 (GMT) |
commit | 91b9ecf82c3287b45f39158c5134a87414ff26bc (patch) | |
tree | 0b5f267a09b1300eca85d7480d200609aadba746 /Include/cpython/coreconfig.h | |
parent | c991f2415d4eef663039a83125aa6aad81672680 (diff) | |
download | cpython-91b9ecf82c3287b45f39158c5134a87414ff26bc.zip cpython-91b9ecf82c3287b45f39158c5134a87414ff26bc.tar.gz cpython-91b9ecf82c3287b45f39158c5134a87414ff26bc.tar.bz2 |
bpo-36142: Add preconfig.c (GH-12128)
* Add _PyArgv_Decode() function
* Move _Py_ClearFileSystemEncoding() and _Py_SetFileSystemEncoding()
to preconfig.c.
Diffstat (limited to 'Include/cpython/coreconfig.h')
-rw-r--r-- | Include/cpython/coreconfig.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Include/cpython/coreconfig.h b/Include/cpython/coreconfig.h index 8109d4a..e3ebf73 100644 --- a/Include/cpython/coreconfig.h +++ b/Include/cpython/coreconfig.h @@ -5,7 +5,7 @@ extern "C" { #endif -/* _PyArgv */ +/* --- _PyArgv ---------------------------------------------------- */ typedef struct { int argc; @@ -15,7 +15,7 @@ typedef struct { } _PyArgv; -/* _PyInitError */ +/* --- _PyInitError ----------------------------------------------- */ typedef struct { const char *prefix; @@ -46,7 +46,7 @@ typedef struct { #define _Py_INIT_FAILED(err) \ (err.msg != NULL || err.exitcode != -1) -/* _PyCoreConfig */ +/* --- _PyCoreConfig ---------------------------------------------- */ typedef struct { /* Install signal handlers? Yes by default. */ @@ -364,7 +364,8 @@ typedef struct { /* Note: _PyCoreConfig_INIT sets other fields to 0/NULL */ -/* Functions used for testing */ +/* --- Function used for testing ---------------------------------- */ + PyAPI_FUNC(PyObject *) _Py_GetGlobalVariablesAsDict(void); PyAPI_FUNC(PyObject *) _PyCoreConfig_AsDict(const _PyCoreConfig *config); |