changeset 31539:a337bd6f7603 v9.0.1102

patch 9.0.1102: complicated use of #ifdef Commit: https://github.com/vim/vim/commit/a7fbaa43b7dbea55b2a48093f68abf819bc71682 Author: K.Takata <kentkt@csc.jp> Date: Mon Dec 26 14:46:51 2022 +0000 patch 9.0.1102: complicated use of #ifdef Problem: Complicated use of #ifdef. Solution: Simplify #ifdef use. (Ken Takata, closes https://github.com/vim/vim/issues/11745)
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Dec 2022 16:00:04 +0100
parents 57254edfb65b
children f2aa67688f98
files src/if_python3.c src/version.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -1167,14 +1167,10 @@ Python3_Init(void)
 	// Catch exit() called in Py_Initialize().
 	hook_py_exit();
 	if (setjmp(exit_hook_jump_buf) == 0)
-#endif
 	{
 	    Py_Initialize();
-#ifdef HOOK_EXIT
 	    restore_py_exit();
-#endif
 	}
-#ifdef HOOK_EXIT
 	else
 	{
 	    // exit() was called in Py_Initialize().
@@ -1182,6 +1178,8 @@ Python3_Init(void)
 	    emsg(_(e_critical_error_in_python3_initialization_check_your_installation));
 	    goto fail;
 	}
+#else
+	Py_Initialize();
 #endif
 
 #if PY_VERSION_HEX < 0x03090000
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1102,
+/**/
     1101,
 /**/
     1100,