Patch 8.2.0479
Problem: Unloading shared libraries on exit has no purpose.
Solution: Do not unload shared libraries on exit.
Files: src/if_lua.c, src/if_perl.xs, src/if_python.c, src/if_python3.c,
src/if_ruby.c, src/if_tcl.c
*** ../vim-8.2.0478/src/if_lua.c 2020-02-11 22:37:32.081350407 +0100
--- src/if_lua.c 2020-03-29 20:45:32.163038403 +0200
***************
*** 398,413 ****
static HANDLE hinstLua = NULL;
- static void
- end_dynamic_lua(void)
- {
- if (hinstLua)
- {
- close_dll(hinstLua);
- hinstLua = 0;
- }
- }
-
static int
lua_link_init(char *libname, int verbose)
{
--- 398,403 ----
***************
*** 2121,2129 ****
{
lua_close(L);
L = NULL;
- #ifdef DYNAMIC_LUA
- end_dynamic_lua();
- #endif
}
}
--- 2111,2116 ----
*** ../vim-8.2.0478/src/if_perl.xs 2020-01-26 21:59:25.624718145 +0100
--- src/if_perl.xs 2020-03-29 20:46:39.426780291 +0200
***************
*** 762,768 ****
}
/*
! * perl_end(): clean up after ourselves
*/
void
perl_end(void)
--- 762,768 ----
}
/*
! * Clean up after ourselves.
*/
void
perl_end(void)
***************
*** 777,789 ****
Perl_sys_term();
#endif
}
- #ifdef DYNAMIC_PERL
- if (hPerlLib)
- {
- close_dll(hPerlLib);
- hPerlLib = NULL;
- }
- #endif
}
/*
--- 777,782 ----
*** ../vim-8.2.0478/src/if_python.c 2019-12-04 21:17:47.000000000 +0100
--- src/if_python.c 2020-03-29 20:47:13.626649641 +0200
***************
*** 655,673 ****
};
/*
- * Free python.dll
- */
- static void
- end_dynamic_python(void)
- {
- if (hinstPython)
- {
- close_dll(hinstPython);
- hinstPython = 0;
- }
- }
-
- /*
* Load library and get all pointers.
* Parameter 'libname' provides name of DLL.
* Return OK or FAIL.
--- 655,660 ----
***************
*** 889,895 ****
# endif
Py_Finalize();
}
- end_dynamic_python();
#else
if (Py_IsInitialized())
{
--- 876,881 ----
*** ../vim-8.2.0478/src/if_python3.c 2020-03-04 22:06:03.645834481 +0100
--- src/if_python3.c 2020-03-29 20:47:47.606520163 +0200
***************
*** 635,653 ****
# endif
/*
- * Free python.dll
- */
- static void
- end_dynamic_python3(void)
- {
- if (hinstPy3 != 0)
- {
- close_dll(hinstPy3);
- hinstPy3 = 0;
- }
- }
-
- /*
* Load library and get all pointers.
* Parameter 'libname' provides name of DLL.
* Return OK or FAIL.
--- 635,640 ----
***************
*** 873,882 ****
Py_Finalize();
}
- #ifdef DYNAMIC_PYTHON3
- end_dynamic_python3();
- #endif
-
--recurse;
}
--- 860,865 ----
*** ../vim-8.2.0478/src/if_ruby.c 2020-02-22 15:00:50.646459120 +0100
--- src/if_ruby.c 2020-03-29 20:49:28.042139190 +0200
***************
*** 736,754 ****
};
/*
- * Free ruby.dll
- */
- static void
- end_dynamic_ruby(void)
- {
- if (hinstRuby)
- {
- close_dll(hinstRuby);
- hinstRuby = NULL;
- }
- }
-
- /*
* Load library and get all pointers.
* Parameter 'libname' provides name of DLL.
* Return OK or FAIL.
--- 736,741 ----
***************
*** 797,805 ****
void
ruby_end(void)
{
- #ifdef DYNAMIC_RUBY
- end_dynamic_ruby();
- #endif
}
void
--- 784,789 ----
*** ../vim-8.2.0478/src/if_tcl.c 2019-12-04 21:24:01.000000000 +0100
--- src/if_tcl.c 2020-03-29 20:48:28.210365846 +0200
***************
*** 280,292 ****
void
tcl_end(void)
{
- #ifdef DYNAMIC_TCL
- if (hTclLib)
- {
- close_dll(hTclLib);
- hTclLib = NULL;
- }
- #endif
}
/////////////////////////////////////////////////////////////////////////////
--- 280,285 ----
*** ../vim-8.2.0478/src/version.c 2020-03-29 20:08:41.147942551 +0200
--- src/version.c 2020-03-29 20:50:04.418001786 +0200
***************
*** 740,741 ****
--- 740,743 ----
{ /* Add new patch number below this line */
+ /**/
+ 479,
/**/
--
Two cows are standing together in a field. One asks the other:
"So what do you think about this Mad Cow Disease?"
The other replies: "That doesn't concern me. I'm a helicopter."
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202003291851.02TIplrF015489%40masaka.moolenaar.net.