e05ad34
To: vim_dev@googlegroups.com
e05ad34
Subject: Patch 7.3.043
e05ad34
Fcc: outbox
e05ad34
From: Bram Moolenaar <Bram@moolenaar.net>
e05ad34
Mime-Version: 1.0
e05ad34
Content-Type: text/plain; charset=UTF-8
e05ad34
Content-Transfer-Encoding: 8bit
e05ad34
------------
e05ad34
e05ad34
Patch 7.3.043
e05ad34
Problem:    Can't load Ruby dynamically on Unix.
e05ad34
Solution:   Adjust the configure script. (James Vega)
e05ad34
Files:	    src/Makefile, src/config.h.in, src/configure.in,
e05ad34
	    src/auto/configure, src/if_ruby.c
e05ad34
e05ad34
e05ad34
*** ../vim-7.3.042/src/Makefile	2010-08-16 21:59:00.000000000 +0200
e05ad34
--- src/Makefile	2010-10-27 16:46:41.000000000 +0200
e05ad34
***************
e05ad34
*** 414,425 ****
e05ad34
--- 414,429 ----
e05ad34
  # However, this may still cause problems, such as "import termios" failing.
e05ad34
  # Build two separate versions of Vim in that case.
e05ad34
  #CONF_OPT_PYTHON = --enable-pythoninterp
e05ad34
+ #CONF_OPT_PYTHON = --enable-pythoninterp=dynamic
e05ad34
  #CONF_OPT_PYTHON3 = --enable-python3interp
e05ad34
+ #CONF_OPT_PYTHON3 = --enable-python3interp=dynamic
e05ad34
  
e05ad34
  # RUBY
e05ad34
  # Uncomment this when you want to include the Ruby interface.
e05ad34
+ # First one for static linking, second one for loading when used.
e05ad34
  # Note: you need the development package (e.g., ruby1.9.1-dev on Ubuntu).
e05ad34
  #CONF_OPT_RUBY = --enable-rubyinterp
e05ad34
+ #CONF_OPT_RUBY = --enable-rubyinterp=dynamic
e05ad34
  #CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1
e05ad34
  
e05ad34
  # TCL
e05ad34
***************
e05ad34
*** 1047,1054 ****
e05ad34
  INSTALL_DATA	= cp
e05ad34
  INSTALL_DATA_R	= cp -r
e05ad34
  
e05ad34
! ### Program to run on installed binary
e05ad34
  #STRIP = strip
e05ad34
  
e05ad34
  ### Permissions for binaries  {{{1
e05ad34
  BINMOD = 755
e05ad34
--- 1051,1059 ----
e05ad34
  INSTALL_DATA	= cp
e05ad34
  INSTALL_DATA_R	= cp -r
e05ad34
  
e05ad34
! ### Program to run on installed binary.  Use the second one to disable strip.
e05ad34
  #STRIP = strip
e05ad34
+ #STRIP = /bin/true
e05ad34
  
e05ad34
  ### Permissions for binaries  {{{1
e05ad34
  BINMOD = 755
e05ad34
***************
e05ad34
*** 1321,1327 ****
e05ad34
  .SUFFIXES: .c .o .pro
e05ad34
  
e05ad34
  PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS)
e05ad34
! POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS)
e05ad34
  
e05ad34
  ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS)
e05ad34
  
e05ad34
--- 1326,1332 ----
e05ad34
  .SUFFIXES: .c .o .pro
e05ad34
  
e05ad34
  PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS)
e05ad34
! POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(TCL_CFLAGS) $(EXTRA_DEFS)
e05ad34
  
e05ad34
  ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS)
e05ad34
  
e05ad34
***************
e05ad34
*** 1329,1335 ****
e05ad34
  # with "-E".
e05ad34
  OSDEF_CFLAGS = $(PRE_DEFS) $(POST_DEFS)
e05ad34
  
e05ad34
! LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) $(LUA_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) -Dinline= -D__extension__= -Dalloca=alloca
e05ad34
  
e05ad34
  LINT_EXTRA = -DUSE_SNIFF -DHANGUL_INPUT -D"__attribute__(x)="
e05ad34
  
e05ad34
--- 1334,1340 ----
e05ad34
  # with "-E".
e05ad34
  OSDEF_CFLAGS = $(PRE_DEFS) $(POST_DEFS)
e05ad34
  
e05ad34
! LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) $(RUBY_CFLAGS) $(LUA_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) -Dinline= -D__extension__= -Dalloca=alloca
e05ad34
  
e05ad34
  LINT_EXTRA = -DUSE_SNIFF -DHANGUL_INPUT -D"__attribute__(x)="
e05ad34
  
e05ad34
***************
e05ad34
*** 2532,2538 ****
e05ad34
  	$(CCC) $(PYTHON3_CFLAGS) $(PYTHON3_CFLAGS_EXTRA) -o $@ if_python3.c
e05ad34
  
e05ad34
  objects/if_ruby.o: if_ruby.c
e05ad34
! 	$(CCC) -o $@ if_ruby.c
e05ad34
  
e05ad34
  objects/if_sniff.o: if_sniff.c
e05ad34
  	$(CCC) -o $@ if_sniff.c
e05ad34
--- 2537,2543 ----
e05ad34
  	$(CCC) $(PYTHON3_CFLAGS) $(PYTHON3_CFLAGS_EXTRA) -o $@ if_python3.c
e05ad34
  
e05ad34
  objects/if_ruby.o: if_ruby.c
e05ad34
! 	$(CCC) $(RUBY_CFLAGS) -o $@ if_ruby.c
e05ad34
  
e05ad34
  objects/if_sniff.o: if_sniff.c
e05ad34
  	$(CCC) -o $@ if_sniff.c
e05ad34
*** ../vim-7.3.042/src/config.h.in	2010-08-15 21:57:32.000000000 +0200
e05ad34
--- src/config.h.in	2010-10-27 16:21:24.000000000 +0200
e05ad34
***************
e05ad34
*** 349,354 ****
e05ad34
--- 349,357 ----
e05ad34
  /* Define if you want to include the Ruby interpreter. */
e05ad34
  #undef FEAT_RUBY
e05ad34
  
e05ad34
+ /* Define for linking via dlopen() or LoadLibrary() */
e05ad34
+ #undef DYNAMIC_RUBY
e05ad34
+ 
e05ad34
  /* Define if you want to include the Tcl interpreter. */
e05ad34
  #undef FEAT_TCL
e05ad34
  
e05ad34
*** ../vim-7.3.042/src/configure.in	2010-08-15 21:57:28.000000000 +0200
e05ad34
--- src/configure.in	2010-10-27 16:20:53.000000000 +0200
e05ad34
***************
e05ad34
*** 1299,1308 ****
e05ad34
  
e05ad34
  AC_MSG_CHECKING(--enable-rubyinterp argument)
e05ad34
  AC_ARG_ENABLE(rubyinterp,
e05ad34
! 	[  --enable-rubyinterp     Include Ruby interpreter.], ,
e05ad34
  	[enable_rubyinterp="no"])
e05ad34
  AC_MSG_RESULT($enable_rubyinterp)
e05ad34
! if test "$enable_rubyinterp" = "yes"; then
e05ad34
    AC_MSG_CHECKING(--with-ruby-command argument)
e05ad34
    AC_ARG_WITH(ruby-command, [  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)],
e05ad34
  	RUBY_CMD="$withval"; AC_MSG_RESULT($RUBY_CMD),
e05ad34
--- 1299,1308 ----
e05ad34
  
e05ad34
  AC_MSG_CHECKING(--enable-rubyinterp argument)
e05ad34
  AC_ARG_ENABLE(rubyinterp,
e05ad34
! 	[  --enable-rubyinterp[=OPTS]     Include Ruby interpreter.  [default=no] [OPTS=no/yes/dynamic]], ,
e05ad34
  	[enable_rubyinterp="no"])
e05ad34
  AC_MSG_RESULT($enable_rubyinterp)
e05ad34
! if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
e05ad34
    AC_MSG_CHECKING(--with-ruby-command argument)
e05ad34
    AC_ARG_WITH(ruby-command, [  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)],
e05ad34
  	RUBY_CMD="$withval"; AC_MSG_RESULT($RUBY_CMD),
e05ad34
***************
e05ad34
*** 1360,1365 ****
e05ad34
--- 1360,1371 ----
e05ad34
  	RUBY_OBJ="objects/if_ruby.o"
e05ad34
  	RUBY_PRO="if_ruby.pro"
e05ad34
  	AC_DEFINE(FEAT_RUBY)
e05ad34
+ 	if test "$enable_rubyinterp" = "dynamic"; then
e05ad34
+ 	  libruby=`$vi_cv_path_ruby -r rbconfig -e 'printf "lib%s.%s\n", Config::CONFIG[["RUBY_SO_NAME"]], Config::CONFIG[["DLEXT"]]'`
e05ad34
+ 	  AC_DEFINE(DYNAMIC_RUBY)
e05ad34
+ 	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
e05ad34
+ 	  RUBY_LIBS=
e05ad34
+ 	fi
e05ad34
        else
e05ad34
  	AC_MSG_RESULT(not found; disabling Ruby)
e05ad34
        fi
e05ad34
*** ../vim-7.3.042/src/auto/configure	2010-08-15 21:57:27.000000000 +0200
e05ad34
--- src/auto/configure	2010-10-27 16:28:10.000000000 +0200
e05ad34
***************
e05ad34
*** 1427,1433 ****
e05ad34
    --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
e05ad34
    --enable-python3interp=OPTS   Include Python3 interpreter. default=no OPTS=no/yes/dynamic
e05ad34
    --enable-tclinterp      Include Tcl interpreter.
e05ad34
!   --enable-rubyinterp     Include Ruby interpreter.
e05ad34
    --enable-cscope         Include cscope interface.
e05ad34
    --enable-workshop       Include Sun Visual Workshop support.
e05ad34
    --disable-netbeans      Disable NetBeans integration support.
e05ad34
--- 1427,1433 ----
e05ad34
    --enable-pythoninterp=OPTS   Include Python interpreter. default=no OPTS=no/yes/dynamic
e05ad34
    --enable-python3interp=OPTS   Include Python3 interpreter. default=no OPTS=no/yes/dynamic
e05ad34
    --enable-tclinterp      Include Tcl interpreter.
e05ad34
!   --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
e05ad34
    --enable-cscope         Include cscope interface.
e05ad34
    --enable-workshop       Include Sun Visual Workshop support.
e05ad34
    --disable-netbeans      Disable NetBeans integration support.
e05ad34
***************
e05ad34
*** 6103,6109 ****
e05ad34
  
e05ad34
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
e05ad34
  $as_echo "$enable_rubyinterp" >&6; }
e05ad34
! if test "$enable_rubyinterp" = "yes"; then
e05ad34
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
e05ad34
  $as_echo_n "checking --with-ruby-command argument... " >&6; }
e05ad34
  
e05ad34
--- 6103,6109 ----
e05ad34
  
e05ad34
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
e05ad34
  $as_echo "$enable_rubyinterp" >&6; }
e05ad34
! if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
e05ad34
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
e05ad34
  $as_echo_n "checking --with-ruby-command argument... " >&6; }
e05ad34
  
e05ad34
***************
e05ad34
*** 6209,6214 ****
e05ad34
--- 6209,6221 ----
e05ad34
  	RUBY_PRO="if_ruby.pro"
e05ad34
  	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
e05ad34
  
e05ad34
+ 	if test "$enable_rubyinterp" = "dynamic"; then
e05ad34
+ 	  libruby=`$vi_cv_path_ruby -r rbconfig -e 'printf "lib%s.%s\n", Config::CONFIG["RUBY_SO_NAME"], Config::CONFIG["DLEXT"]'`
e05ad34
+ 	  $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h
e05ad34
+ 
e05ad34
+ 	  RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS"
e05ad34
+ 	  RUBY_LIBS=
e05ad34
+ 	fi
e05ad34
        else
e05ad34
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
e05ad34
  $as_echo "not found; disabling Ruby" >&6; }
e05ad34
*** ../vim-7.3.042/src/if_ruby.c	2010-10-23 14:02:48.000000000 +0200
e05ad34
--- src/if_ruby.c	2010-10-27 16:40:27.000000000 +0200
e05ad34
***************
e05ad34
*** 14,19 ****
e05ad34
--- 14,21 ----
e05ad34
  #include <stdio.h>
e05ad34
  #include <string.h>
e05ad34
  
e05ad34
+ #include "auto/config.h"
e05ad34
+ 
e05ad34
  #ifdef _WIN32
e05ad34
  # if !defined(DYNAMIC_RUBY_VER) || (DYNAMIC_RUBY_VER < 18)
e05ad34
  #   define NT
e05ad34
***************
e05ad34
*** 48,60 ****
e05ad34
  #  define RUBY_EXPORT
e05ad34
  # endif
e05ad34
  
e05ad34
! #if !(defined(WIN32) || defined(_WIN64))
e05ad34
  # include <dlfcn.h>
e05ad34
! # define HANDLE void*
e05ad34
  # define load_dll(n) dlopen((n), RTLD_LAZY|RTLD_GLOBAL)
e05ad34
  # define symbol_from_dll dlsym
e05ad34
  # define close_dll dlclose
e05ad34
  #else
e05ad34
  # define load_dll vimLoadLib
e05ad34
  # define symbol_from_dll GetProcAddress
e05ad34
  # define close_dll FreeLibrary
e05ad34
--- 50,64 ----
e05ad34
  #  define RUBY_EXPORT
e05ad34
  # endif
e05ad34
  
e05ad34
! #ifndef WIN3264
e05ad34
  # include <dlfcn.h>
e05ad34
! # define HINSTANCE void*
e05ad34
! # define RUBY_PROC void*
e05ad34
  # define load_dll(n) dlopen((n), RTLD_LAZY|RTLD_GLOBAL)
e05ad34
  # define symbol_from_dll dlsym
e05ad34
  # define close_dll dlclose
e05ad34
  #else
e05ad34
+ # define RUBY_PROC FARPROC
e05ad34
  # define load_dll vimLoadLib
e05ad34
  # define symbol_from_dll GetProcAddress
e05ad34
  # define close_dll FreeLibrary
e05ad34
***************
e05ad34
*** 174,180 ****
e05ad34
--- 178,186 ----
e05ad34
  #define rb_lastline_get			dll_rb_lastline_get
e05ad34
  #define rb_lastline_set			dll_rb_lastline_set
e05ad34
  #define rb_load_protect			dll_rb_load_protect
e05ad34
+ #ifndef RUBY19_OR_LATER
e05ad34
  #define rb_num2long			dll_rb_num2long
e05ad34
+ #endif
e05ad34
  #define rb_num2ulong			dll_rb_num2ulong
e05ad34
  #define rb_obj_alloc			dll_rb_obj_alloc
e05ad34
  #define rb_obj_as_string		dll_rb_obj_as_string
e05ad34
***************
e05ad34
*** 186,191 ****
e05ad34
--- 192,200 ----
e05ad34
  #ifdef rb_str_new2
e05ad34
  /* Ruby may #define rb_str_new2 to use rb_str_new_cstr. */
e05ad34
  # define need_rb_str_new_cstr 1
e05ad34
+ /* Ruby's headers #define rb_str_new_cstr to make use of GCC's
e05ad34
+  * __builtin_constant_p extension. */
e05ad34
+ # undef rb_str_new_cstr
e05ad34
  # define rb_str_new_cstr		dll_rb_str_new_cstr
e05ad34
  #else
e05ad34
  # define rb_str_new2			dll_rb_str_new2
e05ad34
***************
e05ad34
*** 206,214 ****
e05ad34
  #endif
e05ad34
  #define ruby_init			dll_ruby_init
e05ad34
  #define ruby_init_loadpath		dll_ruby_init_loadpath
e05ad34
! #define NtInitialize			dll_NtInitialize
e05ad34
! #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
e05ad34
! # define rb_w32_snprintf		dll_rb_w32_snprintf
e05ad34
  #endif
e05ad34
  
e05ad34
  #ifdef RUBY19_OR_LATER
e05ad34
--- 215,225 ----
e05ad34
  #endif
e05ad34
  #define ruby_init			dll_ruby_init
e05ad34
  #define ruby_init_loadpath		dll_ruby_init_loadpath
e05ad34
! #ifdef WIN3264
e05ad34
! # define NtInitialize			dll_NtInitialize
e05ad34
! # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
e05ad34
! #  define rb_w32_snprintf		dll_rb_w32_snprintf
e05ad34
! # endif
e05ad34
  #endif
e05ad34
  
e05ad34
  #ifdef RUBY19_OR_LATER
e05ad34
***************
e05ad34
*** 283,289 ****
e05ad34
--- 294,305 ----
e05ad34
  #endif
e05ad34
  static void (*dll_ruby_init) (void);
e05ad34
  static void (*dll_ruby_init_loadpath) (void);
e05ad34
+ #ifdef WIN3264
e05ad34
  static void (*dll_NtInitialize) (int*, char***);
e05ad34
+ # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
e05ad34
+ static int (*dll_rb_w32_snprintf)(char*, size_t, const char*, ...);
e05ad34
+ # endif
e05ad34
+ #endif
e05ad34
  #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
e05ad34
  static char * (*dll_rb_string_value_ptr) (volatile VALUE*);
e05ad34
  static VALUE (*dll_rb_float_new) (double);
e05ad34
***************
e05ad34
*** 293,301 ****
e05ad34
  #ifdef RUBY19_OR_LATER
e05ad34
  static VALUE (*dll_rb_int2big)(SIGNED_VALUE);
e05ad34
  #endif
e05ad34
- #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
e05ad34
- static int (*dll_rb_w32_snprintf)(char*, size_t, const char*, ...);
e05ad34
- #endif
e05ad34
  
e05ad34
  #ifdef RUBY19_OR_LATER
e05ad34
  static void (*dll_ruby_script) (const char*);
e05ad34
--- 309,314 ----
e05ad34
***************
e05ad34
*** 317,328 ****
e05ad34
  }
e05ad34
  #endif
e05ad34
  
e05ad34
! static HINSTANCE hinstRuby = 0; /* Instance of ruby.dll */
e05ad34
  
e05ad34
  /*
e05ad34
   * Table of name to function pointer of ruby.
e05ad34
   */
e05ad34
- #define RUBY_PROC FARPROC
e05ad34
  static struct
e05ad34
  {
e05ad34
      char *name;
e05ad34
--- 330,340 ----
e05ad34
  }
e05ad34
  #endif
e05ad34
  
e05ad34
! static HINSTANCE hinstRuby = NULL; /* Instance of ruby.dll */
e05ad34
  
e05ad34
  /*
e05ad34
   * Table of name to function pointer of ruby.
e05ad34
   */
e05ad34
  static struct
e05ad34
  {
e05ad34
      char *name;
e05ad34
***************
e05ad34
*** 387,401 ****
e05ad34
  #endif
e05ad34
      {"ruby_init", (RUBY_PROC*)&dll_ruby_init},
e05ad34
      {"ruby_init_loadpath", (RUBY_PROC*)&dll_ruby_init_loadpath},
e05ad34
      {
e05ad34
! #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER < 19
e05ad34
      "NtInitialize",
e05ad34
! #else
e05ad34
      "ruby_sysinit",
e05ad34
! #endif
e05ad34
  			(RUBY_PROC*)&dll_NtInitialize},
e05ad34
! #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
e05ad34
      {"rb_w32_snprintf", (RUBY_PROC*)&dll_rb_w32_snprintf},
e05ad34
  #endif
e05ad34
  #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
e05ad34
      {"rb_string_value_ptr", (RUBY_PROC*)&dll_rb_string_value_ptr},
e05ad34
--- 399,415 ----
e05ad34
  #endif
e05ad34
      {"ruby_init", (RUBY_PROC*)&dll_ruby_init},
e05ad34
      {"ruby_init_loadpath", (RUBY_PROC*)&dll_ruby_init_loadpath},
e05ad34
+ #ifdef WIN3264
e05ad34
      {
e05ad34
! # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER < 19
e05ad34
      "NtInitialize",
e05ad34
! # else
e05ad34
      "ruby_sysinit",
e05ad34
! # endif
e05ad34
  			(RUBY_PROC*)&dll_NtInitialize},
e05ad34
! # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
e05ad34
      {"rb_w32_snprintf", (RUBY_PROC*)&dll_rb_w32_snprintf},
e05ad34
+ # endif
e05ad34
  #endif
e05ad34
  #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
e05ad34
      {"rb_string_value_ptr", (RUBY_PROC*)&dll_rb_string_value_ptr},
e05ad34
***************
e05ad34
*** 424,430 ****
e05ad34
      if (hinstRuby)
e05ad34
      {
e05ad34
  	close_dll(hinstRuby);
e05ad34
! 	hinstRuby = 0;
e05ad34
      }
e05ad34
  }
e05ad34
  
e05ad34
--- 438,444 ----
e05ad34
      if (hinstRuby)
e05ad34
      {
e05ad34
  	close_dll(hinstRuby);
e05ad34
! 	hinstRuby = NULL;
e05ad34
      }
e05ad34
  }
e05ad34
  
e05ad34
***************
e05ad34
*** 454,460 ****
e05ad34
  			ruby_funcname_table[i].name)))
e05ad34
  	{
e05ad34
  	    close_dll(hinstRuby);
e05ad34
! 	    hinstRuby = 0;
e05ad34
  	    if (verbose)
e05ad34
  		EMSG2(_(e_loadfunc), ruby_funcname_table[i].name);
e05ad34
  	    return FAIL;
e05ad34
--- 468,474 ----
e05ad34
  			ruby_funcname_table[i].name)))
e05ad34
  	{
e05ad34
  	    close_dll(hinstRuby);
e05ad34
! 	    hinstRuby = NULL;
e05ad34
  	    if (verbose)
e05ad34
  		EMSG2(_(e_loadfunc), ruby_funcname_table[i].name);
e05ad34
  	    return FAIL;
e05ad34
***************
e05ad34
*** 936,944 ****
e05ad34
  	return line ? vim_str2rb_enc_str(line) : Qnil;
e05ad34
      }
e05ad34
      rb_raise(rb_eIndexError, "line number %ld out of range", (long)n);
e05ad34
- #ifndef __GNUC__
e05ad34
      return Qnil; /* For stop warning */
e05ad34
- #endif
e05ad34
  }
e05ad34
  
e05ad34
  static VALUE buffer_aref(VALUE self, VALUE num)
e05ad34
--- 950,956 ----
e05ad34
*** ../vim-7.3.042/src/version.c	2010-10-27 16:17:56.000000000 +0200
e05ad34
--- src/version.c	2010-10-27 16:45:28.000000000 +0200
e05ad34
***************
e05ad34
*** 716,717 ****
e05ad34
--- 716,719 ----
e05ad34
  {   /* Add new patch number below this line */
e05ad34
+ /**/
e05ad34
+     43,
e05ad34
  /**/
e05ad34
e05ad34
-- 
e05ad34
ARTHUR:        A scratch?  Your arm's off!
e05ad34
BLACK KNIGHT:  No, it isn't.
e05ad34
ARTHUR:        Well, what's that then?
e05ad34
BLACK KNIGHT:  I've had worse.
e05ad34
                                  The Quest for the Holy Grail (Monty Python)
e05ad34
e05ad34
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
e05ad34
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
e05ad34
\\\        download, build and distribute -- http://www.A-A-P.org        ///
e05ad34
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///