diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-05-17 21:54:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-17 21:54:00 (GMT) |
commit | 871ff77c1cd334a141d52b0d003c080a1928731e (patch) | |
tree | 0c7c37e1d28f52fc8967bc3d85da5bb68a13fa8a /Modules | |
parent | 12083284c54be25abadd85781d36b63731dc1f0c (diff) | |
download | cpython-871ff77c1cd334a141d52b0d003c080a1928731e.zip cpython-871ff77c1cd334a141d52b0d003c080a1928731e.tar.gz cpython-871ff77c1cd334a141d52b0d003c080a1928731e.tar.bz2 |
bpo-36763: Add _PyInitError functions (GH-13395)
* Add _PyInitError functions:
* _PyInitError_Ok()
* _PyInitError_Error()
* _PyInitError_NoMemory()
* _PyInitError_Exit()
* _PyInitError_IsError()
* _PyInitError_IsExit()
* _PyInitError_Failed()
* frozenmain.c and _testembed.c now use functions rather than macros.
* Move _Py_INIT_xxx() macros to the internal API.
* Move _PyWstrList_INIT macro to the internal API.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/faulthandler.c | 1 | ||||
-rw-r--r-- | Modules/getpath.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index 63a9b91..2083a03 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -1,4 +1,5 @@ #include "Python.h" +#include "pycore_coreconfig.h" #include "pythread.h" #include <signal.h> #include <object.h> diff --git a/Modules/getpath.c b/Modules/getpath.c index 34357e4..3dcfcef 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -1,6 +1,7 @@ /* Return the initial module search path. */ #include "Python.h" +#include "pycore_coreconfig.h" #include "osdefs.h" #include "pycore_fileutils.h" #include "pycore_pathconfig.h" |