summaryrefslogtreecommitdiff
path: root/source/ap/vim/patches/7.3.439
blob: 63d8f693f27339b0878336baa7578a383983516a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
To: vim_dev@googlegroups.com
Subject: Patch 7.3.439
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.439
Problem:    Compiler warnings to size casts in Perl interface.
Solution:   Use XS macros. (James McCoy)
Files:      src/if_perl.xs, src/typemap


*** ../vim-7.3.438/src/if_perl.xs	2011-09-07 18:47:19.000000000 +0200
--- src/if_perl.xs	2012-02-12 00:28:52.000000000 +0100
***************
*** 611,617 ****
      if (ptr->w_perl_private == NULL)
      {
  	ptr->w_perl_private = newSV(0);
! 	sv_setiv(ptr->w_perl_private, (IV)ptr);
      }
      else
  	SvREFCNT_inc(ptr->w_perl_private);
--- 611,617 ----
      if (ptr->w_perl_private == NULL)
      {
  	ptr->w_perl_private = newSV(0);
! 	sv_setiv(ptr->w_perl_private, PTR2IV(ptr));
      }
      else
  	SvREFCNT_inc(ptr->w_perl_private);
***************
*** 629,635 ****
      if (ptr->b_perl_private == NULL)
      {
  	ptr->b_perl_private = newSV(0);
! 	sv_setiv(ptr->b_perl_private, (IV)ptr);
      }
      else
  	SvREFCNT_inc(ptr->b_perl_private);
--- 629,635 ----
      if (ptr->b_perl_private == NULL)
      {
  	ptr->b_perl_private = newSV(0);
! 	sv_setiv(ptr->b_perl_private, PTR2IV(ptr));
      }
      else
  	SvREFCNT_inc(ptr->b_perl_private);
*** ../vim-7.3.438/src/typemap	2010-08-15 21:57:29.000000000 +0200
--- src/typemap	2012-02-12 00:28:52.000000000 +0100
***************
*** 6,12 ****
  T_VIOBJNOMUNGE
  	if (sv_isa($arg, \"${ntype}\")) {
  	    IV tmp = SvIV((SV*)SvRV($arg));
! 	    $var = ($type) tmp;
  	    if (!tmp)
  		croak(\"$ntype no longer exists\");
  	}
--- 6,12 ----
  T_VIOBJNOMUNGE
  	if (sv_isa($arg, \"${ntype}\")) {
  	    IV tmp = SvIV((SV*)SvRV($arg));
! 	    $var = INT2PTR($type, tmp);
  	    if (!tmp)
  		croak(\"$ntype no longer exists\");
  	}
*** ../vim-7.3.438/src/version.c	2012-02-12 00:18:54.000000000 +0100
--- src/version.c	2012-02-12 00:31:18.000000000 +0100
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     439,
  /**/

-- 
Microsoft is to software what McDonalds is to gourmet cooking

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///