Karsten Hopp dbb154
To: vim_dev@googlegroups.com
Karsten Hopp dbb154
Subject: Patch 7.3.439
Karsten Hopp dbb154
Fcc: outbox
Karsten Hopp dbb154
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp dbb154
Mime-Version: 1.0
Karsten Hopp dbb154
Content-Type: text/plain; charset=UTF-8
Karsten Hopp dbb154
Content-Transfer-Encoding: 8bit
Karsten Hopp dbb154
------------
Karsten Hopp dbb154
Karsten Hopp dbb154
Patch 7.3.439
Karsten Hopp dbb154
Problem:    Compiler warnings to size casts in Perl interface.
Karsten Hopp dbb154
Solution:   Use XS macros. (James McCoy)
Karsten Hopp dbb154
Files:      src/if_perl.xs, src/typemap
Karsten Hopp dbb154
Karsten Hopp dbb154
Karsten Hopp dbb154
*** ../vim-7.3.438/src/if_perl.xs	2011-09-07 18:47:19.000000000 +0200
Karsten Hopp dbb154
--- src/if_perl.xs	2012-02-12 00:28:52.000000000 +0100
Karsten Hopp dbb154
***************
Karsten Hopp dbb154
*** 611,617 ****
Karsten Hopp dbb154
      if (ptr->w_perl_private == NULL)
Karsten Hopp dbb154
      {
Karsten Hopp dbb154
  	ptr->w_perl_private = newSV(0);
Karsten Hopp dbb154
! 	sv_setiv(ptr->w_perl_private, (IV)ptr);
Karsten Hopp dbb154
      }
Karsten Hopp dbb154
      else
Karsten Hopp dbb154
  	SvREFCNT_inc(ptr->w_perl_private);
Karsten Hopp dbb154
--- 611,617 ----
Karsten Hopp dbb154
      if (ptr->w_perl_private == NULL)
Karsten Hopp dbb154
      {
Karsten Hopp dbb154
  	ptr->w_perl_private = newSV(0);
Karsten Hopp dbb154
! 	sv_setiv(ptr->w_perl_private, PTR2IV(ptr));
Karsten Hopp dbb154
      }
Karsten Hopp dbb154
      else
Karsten Hopp dbb154
  	SvREFCNT_inc(ptr->w_perl_private);
Karsten Hopp dbb154
***************
Karsten Hopp dbb154
*** 629,635 ****
Karsten Hopp dbb154
      if (ptr->b_perl_private == NULL)
Karsten Hopp dbb154
      {
Karsten Hopp dbb154
  	ptr->b_perl_private = newSV(0);
Karsten Hopp dbb154
! 	sv_setiv(ptr->b_perl_private, (IV)ptr);
Karsten Hopp dbb154
      }
Karsten Hopp dbb154
      else
Karsten Hopp dbb154
  	SvREFCNT_inc(ptr->b_perl_private);
Karsten Hopp dbb154
--- 629,635 ----
Karsten Hopp dbb154
      if (ptr->b_perl_private == NULL)
Karsten Hopp dbb154
      {
Karsten Hopp dbb154
  	ptr->b_perl_private = newSV(0);
Karsten Hopp dbb154
! 	sv_setiv(ptr->b_perl_private, PTR2IV(ptr));
Karsten Hopp dbb154
      }
Karsten Hopp dbb154
      else
Karsten Hopp dbb154
  	SvREFCNT_inc(ptr->b_perl_private);
Karsten Hopp dbb154
*** ../vim-7.3.438/src/typemap	2010-08-15 21:57:29.000000000 +0200
Karsten Hopp dbb154
--- src/typemap	2012-02-12 00:28:52.000000000 +0100
Karsten Hopp dbb154
***************
Karsten Hopp dbb154
*** 6,12 ****
Karsten Hopp dbb154
  T_VIOBJNOMUNGE
Karsten Hopp dbb154
  	if (sv_isa($arg, \"${ntype}\")) {
Karsten Hopp dbb154
  	    IV tmp = SvIV((SV*)SvRV($arg));
Karsten Hopp dbb154
! 	    $var = ($type) tmp;
Karsten Hopp dbb154
  	    if (!tmp)
Karsten Hopp dbb154
  		croak(\"$ntype no longer exists\");
Karsten Hopp dbb154
  	}
Karsten Hopp dbb154
--- 6,12 ----
Karsten Hopp dbb154
  T_VIOBJNOMUNGE
Karsten Hopp dbb154
  	if (sv_isa($arg, \"${ntype}\")) {
Karsten Hopp dbb154
  	    IV tmp = SvIV((SV*)SvRV($arg));
Karsten Hopp dbb154
! 	    $var = INT2PTR($type, tmp);
Karsten Hopp dbb154
  	    if (!tmp)
Karsten Hopp dbb154
  		croak(\"$ntype no longer exists\");
Karsten Hopp dbb154
  	}
Karsten Hopp dbb154
*** ../vim-7.3.438/src/version.c	2012-02-12 00:18:54.000000000 +0100
Karsten Hopp dbb154
--- src/version.c	2012-02-12 00:31:18.000000000 +0100
Karsten Hopp dbb154
***************
Karsten Hopp dbb154
*** 716,717 ****
Karsten Hopp dbb154
--- 716,719 ----
Karsten Hopp dbb154
  {   /* Add new patch number below this line */
Karsten Hopp dbb154
+ /**/
Karsten Hopp dbb154
+     439,
Karsten Hopp dbb154
  /**/
Karsten Hopp dbb154
Karsten Hopp dbb154
-- 
Karsten Hopp dbb154
Microsoft is to software what McDonalds is to gourmet cooking
Karsten Hopp dbb154
Karsten Hopp dbb154
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp dbb154
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp dbb154
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp dbb154
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///