view src/typemap @ 16030:6694659c6ad6 v8.1.1020

patch 8.1.1020: compiler warning for Python3 interface commit https://github.com/vim/vim/commit/828bff1f9b4847da79abd7a97ddc48687e257d6c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 19 22:11:41 2019 +0100 patch 8.1.1020: compiler warning for Python3 interface Problem: Compiler warning for Python3 interface. Solution: Add type cast. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/4128, closes https://github.com/vim/vim/issues/4103)
author Bram Moolenaar <Bram@vim.org>
date Tue, 19 Mar 2019 22:15:05 +0100
parents dec4338a7da2
children
line wrap: on
line source

TYPEMAP
VIWIN	T_VIOBJNOMUNGE
VIBUF	T_VIOBJNOMUNGE

INPUT
T_VIOBJNOMUNGE
	if (sv_isa($arg, \"${ntype}\")) {
	    IV tmp = SvIV((SV*)SvRV($arg));
	    $var = INT2PTR($type, tmp);
	    if (!tmp)
		croak(\"$ntype no longer exists\");
	}
	else
	    croak(\"$var is not of type ${ntype}\")