view src/typemap @ 13018:8862bf5adf7b v8.0.1385

patch 8.0.1385: Python 3.5 is getting old commit https://github.com/vim/vim/commit/59eb016dff3fd4f764cfe326c80a9b840f0e1a02 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 10 18:17:44 2017 +0100 patch 8.0.1385: Python 3.5 is getting old Problem: Python 3.5 is getting old. Solution: Make Python 3.6 the default. (Ken Takata, closes https://github.com/vim/vim/issues/2429)
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Dec 2017 18:30: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}\")