]> granicus.if.org Git - vim/commitdiff
patch 8.2.0479: unloading shared libraries on exit has no purpose v8.2.0479
authorBram Moolenaar <Bram@vim.org>
Sun, 29 Mar 2020 18:51:07 +0000 (20:51 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 29 Mar 2020 18:51:07 +0000 (20:51 +0200)
Problem:    Unloading shared libraries on exit has no purpose.
Solution:   Do not unload shared libraries on exit.

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

index 8c1638a3a2dd0dc19c0a8890754828ac743fede5..19842912fbbaff4a445c951532301223c3627b24 100644 (file)
@@ -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
     }
 }
 
index 12e1a227e181900b90426e347254418e55261941..3af309a65df5f3d8640264b26840fd1498fbc56a 100644 (file)
@@ -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
 }
 
 /*
index 7b220708522a6652fe25eee5e93f49721cd7e153..394ed3e4a5cefa1039d91e5b11606c75d5024491 100644 (file)
@@ -654,19 +654,6 @@ static struct
     {"", NULL},
 };
 
-/*
- * 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.
@@ -889,7 +876,6 @@ python_end(void)
 # endif
        Py_Finalize();
     }
-    end_dynamic_python();
 #else
     if (Py_IsInitialized())
     {
index 2985e9c894b408a5875a365efe21262c3a4bcaac..ecca163b092283a6b6849ca3766189da49f90725 100644 (file)
@@ -634,19 +634,6 @@ py3__Py_XDECREF(PyObject *op)
 #  define Py_XDECREF(op) py3__Py_XDECREF(_PyObject_CAST(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.
@@ -873,10 +860,6 @@ python3_end(void)
        Py_Finalize();
     }
 
-#ifdef DYNAMIC_PYTHON3
-    end_dynamic_python3();
-#endif
-
     --recurse;
 }
 
index a4a59f6bda762767f463b3b89be814af0251324e..80481e7d24b20263d05f660f3f6f180c0839c529 100644 (file)
@@ -735,19 +735,6 @@ static struct
     {"", NULL},
 };
 
-/*
- * 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.
@@ -797,9 +784,6 @@ ruby_enabled(int verbose)
     void
 ruby_end(void)
 {
-#ifdef DYNAMIC_RUBY
-    end_dynamic_ruby();
-#endif
 }
 
     void
index c4f85fa714d15d99320045ca147456f298b44817..45d880bdad9054a10d665ce51230b34439430e29 100644 (file)
@@ -280,13 +280,6 @@ tcl_enabled(int verbose)
     void
 tcl_end(void)
 {
-#ifdef DYNAMIC_TCL
-    if (hTclLib)
-    {
-       close_dll(hTclLib);
-       hTclLib = NULL;
-    }
-#endif
 }
 
 /////////////////////////////////////////////////////////////////////////////
index 402ed4053885f74e87f97b8d4b645ebdc8f9f890..f1d74d87fb80bbe169d52edd3511f5be2ceb2b6b 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    479,
 /**/
     478,
 /**/