summaryrefslogtreecommitdiff
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-12-20 01:41:59 +0100
committerGitHub <noreply@github.com>2017-12-20 01:41:59 +0100
commit19760863623b636a63ccf649107d9504c6465a92 (patch)
tree24af9006d93fb8cb5321c0766394f78e2b17565c /Python/pylifecycle.c
parentc4bca951065f4b2b6833f6ce7a0721e863e2343e (diff)
downloadcpython-git-19760863623b636a63ccf649107d9504c6465a92.tar.gz
bpo-32030: Cleanup pymain_main() (#4935)
* Reorganize pymain_main() to make the code more flat * Clear configurations before pymain_update_sys_path() * Mark Py_FatalError() and _Py_FatalInitError() with _Py_NO_RETURN * Replace _PyMain.run_code variable with a new RUN_CODE() macro * Move _PyMain.cf into a local variable in pymain_run_python()
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 678fbb63cc..090694f7ca 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -2003,13 +2003,13 @@ exit:
}
}
-void
+void _Py_NO_RETURN
Py_FatalError(const char *msg)
{
fatal_error(NULL, msg, -1);
}
-void
+void _Py_NO_RETURN
_Py_FatalInitError(_PyInitError err)
{
/* On "user" error: exit with status 1.