mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 9.0.1102: complicated use of #ifdef
Problem: Complicated use of #ifdef. Solution: Simplify #ifdef use. (Ken Takata, closes #11745)
This commit is contained in:
@@ -1167,14 +1167,10 @@ Python3_Init(void)
|
|||||||
// Catch exit() called in Py_Initialize().
|
// Catch exit() called in Py_Initialize().
|
||||||
hook_py_exit();
|
hook_py_exit();
|
||||||
if (setjmp(exit_hook_jump_buf) == 0)
|
if (setjmp(exit_hook_jump_buf) == 0)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
Py_Initialize();
|
Py_Initialize();
|
||||||
#ifdef HOOK_EXIT
|
|
||||||
restore_py_exit();
|
restore_py_exit();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#ifdef HOOK_EXIT
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// exit() was called in Py_Initialize().
|
// exit() was called in Py_Initialize().
|
||||||
@@ -1182,6 +1178,8 @@ Python3_Init(void)
|
|||||||
emsg(_(e_critical_error_in_python3_initialization_check_your_installation));
|
emsg(_(e_critical_error_in_python3_initialization_check_your_installation));
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
Py_Initialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PY_VERSION_HEX < 0x03090000
|
#if PY_VERSION_HEX < 0x03090000
|
||||||
|
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1102,
|
||||||
/**/
|
/**/
|
||||||
1101,
|
1101,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user