Patch 8.2.0297
Problem:    Compiler warnings for the Ruby interface.
Solution:   Undefine a few macros, fix initialization. (Ozaki Kiichi,
            closes #5677)
Files:      src/if_ruby.c


*** ../vim-8.2.0296/src/if_ruby.c       2020-02-11 23:01:35.755291962 +0100
--- src/if_ruby.c       2020-02-22 14:58:57.490763966 +0100
***************
*** 209,214 ****
--- 209,222 ----
  /*
   * Wrapper defines
   */
+ // Ruby 2.7 actually expands the following symbols as macro.
+ # if RUBY_VERSION >= 27
+ #  undef rb_define_global_function
+ #  undef rb_define_method
+ #  undef rb_define_module_function
+ #  undef rb_define_singleton_method
+ # endif
+ 
  # define rb_assoc_new                 dll_rb_assoc_new
  # define rb_cObject                   (*dll_rb_cObject)
  # define rb_class_new_instance                dll_rb_class_new_instance
***************
*** 1228,1234 ****
      "vim_buffer",
      {0, 0, buffer_dsize,
  # if RUBY_VERSION >= 27
!       0, 0
  # else
        {0, 0}
  # endif
--- 1236,1242 ----
      "vim_buffer",
      {0, 0, buffer_dsize,
  # if RUBY_VERSION >= 27
!       0, {0}
  # else
        {0, 0}
  # endif
***************
*** 1508,1514 ****
      "vim_window",
      {0, 0, window_dsize,
  # if RUBY_VERSION >= 27
!       0, 0
  # else
        {0, 0}
  # endif
--- 1516,1522 ----
      "vim_window",
      {0, 0, window_dsize,
  # if RUBY_VERSION >= 27
!       0, {0}
  # else
        {0, 0}
  # endif
*** ../vim-8.2.0296/src/version.c       2020-02-22 14:26:39.248757828 +0100
--- src/version.c       2020-02-22 15:00:41.782483135 +0100
***************
*** 740,741 ****
--- 740,743 ----
  {   /* Add new patch number below this line */
+ /**/
+     297,
  /**/

-- 
>From "know your smileys":
 :.-(   Crying

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202002221401.01ME1xpA009765%40masaka.moolenaar.net.

Raspunde prin e-mail lui