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 / 6.2.376 < prev    next >
Encoding:
Internet Message Format  |  2004-03-17  |  1.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.376
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.2.376
  11. Problem:    Win32: Ruby interface cannot be dynamically linked with Ruby 1.6.
  12. Solution:   Add #ifdefs around use of rb_w32_snprintf().  (Benoεt Cerrina)
  13. Files:        src/if_ruby.c
  14.  
  15.  
  16. *** ../vim-6.2.375/src/if_ruby.c    Wed Feb  4 12:12:05 2004
  17. --- src/if_ruby.c    Thu Mar 18 10:31:43 2004
  18. ***************
  19. *** 184,190 ****
  20. --- 184,192 ----
  21.   static VALUE *dll_ruby_errinfo;
  22.   static void (*dll_ruby_init) (void);
  23.   static void (*dll_ruby_init_loadpath) (void);
  24. + #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
  25.   static int (*dll_rb_w32_snprintf)(char*, size_t, const char*, ...);
  26. + #endif
  27.   
  28.   static HINSTANCE hinstRuby = 0; /* Instance of ruby.dll */
  29.   
  30. ***************
  31. *** 244,250 ****
  32. --- 246,254 ----
  33.       {"ruby_errinfo", (RUBY_PROC*)&dll_ruby_errinfo},
  34.       {"ruby_init", (RUBY_PROC*)&dll_ruby_init},
  35.       {"ruby_init_loadpath", (RUBY_PROC*)&dll_ruby_init_loadpath},
  36. + #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
  37.       {"rb_w32_snprintf", (RUBY_PROC*)&dll_rb_w32_snprintf},
  38. + #endif
  39.       {"", NULL},
  40.   };
  41.   
  42. *** ../vim-6.2.375/src/version.c    Thu Mar 18 12:16:20 2004
  43. --- src/version.c    Thu Mar 18 12:17:26 2004
  44. ***************
  45. *** 639,640 ****
  46. --- 639,642 ----
  47.   {   /* Add new patch number below this line */
  48. + /**/
  49. +     376,
  50.   /**/
  51.  
  52. -- 
  53. Be thankful to be in a traffic jam, because it means you own a car.
  54.  
  55.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  56. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  57. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  58.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  59.