Karsten Hopp 995860
To: vim_dev@googlegroups.com
Karsten Hopp 995860
Subject: Patch 7.3.620
Karsten Hopp 995860
Fcc: outbox
Karsten Hopp 995860
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 995860
Mime-Version: 1.0
Karsten Hopp 995860
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 995860
Content-Transfer-Encoding: 8bit
Karsten Hopp 995860
------------
Karsten Hopp 995860
Karsten Hopp 995860
Patch 7.3.620
Karsten Hopp 995860
Problem:    Building with recent Ruby on Win32 doesn't work.
Karsten Hopp 995860
Solution:   Add a separate argument for the API version. (Yasuhiro Matsumoto)
Karsten Hopp 995860
Files:	    src/Make_ming.mak, src/Make_mvc.mak
Karsten Hopp 995860
Karsten Hopp 995860
Karsten Hopp 995860
*** ../vim-7.3.619/src/Make_ming.mak	2012-07-06 13:40:44.000000000 +0200
Karsten Hopp 995860
--- src/Make_ming.mak	2012-08-02 17:02:34.000000000 +0200
Karsten Hopp 995860
***************
Karsten Hopp 995860
*** 260,266 ****
Karsten Hopp 995860
  #	  DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
Karsten Hopp 995860
  #	  RUBY_VER=[Ruby version, eg 16, 17] (default is 16)
Karsten Hopp 995860
  #	  RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.6)
Karsten Hopp 995860
! #	    You must set RUBY_VER_LONG when change RUBY_VER.
Karsten Hopp 995860
  #RUBY=c:/ruby
Karsten Hopp 995860
  ifdef RUBY
Karsten Hopp 995860
  ifndef DYNAMIC_RUBY
Karsten Hopp 995860
--- 260,268 ----
Karsten Hopp 995860
  #	  DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
Karsten Hopp 995860
  #	  RUBY_VER=[Ruby version, eg 16, 17] (default is 16)
Karsten Hopp 995860
  #	  RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.6)
Karsten Hopp 995860
! #	    You must set RUBY_VER_LONG when changing RUBY_VER.
Karsten Hopp 995860
! #	    You must set RUBY_API_VER version to RUBY_VER_LONG.
Karsten Hopp 995860
! #	    Don't set ruby API version to RUBY_VER like 191.
Karsten Hopp 995860
  #RUBY=c:/ruby
Karsten Hopp 995860
  ifdef RUBY
Karsten Hopp 995860
  ifndef DYNAMIC_RUBY
Karsten Hopp 995860
***************
Karsten Hopp 995860
*** 273,278 ****
Karsten Hopp 995860
--- 275,283 ----
Karsten Hopp 995860
  ifndef RUBY_VER_LONG
Karsten Hopp 995860
  RUBY_VER_LONG = 1.6
Karsten Hopp 995860
  endif
Karsten Hopp 995860
+ ifndef RUBY_API_VER
Karsten Hopp 995860
+ RUBY_API_VER = $(subst .,,$(RUBY_VER_LONG))
Karsten Hopp 995860
+ endif
Karsten Hopp 995860
  
Karsten Hopp 995860
  ifndef RUBY_PLATFORM
Karsten Hopp 995860
  ifeq ($(RUBY_VER), 16)
Karsten Hopp 995860
***************
Karsten Hopp 995860
*** 288,296 ****
Karsten Hopp 995860
  
Karsten Hopp 995860
  ifndef RUBY_INSTALL_NAME
Karsten Hopp 995860
  ifeq ($(RUBY_VER), 16)
Karsten Hopp 995860
! RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER)
Karsten Hopp 995860
  else
Karsten Hopp 995860
! RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
Karsten Hopp 995860
  endif
Karsten Hopp 995860
  endif
Karsten Hopp 995860
  
Karsten Hopp 995860
--- 293,301 ----
Karsten Hopp 995860
  
Karsten Hopp 995860
  ifndef RUBY_INSTALL_NAME
Karsten Hopp 995860
  ifeq ($(RUBY_VER), 16)
Karsten Hopp 995860
! RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
Karsten Hopp 995860
  else
Karsten Hopp 995860
! RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER)
Karsten Hopp 995860
  endif
Karsten Hopp 995860
  endif
Karsten Hopp 995860
  
Karsten Hopp 995860
*** ../vim-7.3.619/src/Make_mvc.mak	2012-02-22 16:01:53.000000000 +0100
Karsten Hopp 995860
--- src/Make_mvc.mak	2012-08-02 17:42:31.000000000 +0200
Karsten Hopp 995860
***************
Karsten Hopp 995860
*** 63,68 ****
Karsten Hopp 995860
--- 63,70 ----
Karsten Hopp 995860
  #	  RUBY_VER=[Ruby version, eg 16, 17] (default is 18)
Karsten Hopp 995860
  #	  RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.8)
Karsten Hopp 995860
  #	    You must set RUBY_VER_LONG when change RUBY_VER.
Karsten Hopp 995860
+ #	    You must set RUBY_API_VER to RUBY_VER_LONG.
Karsten Hopp 995860
+ #	    Don't set ruby API version to RUBY_VER like 191.
Karsten Hopp 995860
  #
Karsten Hopp 995860
  #	Tcl interface:
Karsten Hopp 995860
  #	  TCL=[Path to Tcl directory]
Karsten Hopp 995860
***************
Karsten Hopp 995860
*** 807,834 ****
Karsten Hopp 995860
  !ifndef RUBY_VER_LONG
Karsten Hopp 995860
  RUBY_VER_LONG = 1.8
Karsten Hopp 995860
  !endif
Karsten Hopp 995860
  
Karsten Hopp 995860
  !if $(RUBY_VER) >= 18
Karsten Hopp 995860
  !ifndef RUBY_PLATFORM
Karsten Hopp 995860
  RUBY_PLATFORM = i386-mswin32
Karsten Hopp 995860
  !endif
Karsten Hopp 995860
  !ifndef RUBY_INSTALL_NAME
Karsten Hopp 995860
! RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
Karsten Hopp 995860
  !endif
Karsten Hopp 995860
  !else
Karsten Hopp 995860
  !ifndef RUBY_PLATFORM
Karsten Hopp 995860
  RUBY_PLATFORM = i586-mswin32
Karsten Hopp 995860
  !endif
Karsten Hopp 995860
  !ifndef RUBY_INSTALL_NAME
Karsten Hopp 995860
! RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER)
Karsten Hopp 995860
  !endif
Karsten Hopp 995860
  !endif # $(RUBY_VER) >= 18
Karsten Hopp 995860
  
Karsten Hopp 995860
  !message Ruby requested (version $(RUBY_VER)) - root dir is "$(RUBY)"
Karsten Hopp 995860
  CFLAGS = $(CFLAGS) -DFEAT_RUBY
Karsten Hopp 995860
  RUBY_OBJ = $(OUTDIR)\if_ruby.obj
Karsten Hopp 995860
! !if $(RUBY_VER) >= 190
Karsten Hopp 995860
! RUBY_INC = /I "$(RUBY)\include\ruby-$(RUBY_VER_LONG)\$(RUBY_PLATFORM)" /I "$(RUBY)\include\ruby-$(RUBY_VER_LONG)"
Karsten Hopp 995860
  !else
Karsten Hopp 995860
  RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)"
Karsten Hopp 995860
  !endif
Karsten Hopp 995860
--- 813,843 ----
Karsten Hopp 995860
  !ifndef RUBY_VER_LONG
Karsten Hopp 995860
  RUBY_VER_LONG = 1.8
Karsten Hopp 995860
  !endif
Karsten Hopp 995860
+ !ifndef RUBY_API_VER
Karsten Hopp 995860
+ RUBY_API_VER = $(RUBY_VER_LONG:.=)
Karsten Hopp 995860
+ !endif
Karsten Hopp 995860
  
Karsten Hopp 995860
  !if $(RUBY_VER) >= 18
Karsten Hopp 995860
  !ifndef RUBY_PLATFORM
Karsten Hopp 995860
  RUBY_PLATFORM = i386-mswin32
Karsten Hopp 995860
  !endif
Karsten Hopp 995860
  !ifndef RUBY_INSTALL_NAME
Karsten Hopp 995860
! RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER)
Karsten Hopp 995860
  !endif
Karsten Hopp 995860
  !else
Karsten Hopp 995860
  !ifndef RUBY_PLATFORM
Karsten Hopp 995860
  RUBY_PLATFORM = i586-mswin32
Karsten Hopp 995860
  !endif
Karsten Hopp 995860
  !ifndef RUBY_INSTALL_NAME
Karsten Hopp 995860
! RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
Karsten Hopp 995860
  !endif
Karsten Hopp 995860
  !endif # $(RUBY_VER) >= 18
Karsten Hopp 995860
  
Karsten Hopp 995860
  !message Ruby requested (version $(RUBY_VER)) - root dir is "$(RUBY)"
Karsten Hopp 995860
  CFLAGS = $(CFLAGS) -DFEAT_RUBY
Karsten Hopp 995860
  RUBY_OBJ = $(OUTDIR)\if_ruby.obj
Karsten Hopp 995860
! !if $(RUBY_VER) >= 19
Karsten Hopp 995860
! RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)" /I "$(RUBY)\include\ruby-$(RUBY_VER_LONG)" /I "$(RUBY)\include\ruby-$(RUBY_VER_LONG)\$(RUBY_PLATFORM)"
Karsten Hopp 995860
  !else
Karsten Hopp 995860
  RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)"
Karsten Hopp 995860
  !endif
Karsten Hopp 995860
*** ../vim-7.3.619/src/version.c	2012-08-02 12:31:40.000000000 +0200
Karsten Hopp 995860
--- src/version.c	2012-08-02 21:20:28.000000000 +0200
Karsten Hopp 995860
***************
Karsten Hopp 995860
*** 716,717 ****
Karsten Hopp 995860
--- 716,719 ----
Karsten Hopp 995860
  {   /* Add new patch number below this line */
Karsten Hopp 995860
+ /**/
Karsten Hopp 995860
+     620,
Karsten Hopp 995860
  /**/
Karsten Hopp 995860
Karsten Hopp 995860
-- 
Karsten Hopp 995860
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 995860
199. You read this entire list of symptoms, looking for something
Karsten Hopp 995860
     that doesn't describe you.
Karsten Hopp 995860
Karsten Hopp 995860
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 995860
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 995860
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 995860
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///