comparison src/typemap @ 3344:dec4338a7da2 v7.3.439

updated for version 7.3.439 Problem: Compiler warnings to size casts in Perl interface. Solution: Use XS macros. (James McCoy)
author Bram Moolenaar <bram@vim.org>
date Sun, 12 Feb 2012 00:31:52 +0100
parents 3fc0f57ecb91
children
comparison
equal deleted inserted replaced
3343:a64a3bc0feda 3344:dec4338a7da2
4 4
5 INPUT 5 INPUT
6 T_VIOBJNOMUNGE 6 T_VIOBJNOMUNGE
7 if (sv_isa($arg, \"${ntype}\")) { 7 if (sv_isa($arg, \"${ntype}\")) {
8 IV tmp = SvIV((SV*)SvRV($arg)); 8 IV tmp = SvIV((SV*)SvRV($arg));
9 $var = ($type) tmp; 9 $var = INT2PTR($type, tmp);
10 if (!tmp) 10 if (!tmp)
11 croak(\"$ntype no longer exists\"); 11 croak(\"$ntype no longer exists\");
12 } 12 }
13 else 13 else
14 croak(\"$var is not of type ${ntype}\") 14 croak(\"$var is not of type ${ntype}\")