Unverified Kaydet (Commit) 19760863 authored tarafından Victor Stinner's avatar Victor Stinner Kaydeden (comit) GitHub

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()
üst c4bca951
This diff is collapsed.
...@@ -2003,13 +2003,13 @@ exit: ...@@ -2003,13 +2003,13 @@ exit:
} }
} }
void void _Py_NO_RETURN
Py_FatalError(const char *msg) Py_FatalError(const char *msg)
{ {
fatal_error(NULL, msg, -1); fatal_error(NULL, msg, -1);
} }
void void _Py_NO_RETURN
_Py_FatalInitError(_PyInitError err) _Py_FatalInitError(_PyInitError err)
{ {
/* On "user" error: exit with status 1. /* On "user" error: exit with status 1.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment