0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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.
This commit is contained in:
Bram Moolenaar 2020-03-29 20:51:07 +02:00
parent 5908fdf72f
commit 2027973b5b
7 changed files with 3 additions and 75 deletions

View File

@ -398,16 +398,6 @@ static const luaV_Reg luaV_dll[] = {
static HANDLE hinstLua = NULL; static HANDLE hinstLua = NULL;
static void
end_dynamic_lua(void)
{
if (hinstLua)
{
close_dll(hinstLua);
hinstLua = 0;
}
}
static int static int
lua_link_init(char *libname, int verbose) lua_link_init(char *libname, int verbose)
{ {
@ -2121,9 +2111,6 @@ lua_end(void)
{ {
lua_close(L); lua_close(L);
L = NULL; L = NULL;
#ifdef DYNAMIC_LUA
end_dynamic_lua();
#endif
} }
} }

View File

@ -762,7 +762,7 @@ perl_init(void)
} }
/* /*
* perl_end(): clean up after ourselves * Clean up after ourselves.
*/ */
void void
perl_end(void) perl_end(void)
@ -777,13 +777,6 @@ perl_end(void)
Perl_sys_term(); Perl_sys_term();
#endif #endif
} }
#ifdef DYNAMIC_PERL
if (hPerlLib)
{
close_dll(hPerlLib);
hPerlLib = NULL;
}
#endif
} }
/* /*

View File

@ -654,19 +654,6 @@ static struct
{"", NULL}, {"", NULL},
}; };
/*
* Free python.dll
*/
static void
end_dynamic_python(void)
{
if (hinstPython)
{
close_dll(hinstPython);
hinstPython = 0;
}
}
/* /*
* Load library and get all pointers. * Load library and get all pointers.
* Parameter 'libname' provides name of DLL. * Parameter 'libname' provides name of DLL.
@ -889,7 +876,6 @@ python_end(void)
# endif # endif
Py_Finalize(); Py_Finalize();
} }
end_dynamic_python();
#else #else
if (Py_IsInitialized()) if (Py_IsInitialized())
{ {

View File

@ -634,19 +634,6 @@ py3__Py_XDECREF(PyObject *op)
# define Py_XDECREF(op) py3__Py_XDECREF(_PyObject_CAST(op)) # define Py_XDECREF(op) py3__Py_XDECREF(_PyObject_CAST(op))
# endif # endif
/*
* Free python.dll
*/
static void
end_dynamic_python3(void)
{
if (hinstPy3 != 0)
{
close_dll(hinstPy3);
hinstPy3 = 0;
}
}
/* /*
* Load library and get all pointers. * Load library and get all pointers.
* Parameter 'libname' provides name of DLL. * Parameter 'libname' provides name of DLL.
@ -873,10 +860,6 @@ python3_end(void)
Py_Finalize(); Py_Finalize();
} }
#ifdef DYNAMIC_PYTHON3
end_dynamic_python3();
#endif
--recurse; --recurse;
} }

View File

@ -735,19 +735,6 @@ static struct
{"", NULL}, {"", NULL},
}; };
/*
* Free ruby.dll
*/
static void
end_dynamic_ruby(void)
{
if (hinstRuby)
{
close_dll(hinstRuby);
hinstRuby = NULL;
}
}
/* /*
* Load library and get all pointers. * Load library and get all pointers.
* Parameter 'libname' provides name of DLL. * Parameter 'libname' provides name of DLL.
@ -797,9 +784,6 @@ ruby_enabled(int verbose)
void void
ruby_end(void) ruby_end(void)
{ {
#ifdef DYNAMIC_RUBY
end_dynamic_ruby();
#endif
} }
void void

View File

@ -280,13 +280,6 @@ tcl_enabled(int verbose)
void void
tcl_end(void) tcl_end(void)
{ {
#ifdef DYNAMIC_TCL
if (hTclLib)
{
close_dll(hTclLib);
hTclLib = NULL;
}
#endif
} }
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -738,6 +738,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 */
/**/
479,
/**/ /**/
478, 478,
/**/ /**/