Karsten Hopp d4a36b
To: vim_dev@googlegroups.com
Karsten Hopp d4a36b
Subject: Patch 7.3.676
Karsten Hopp d4a36b
Fcc: outbox
Karsten Hopp d4a36b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d4a36b
Mime-Version: 1.0
Karsten Hopp d4a36b
Content-Type: text/plain; charset=UTF-8
Karsten Hopp d4a36b
Content-Transfer-Encoding: 8bit
Karsten Hopp d4a36b
------------
Karsten Hopp d4a36b
Karsten Hopp d4a36b
Patch 7.3.676
Karsten Hopp d4a36b
Problem:    Ruby compilation on Windows 32 bit doesn't work.
Karsten Hopp d4a36b
Solution:   Only use some functions for 64 bit. (Ken Takata)
Karsten Hopp d4a36b
Files:	    src/if_ruby.c
Karsten Hopp d4a36b
Karsten Hopp d4a36b
Karsten Hopp d4a36b
*** ../vim-7.3.675/src/if_ruby.c	2012-09-18 16:36:26.000000000 +0200
Karsten Hopp d4a36b
--- src/if_ruby.c	2012-10-03 17:55:58.000000000 +0200
Karsten Hopp d4a36b
***************
Karsten Hopp d4a36b
*** 178,186 ****
Karsten Hopp d4a36b
--- 178,188 ----
Karsten Hopp d4a36b
  #define rb_hash_new			dll_rb_hash_new
Karsten Hopp d4a36b
  #define rb_inspect			dll_rb_inspect
Karsten Hopp d4a36b
  #define rb_int2inum			dll_rb_int2inum
Karsten Hopp d4a36b
+ #if SIZEOF_INT < SIZEOF_LONG /* 64 bits only */
Karsten Hopp d4a36b
  #define rb_fix2int			dll_rb_fix2int
Karsten Hopp d4a36b
  #define rb_num2int			dll_rb_num2int
Karsten Hopp d4a36b
  #define rb_num2uint			dll_rb_num2uint
Karsten Hopp d4a36b
+ #endif
Karsten Hopp d4a36b
  #define rb_lastline_get			dll_rb_lastline_get
Karsten Hopp d4a36b
  #define rb_lastline_set			dll_rb_lastline_set
Karsten Hopp d4a36b
  #define rb_load_protect			dll_rb_load_protect
Karsten Hopp d4a36b
***************
Karsten Hopp d4a36b
*** 271,279 ****
Karsten Hopp d4a36b
--- 273,283 ----
Karsten Hopp d4a36b
  static VALUE (*dll_rb_hash_new) (void);
Karsten Hopp d4a36b
  static VALUE (*dll_rb_inspect) (VALUE);
Karsten Hopp d4a36b
  static VALUE (*dll_rb_int2inum) (long);
Karsten Hopp d4a36b
+ #if SIZEOF_INT < SIZEOF_LONG /* 64 bits only */
Karsten Hopp d4a36b
  static long (*dll_rb_fix2int) (VALUE);
Karsten Hopp d4a36b
  static long (*dll_rb_num2int) (VALUE);
Karsten Hopp d4a36b
  static unsigned long (*dll_rb_num2uint) (VALUE);
Karsten Hopp d4a36b
+ #endif
Karsten Hopp d4a36b
  static VALUE (*dll_rb_lastline_get) (void);
Karsten Hopp d4a36b
  static void (*dll_rb_lastline_set) (VALUE);
Karsten Hopp d4a36b
  static void (*dll_rb_load_protect) (VALUE, int, int*);
Karsten Hopp d4a36b
***************
Karsten Hopp d4a36b
*** 382,390 ****
Karsten Hopp d4a36b
--- 386,396 ----
Karsten Hopp d4a36b
      {"rb_hash_new", (RUBY_PROC*)&dll_rb_hash_new},
Karsten Hopp d4a36b
      {"rb_inspect", (RUBY_PROC*)&dll_rb_inspect},
Karsten Hopp d4a36b
      {"rb_int2inum", (RUBY_PROC*)&dll_rb_int2inum},
Karsten Hopp d4a36b
+ #if SIZEOF_INT < SIZEOF_LONG /* 64 bits only */
Karsten Hopp d4a36b
      {"rb_fix2int", (RUBY_PROC*)&dll_rb_fix2int},
Karsten Hopp d4a36b
      {"rb_num2int", (RUBY_PROC*)&dll_rb_num2int},
Karsten Hopp d4a36b
      {"rb_num2uint", (RUBY_PROC*)&dll_rb_num2uint},
Karsten Hopp d4a36b
+ #endif
Karsten Hopp d4a36b
      {"rb_lastline_get", (RUBY_PROC*)&dll_rb_lastline_get},
Karsten Hopp d4a36b
      {"rb_lastline_set", (RUBY_PROC*)&dll_rb_lastline_set},
Karsten Hopp d4a36b
      {"rb_load_protect", (RUBY_PROC*)&dll_rb_load_protect},
Karsten Hopp d4a36b
*** ../vim-7.3.675/src/version.c	2012-10-03 17:12:43.000000000 +0200
Karsten Hopp d4a36b
--- src/version.c	2012-10-03 17:52:11.000000000 +0200
Karsten Hopp d4a36b
***************
Karsten Hopp d4a36b
*** 721,722 ****
Karsten Hopp d4a36b
--- 721,724 ----
Karsten Hopp d4a36b
  {   /* Add new patch number below this line */
Karsten Hopp d4a36b
+ /**/
Karsten Hopp d4a36b
+     676,
Karsten Hopp d4a36b
  /**/
Karsten Hopp d4a36b
Karsten Hopp d4a36b
-- 
Karsten Hopp d4a36b
Why don't cannibals eat clowns?
Karsten Hopp d4a36b
Because they taste funny.
Karsten Hopp d4a36b
Karsten Hopp d4a36b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d4a36b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d4a36b
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp d4a36b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///