lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
369c4dd
To: vim_dev@googlegroups.com
369c4dd
Subject: Patch 7.4.927
369c4dd
Fcc: outbox
369c4dd
From: Bram Moolenaar <Bram@moolenaar.net>
369c4dd
Mime-Version: 1.0
369c4dd
Content-Type: text/plain; charset=UTF-8
369c4dd
Content-Transfer-Encoding: 8bit
369c4dd
------------
369c4dd
369c4dd
Patch 7.4.927
369c4dd
Problem:    Ruby crashes when there is a runtime error.
369c4dd
Solution:   Use ruby_options() instead of ruby_process_options(). (Damien)
369c4dd
Files:      src/if_ruby.c
369c4dd
369c4dd
369c4dd
*** ../vim-7.4.926/src/if_ruby.c	2015-11-02 15:27:03.438325506 +0100
369c4dd
--- src/if_ruby.c	2015-11-19 19:32:10.991642881 +0100
369c4dd
***************
369c4dd
*** 280,286 ****
369c4dd
  #  define rb_enc_str_new			dll_rb_enc_str_new
369c4dd
  #  define rb_sprintf			dll_rb_sprintf
369c4dd
  #  define rb_require			dll_rb_require
369c4dd
! #  define ruby_process_options		dll_ruby_process_options
369c4dd
  # endif
369c4dd
  
369c4dd
  /*
369c4dd
--- 280,286 ----
369c4dd
  #  define rb_enc_str_new			dll_rb_enc_str_new
369c4dd
  #  define rb_sprintf			dll_rb_sprintf
369c4dd
  #  define rb_require			dll_rb_require
369c4dd
! #  define ruby_options			dll_ruby_options
369c4dd
  # endif
369c4dd
  
369c4dd
  /*
369c4dd
***************
369c4dd
*** 384,390 ****
369c4dd
  static VALUE (*dll_rb_enc_str_new) (const char*, long, rb_encoding*);
369c4dd
  static VALUE (*dll_rb_sprintf) (const char*, ...);
369c4dd
  static VALUE (*dll_rb_require) (const char*);
369c4dd
! static void* (*ruby_process_options)(int, char**);
369c4dd
  # endif
369c4dd
  
369c4dd
  # if defined(USE_RGENGC) && USE_RGENGC
369c4dd
--- 384,390 ----
369c4dd
  static VALUE (*dll_rb_enc_str_new) (const char*, long, rb_encoding*);
369c4dd
  static VALUE (*dll_rb_sprintf) (const char*, ...);
369c4dd
  static VALUE (*dll_rb_require) (const char*);
369c4dd
! static void* (*ruby_options)(int, char**);
369c4dd
  # endif
369c4dd
  
369c4dd
  # if defined(USE_RGENGC) && USE_RGENGC
369c4dd
***************
369c4dd
*** 565,571 ****
369c4dd
      {"rb_enc_str_new", (RUBY_PROC*)&dll_rb_enc_str_new},
369c4dd
      {"rb_sprintf", (RUBY_PROC*)&dll_rb_sprintf},
369c4dd
      {"rb_require", (RUBY_PROC*)&dll_rb_require},
369c4dd
!     {"ruby_process_options", (RUBY_PROC*)&dll_ruby_process_options},
369c4dd
  # endif
369c4dd
  # if defined(RUBY19_OR_LATER) || defined(RUBY_INIT_STACK)
369c4dd
  #  ifdef __ia64
369c4dd
--- 565,571 ----
369c4dd
      {"rb_enc_str_new", (RUBY_PROC*)&dll_rb_enc_str_new},
369c4dd
      {"rb_sprintf", (RUBY_PROC*)&dll_rb_sprintf},
369c4dd
      {"rb_require", (RUBY_PROC*)&dll_rb_require},
369c4dd
!     {"ruby_options", (RUBY_PROC*)&dll_ruby_options},
369c4dd
  # endif
369c4dd
  # if defined(RUBY19_OR_LATER) || defined(RUBY_INIT_STACK)
369c4dd
  #  ifdef __ia64
369c4dd
***************
369c4dd
*** 817,823 ****
369c4dd
  	    {
369c4dd
  		int dummy_argc = 2;
369c4dd
  		char *dummy_argv[] = {"vim-ruby", "-e0"};
369c4dd
! 		ruby_process_options(dummy_argc, dummy_argv);
369c4dd
  	    }
369c4dd
  	    ruby_script("vim-ruby");
369c4dd
  #else
369c4dd
--- 817,823 ----
369c4dd
  	    {
369c4dd
  		int dummy_argc = 2;
369c4dd
  		char *dummy_argv[] = {"vim-ruby", "-e0"};
369c4dd
! 		ruby_options(dummy_argc, dummy_argv);
369c4dd
  	    }
369c4dd
  	    ruby_script("vim-ruby");
369c4dd
  #else
369c4dd
*** ../vim-7.4.926/src/version.c	2015-11-19 19:00:01.768467013 +0100
369c4dd
--- src/version.c	2015-11-19 19:31:02.392387974 +0100
369c4dd
***************
369c4dd
*** 743,744 ****
369c4dd
--- 743,746 ----
369c4dd
  {   /* Add new patch number below this line */
369c4dd
+ /**/
369c4dd
+     927,
369c4dd
  /**/
369c4dd
369c4dd
-- 
369c4dd
hundred-and-one symptoms of being an internet addict:
369c4dd
116. You are living with your boyfriend who networks your respective
369c4dd
     computers so you can sit in separate rooms and email each other
369c4dd
369c4dd
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
369c4dd
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
369c4dd
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
369c4dd
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///