view src/typemap @ 14605:0c47880f3d95 v8.1.0316

patch 8.1.0316: swapinfo() test fails on Travis commit https://github.com/vim/vim/commit/4c5765bc47b2708075e8d8471e8d342079479777 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 22 11:28:01 2018 +0200 patch 8.1.0316: swapinfo() test fails on Travis Problem: swapinfo() test fails on Travis. Solution: Handle a long host name. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/3361) Also make the version check flexible. (James McCoy)
author Christian Brabandt <cb@256bit.org>
date Wed, 22 Aug 2018 11:30:05 +0200
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}\")