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.439 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.4 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.439
  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.439
  11. Problem:    Compiler warnings to size casts in Perl interface.
  12. Solution:   Use XS macros. (James McCoy)
  13. Files:      src/if_perl.xs, src/typemap
  14.  
  15.  
  16. *** ../vim-7.3.438/src/if_perl.xs    2011-09-07 18:47:19.000000000 +0200
  17. --- src/if_perl.xs    2012-02-12 00:28:52.000000000 +0100
  18. ***************
  19. *** 611,617 ****
  20.       if (ptr->w_perl_private == NULL)
  21.       {
  22.       ptr->w_perl_private = newSV(0);
  23. !     sv_setiv(ptr->w_perl_private, (IV)ptr);
  24.       }
  25.       else
  26.       SvREFCNT_inc(ptr->w_perl_private);
  27. --- 611,617 ----
  28.       if (ptr->w_perl_private == NULL)
  29.       {
  30.       ptr->w_perl_private = newSV(0);
  31. !     sv_setiv(ptr->w_perl_private, PTR2IV(ptr));
  32.       }
  33.       else
  34.       SvREFCNT_inc(ptr->w_perl_private);
  35. ***************
  36. *** 629,635 ****
  37.       if (ptr->b_perl_private == NULL)
  38.       {
  39.       ptr->b_perl_private = newSV(0);
  40. !     sv_setiv(ptr->b_perl_private, (IV)ptr);
  41.       }
  42.       else
  43.       SvREFCNT_inc(ptr->b_perl_private);
  44. --- 629,635 ----
  45.       if (ptr->b_perl_private == NULL)
  46.       {
  47.       ptr->b_perl_private = newSV(0);
  48. !     sv_setiv(ptr->b_perl_private, PTR2IV(ptr));
  49.       }
  50.       else
  51.       SvREFCNT_inc(ptr->b_perl_private);
  52. *** ../vim-7.3.438/src/typemap    2010-08-15 21:57:29.000000000 +0200
  53. --- src/typemap    2012-02-12 00:28:52.000000000 +0100
  54. ***************
  55. *** 6,12 ****
  56.   T_VIOBJNOMUNGE
  57.       if (sv_isa($arg, \"${ntype}\")) {
  58.           IV tmp = SvIV((SV*)SvRV($arg));
  59. !         $var = ($type) tmp;
  60.           if (!tmp)
  61.           croak(\"$ntype no longer exists\");
  62.       }
  63. --- 6,12 ----
  64.   T_VIOBJNOMUNGE
  65.       if (sv_isa($arg, \"${ntype}\")) {
  66.           IV tmp = SvIV((SV*)SvRV($arg));
  67. !         $var = INT2PTR($type, tmp);
  68.           if (!tmp)
  69.           croak(\"$ntype no longer exists\");
  70.       }
  71. *** ../vim-7.3.438/src/version.c    2012-02-12 00:18:54.000000000 +0100
  72. --- src/version.c    2012-02-12 00:31:18.000000000 +0100
  73. ***************
  74. *** 716,717 ****
  75. --- 716,719 ----
  76.   {   /* Add new patch number below this line */
  77. + /**/
  78. +     439,
  79.   /**/
  80.  
  81. -- 
  82. Microsoft is to software what McDonalds is to gourmet cooking
  83.  
  84.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  85. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  86. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  87.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  88.