• R/O
  • SSH

vim: 提交

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

修訂4acb165ed0bc7ce5a8a13deea6c634c830f24e10 (tree)
時間2020-03-30 04:00:03
作者Bram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

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.

Change Summary

差異

diff -r 32787925de3c -r 4acb165ed0bc src/if_lua.c
--- a/src/if_lua.c Sun Mar 29 20:15:04 2020 +0200
+++ b/src/if_lua.c Sun Mar 29 21:00:03 2020 +0200
@@ -398,16 +398,6 @@
398398
399399 static HANDLE hinstLua = NULL;
400400
401- static void
402-end_dynamic_lua(void)
403-{
404- if (hinstLua)
405- {
406- close_dll(hinstLua);
407- hinstLua = 0;
408- }
409-}
410-
411401 static int
412402 lua_link_init(char *libname, int verbose)
413403 {
@@ -2121,9 +2111,6 @@
21212111 {
21222112 lua_close(L);
21232113 L = NULL;
2124-#ifdef DYNAMIC_LUA
2125- end_dynamic_lua();
2126-#endif
21272114 }
21282115 }
21292116
diff -r 32787925de3c -r 4acb165ed0bc src/if_perl.xs
--- a/src/if_perl.xs Sun Mar 29 20:15:04 2020 +0200
+++ b/src/if_perl.xs Sun Mar 29 21:00:03 2020 +0200
@@ -762,7 +762,7 @@
762762 }
763763
764764 /*
765- * perl_end(): clean up after ourselves
765+ * Clean up after ourselves.
766766 */
767767 void
768768 perl_end(void)
@@ -777,13 +777,6 @@
777777 Perl_sys_term();
778778 #endif
779779 }
780-#ifdef DYNAMIC_PERL
781- if (hPerlLib)
782- {
783- close_dll(hPerlLib);
784- hPerlLib = NULL;
785- }
786-#endif
787780 }
788781
789782 /*
diff -r 32787925de3c -r 4acb165ed0bc src/if_python.c
--- a/src/if_python.c Sun Mar 29 20:15:04 2020 +0200
+++ b/src/if_python.c Sun Mar 29 21:00:03 2020 +0200
@@ -655,19 +655,6 @@
655655 };
656656
657657 /*
658- * Free python.dll
659- */
660- static void
661-end_dynamic_python(void)
662-{
663- if (hinstPython)
664- {
665- close_dll(hinstPython);
666- hinstPython = 0;
667- }
668-}
669-
670-/*
671658 * Load library and get all pointers.
672659 * Parameter 'libname' provides name of DLL.
673660 * Return OK or FAIL.
@@ -889,7 +876,6 @@
889876 # endif
890877 Py_Finalize();
891878 }
892- end_dynamic_python();
893879 #else
894880 if (Py_IsInitialized())
895881 {
diff -r 32787925de3c -r 4acb165ed0bc src/if_python3.c
--- a/src/if_python3.c Sun Mar 29 20:15:04 2020 +0200
+++ b/src/if_python3.c Sun Mar 29 21:00:03 2020 +0200
@@ -635,19 +635,6 @@
635635 # endif
636636
637637 /*
638- * Free python.dll
639- */
640- static void
641-end_dynamic_python3(void)
642-{
643- if (hinstPy3 != 0)
644- {
645- close_dll(hinstPy3);
646- hinstPy3 = 0;
647- }
648-}
649-
650-/*
651638 * Load library and get all pointers.
652639 * Parameter 'libname' provides name of DLL.
653640 * Return OK or FAIL.
@@ -873,10 +860,6 @@
873860 Py_Finalize();
874861 }
875862
876-#ifdef DYNAMIC_PYTHON3
877- end_dynamic_python3();
878-#endif
879-
880863 --recurse;
881864 }
882865
diff -r 32787925de3c -r 4acb165ed0bc src/if_ruby.c
--- a/src/if_ruby.c Sun Mar 29 20:15:04 2020 +0200
+++ b/src/if_ruby.c Sun Mar 29 21:00:03 2020 +0200
@@ -736,19 +736,6 @@
736736 };
737737
738738 /*
739- * Free ruby.dll
740- */
741- static void
742-end_dynamic_ruby(void)
743-{
744- if (hinstRuby)
745- {
746- close_dll(hinstRuby);
747- hinstRuby = NULL;
748- }
749-}
750-
751-/*
752739 * Load library and get all pointers.
753740 * Parameter 'libname' provides name of DLL.
754741 * Return OK or FAIL.
@@ -797,9 +784,6 @@
797784 void
798785 ruby_end(void)
799786 {
800-#ifdef DYNAMIC_RUBY
801- end_dynamic_ruby();
802-#endif
803787 }
804788
805789 void
diff -r 32787925de3c -r 4acb165ed0bc src/if_tcl.c
--- a/src/if_tcl.c Sun Mar 29 20:15:04 2020 +0200
+++ b/src/if_tcl.c Sun Mar 29 21:00:03 2020 +0200
@@ -280,13 +280,6 @@
280280 void
281281 tcl_end(void)
282282 {
283-#ifdef DYNAMIC_TCL
284- if (hTclLib)
285- {
286- close_dll(hTclLib);
287- hTclLib = NULL;
288- }
289-#endif
290283 }
291284
292285 /////////////////////////////////////////////////////////////////////////////
diff -r 32787925de3c -r 4acb165ed0bc src/version.c
--- a/src/version.c Sun Mar 29 20:15:04 2020 +0200
+++ b/src/version.c Sun Mar 29 21:00:03 2020 +0200
@@ -739,6 +739,8 @@
739739 static int included_patches[] =
740740 { /* Add new patch number below this line */
741741 /**/
742+ 479,
743+/**/
742744 478,
743745 /**/
744746 477,
Show on old repository browser