home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.889 < prev    next >
Encoding:
Internet Message Format  |  2013-04-13  |  2.0 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.889
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.889
  11. Problem:    Can't build with Ruby 2.0 on a 64 bit system.
  12. Solution:   Define rb_fix2int and rb_num2int. (Kohei Suzuki)
  13. Files:        src/if_ruby.c
  14.  
  15.  
  16. *** ../vim-7.3.888/src/if_ruby.c    2013-03-07 15:16:16.000000000 +0100
  17. --- src/if_ruby.c    2013-04-12 15:25:26.000000000 +0200
  18. ***************
  19. *** 88,93 ****
  20. --- 88,101 ----
  21.   # define rb_int2big rb_int2big_stub
  22.   #endif
  23.   
  24. + #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 \
  25. +     && SIZEOF_INT < SIZEOF_LONG
  26. + /* Ruby 2.0 defines a number of static functions which use rb_fix2int and
  27. +  * rb_num2int if SIZEOF_INT < SIZEOF_LONG (64bit) */
  28. + # define rb_fix2int rb_fix2int_stub
  29. + # define rb_num2int rb_num2int_stub
  30. + #endif
  31.   #include <ruby.h>
  32.   #ifdef RUBY19_OR_LATER
  33.   # include <ruby/encoding.h>
  34. ***************
  35. *** 352,357 ****
  36. --- 360,376 ----
  37.   {
  38.       return dll_rb_int2big(x);
  39.   }
  40. + #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20 \
  41. +     && SIZEOF_INT < SIZEOF_LONG
  42. + long rb_fix2int_stub(VALUE x)
  43. + {
  44. +     return dll_rb_fix2int(x);
  45. + }
  46. + long rb_num2int_stub(VALUE x)
  47. + {
  48. +     return dll_rb_num2int(x);
  49. + }
  50. + #endif
  51.   #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20
  52.   VALUE
  53.   rb_float_new_in_heap(double d)
  54. *** ../vim-7.3.888/src/version.c    2013-04-12 14:42:35.000000000 +0200
  55. --- src/version.c    2013-04-12 15:24:15.000000000 +0200
  56. ***************
  57. *** 730,731 ****
  58. --- 730,733 ----
  59.   {   /* Add new patch number below this line */
  60. + /**/
  61. +     889,
  62.   /**/
  63.  
  64. -- 
  65. "Hit any key to continue" is very confusing when you have two keyboards.
  66.  
  67.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  68. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  69. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  70.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  71.