comparison src/if_ruby.c @ 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 bc6c7be92527
children 435726a03481
comparison
equal deleted inserted replaced
19845:32787925de3c 19846:4acb165ed0bc
734 # endif 734 # endif
735 {"", NULL}, 735 {"", NULL},
736 }; 736 };
737 737
738 /* 738 /*
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 /*
752 * Load library and get all pointers. 739 * Load library and get all pointers.
753 * Parameter 'libname' provides name of DLL. 740 * Parameter 'libname' provides name of DLL.
754 * Return OK or FAIL. 741 * Return OK or FAIL.
755 */ 742 */
756 static int 743 static int
795 #endif // defined(DYNAMIC_RUBY) || defined(PROTO) 782 #endif // defined(DYNAMIC_RUBY) || defined(PROTO)
796 783
797 void 784 void
798 ruby_end(void) 785 ruby_end(void)
799 { 786 {
800 #ifdef DYNAMIC_RUBY
801 end_dynamic_ruby();
802 #endif
803 } 787 }
804 788
805 void 789 void
806 ex_ruby(exarg_T *eap) 790 ex_ruby(exarg_T *eap)
807 { 791 {