Karsten Hopp bac898
To: vim_dev@googlegroups.com
Karsten Hopp bac898
Subject: Patch 7.3.974
Karsten Hopp bac898
Fcc: outbox
Karsten Hopp bac898
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp bac898
Mime-Version: 1.0
Karsten Hopp bac898
Content-Type: text/plain; charset=UTF-8
Karsten Hopp bac898
Content-Transfer-Encoding: 8bit
Karsten Hopp bac898
------------
Karsten Hopp bac898
Karsten Hopp bac898
Patch 7.3.974
Karsten Hopp bac898
Problem:    Can't build with ruby 1.8.5.
Karsten Hopp bac898
Solution:   Only use ruby_init_stack() when RUBY_INIT_STACK is defined.
Karsten Hopp bac898
	    (Yukihiro Nakadaira)
Karsten Hopp bac898
Files:	    src/if_ruby.c
Karsten Hopp bac898
Karsten Hopp bac898
Karsten Hopp bac898
*** ../vim-7.3.973/src/if_ruby.c	2013-05-12 14:10:41.000000000 +0200
Karsten Hopp bac898
--- src/if_ruby.c	2013-05-20 12:47:48.000000000 +0200
Karsten Hopp bac898
***************
Karsten Hopp bac898
*** 158,165 ****
Karsten Hopp bac898
  static void ruby_io_init(void);
Karsten Hopp bac898
  static void ruby_vim_init(void);
Karsten Hopp bac898
  
Karsten Hopp bac898
! #if defined(__ia64) && !defined(ruby_init_stack)
Karsten Hopp bac898
! # define ruby_init_stack(addr) ruby_init_stack((addr), rb_ia64_bsp())
Karsten Hopp bac898
  #endif
Karsten Hopp bac898
  
Karsten Hopp bac898
  #if defined(DYNAMIC_RUBY) || defined(PROTO)
Karsten Hopp bac898
--- 158,167 ----
Karsten Hopp bac898
  static void ruby_io_init(void);
Karsten Hopp bac898
  static void ruby_vim_init(void);
Karsten Hopp bac898
  
Karsten Hopp bac898
! #if defined(RUBY19_OR_LATER) || defined(RUBY_INIT_STACK)
Karsten Hopp bac898
! # if defined(__ia64) && !defined(ruby_init_stack)
Karsten Hopp bac898
! #  define ruby_init_stack(addr) ruby_init_stack((addr), rb_ia64_bsp())
Karsten Hopp bac898
! # endif
Karsten Hopp bac898
  #endif
Karsten Hopp bac898
  
Karsten Hopp bac898
  #if defined(DYNAMIC_RUBY) || defined(PROTO)
Karsten Hopp bac898
***************
Karsten Hopp bac898
*** 231,242 ****
Karsten Hopp bac898
  #  define rb_float_new			dll_rb_float_new
Karsten Hopp bac898
  #  define rb_ary_new			dll_rb_ary_new
Karsten Hopp bac898
  #  define rb_ary_push			dll_rb_ary_push
Karsten Hopp bac898
! #  ifdef __ia64
Karsten Hopp bac898
! #   define rb_ia64_bsp		dll_rb_ia64_bsp
Karsten Hopp bac898
! #   undef ruby_init_stack
Karsten Hopp bac898
! #   define ruby_init_stack(addr)	dll_ruby_init_stack((addr), rb_ia64_bsp())
Karsten Hopp bac898
! #  else
Karsten Hopp bac898
! #   define ruby_init_stack	dll_ruby_init_stack
Karsten Hopp bac898
  #  endif
Karsten Hopp bac898
  # else
Karsten Hopp bac898
  #  define rb_str2cstr			dll_rb_str2cstr
Karsten Hopp bac898
--- 233,246 ----
Karsten Hopp bac898
  #  define rb_float_new			dll_rb_float_new
Karsten Hopp bac898
  #  define rb_ary_new			dll_rb_ary_new
Karsten Hopp bac898
  #  define rb_ary_push			dll_rb_ary_push
Karsten Hopp bac898
! #  if defined(RUBY19_OR_LATER) || defined(RUBY_INIT_STACK)
Karsten Hopp bac898
! #   ifdef __ia64
Karsten Hopp bac898
! #    define rb_ia64_bsp			dll_rb_ia64_bsp
Karsten Hopp bac898
! #    undef ruby_init_stack
Karsten Hopp bac898
! #    define ruby_init_stack(addr)	dll_ruby_init_stack((addr), rb_ia64_bsp())
Karsten Hopp bac898
! #   else
Karsten Hopp bac898
! #    define ruby_init_stack		dll_ruby_init_stack
Karsten Hopp bac898
! #   endif
Karsten Hopp bac898
  #  endif
Karsten Hopp bac898
  # else
Karsten Hopp bac898
  #  define rb_str2cstr			dll_rb_str2cstr
Karsten Hopp bac898
***************
Karsten Hopp bac898
*** 346,356 ****
Karsten Hopp bac898
  static VALUE (*dll_rb_float_new) (double);
Karsten Hopp bac898
  static VALUE (*dll_rb_ary_new) (void);
Karsten Hopp bac898
  static VALUE (*dll_rb_ary_push) (VALUE, VALUE);
Karsten Hopp bac898
! #  ifdef __ia64
Karsten Hopp bac898
  static void * (*dll_rb_ia64_bsp) (void);
Karsten Hopp bac898
  static void (*dll_ruby_init_stack)(VALUE*, void*);
Karsten Hopp bac898
! #  else
Karsten Hopp bac898
  static void (*dll_ruby_init_stack)(VALUE*);
Karsten Hopp bac898
  #  endif
Karsten Hopp bac898
  # endif
Karsten Hopp bac898
  # ifdef RUBY19_OR_LATER
Karsten Hopp bac898
--- 350,362 ----
Karsten Hopp bac898
  static VALUE (*dll_rb_float_new) (double);
Karsten Hopp bac898
  static VALUE (*dll_rb_ary_new) (void);
Karsten Hopp bac898
  static VALUE (*dll_rb_ary_push) (VALUE, VALUE);
Karsten Hopp bac898
! #  if defined(RUBY19_OR_LATER) || defined(RUBY_INIT_STACK)
Karsten Hopp bac898
! #   ifdef __ia64
Karsten Hopp bac898
  static void * (*dll_rb_ia64_bsp) (void);
Karsten Hopp bac898
  static void (*dll_ruby_init_stack)(VALUE*, void*);
Karsten Hopp bac898
! #   else
Karsten Hopp bac898
  static void (*dll_ruby_init_stack)(VALUE*);
Karsten Hopp bac898
+ #   endif
Karsten Hopp bac898
  #  endif
Karsten Hopp bac898
  # endif
Karsten Hopp bac898
  # ifdef RUBY19_OR_LATER
Karsten Hopp bac898
***************
Karsten Hopp bac898
*** 491,500 ****
Karsten Hopp bac898
  # endif
Karsten Hopp bac898
  # if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
Karsten Hopp bac898
      {"rb_string_value_ptr", (RUBY_PROC*)&dll_rb_string_value_ptr},
Karsten Hopp bac898
- #  ifdef __ia64
Karsten Hopp bac898
-     {"rb_ia64_bsp", (RUBY_PROC*)&dll_rb_ia64_bsp},
Karsten Hopp bac898
- #  endif
Karsten Hopp bac898
-     {"ruby_init_stack", (RUBY_PROC*)&dll_ruby_init_stack},
Karsten Hopp bac898
  #  if DYNAMIC_RUBY_VER <= 19
Karsten Hopp bac898
      {"rb_float_new", (RUBY_PROC*)&dll_rb_float_new},
Karsten Hopp bac898
  #  else
Karsten Hopp bac898
--- 497,502 ----
Karsten Hopp bac898
***************
Karsten Hopp bac898
*** 513,518 ****
Karsten Hopp bac898
--- 515,526 ----
Karsten Hopp bac898
      {"rb_require", (RUBY_PROC*)&dll_rb_require},
Karsten Hopp bac898
      {"ruby_process_options", (RUBY_PROC*)&dll_ruby_process_options},
Karsten Hopp bac898
  # endif
Karsten Hopp bac898
+ # if defined(RUBY19_OR_LATER) || defined(RUBY_INIT_STACK)
Karsten Hopp bac898
+ #  ifdef __ia64
Karsten Hopp bac898
+     {"rb_ia64_bsp", (RUBY_PROC*)&dll_rb_ia64_bsp},
Karsten Hopp bac898
+ #  endif
Karsten Hopp bac898
+     {"ruby_init_stack", (RUBY_PROC*)&dll_ruby_init_stack},
Karsten Hopp bac898
+ # endif
Karsten Hopp bac898
      {"", NULL},
Karsten Hopp bac898
  };
Karsten Hopp bac898
  
Karsten Hopp bac898
***************
Karsten Hopp bac898
*** 735,741 ****
Karsten Hopp bac898
  	    NtInitialize(&argc, &argv);
Karsten Hopp bac898
  #endif
Karsten Hopp bac898
  	    {
Karsten Hopp bac898
! #if defined(RUBY_VERSION) && RUBY_VERSION >= 18
Karsten Hopp bac898
  		ruby_init_stack(ruby_stack_start);
Karsten Hopp bac898
  #endif
Karsten Hopp bac898
  		ruby_init();
Karsten Hopp bac898
--- 743,749 ----
Karsten Hopp bac898
  	    NtInitialize(&argc, &argv);
Karsten Hopp bac898
  #endif
Karsten Hopp bac898
  	    {
Karsten Hopp bac898
! #if defined(RUBY19_OR_LATER) || defined(RUBY_INIT_STACK)
Karsten Hopp bac898
  		ruby_init_stack(ruby_stack_start);
Karsten Hopp bac898
  #endif
Karsten Hopp bac898
  		ruby_init();
Karsten Hopp bac898
*** ../vim-7.3.973/src/version.c	2013-05-19 22:31:13.000000000 +0200
Karsten Hopp bac898
--- src/version.c	2013-05-20 12:51:22.000000000 +0200
Karsten Hopp bac898
***************
Karsten Hopp bac898
*** 730,731 ****
Karsten Hopp bac898
--- 730,733 ----
Karsten Hopp bac898
  {   /* Add new patch number below this line */
Karsten Hopp bac898
+ /**/
Karsten Hopp bac898
+     974,
Karsten Hopp bac898
  /**/
Karsten Hopp bac898
Karsten Hopp bac898
-- 
Karsten Hopp bac898
bashian roulette:
Karsten Hopp bac898
$ ((RANDOM%6)) || rm -rf ~
Karsten Hopp bac898
Karsten Hopp bac898
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp bac898
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp bac898
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp bac898
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///