Mercurial > vim
changeset 19846:4acb165ed0bc v8.2.0479
patch 8.2.0479: unloading shared libraries on exit has no purpose
Commit: https://github.com/vim/vim/commit/2027973b5be693577bea0731b50ea4904d19ea8b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 29 20:51:07 2020 +0200
patch 8.2.0479: unloading shared libraries on exit has no purpose
Problem: Unloading shared libraries on exit has no purpose.
Solution: Do not unload shared libraries on exit.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 29 Mar 2020 21:00:03 +0200 |
parents | 32787925de3c |
children | 8176228268cb |
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 src/version.c |
diffstat | 7 files changed, 3 insertions(+), 75 deletions(-) [+] |
line wrap: on
line diff
--- a/src/if_lua.c +++ b/src/if_lua.c @@ -398,16 +398,6 @@ static const luaV_Reg luaV_dll[] = { 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) { @@ -2121,9 +2111,6 @@ lua_end(void) { lua_close(L); L = NULL; -#ifdef DYNAMIC_LUA - end_dynamic_lua(); -#endif } }
--- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -762,7 +762,7 @@ perl_init(void) } /* - * perl_end(): clean up after ourselves + * Clean up after ourselves. */ void perl_end(void) @@ -777,13 +777,6 @@ perl_end(void) Perl_sys_term(); #endif } -#ifdef DYNAMIC_PERL - if (hPerlLib) - { - close_dll(hPerlLib); - hPerlLib = NULL; - } -#endif } /*
--- a/src/if_python.c +++ b/src/if_python.c @@ -655,19 +655,6 @@ static struct }; /* - * 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. @@ -889,7 +876,6 @@ python_end(void) # endif Py_Finalize(); } - end_dynamic_python(); #else if (Py_IsInitialized()) {
--- a/src/if_python3.c +++ b/src/if_python3.c @@ -635,19 +635,6 @@ py3__Py_XDECREF(PyObject *op) # 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. @@ -873,10 +860,6 @@ python3_end(void) Py_Finalize(); } -#ifdef DYNAMIC_PYTHON3 - end_dynamic_python3(); -#endif - --recurse; }
--- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -736,19 +736,6 @@ static struct }; /* - * 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. @@ -797,9 +784,6 @@ ruby_enabled(int verbose) void ruby_end(void) { -#ifdef DYNAMIC_RUBY - end_dynamic_ruby(); -#endif } void