view src/typemap @ 13646:86eb21bb5920 v8.0.1695

patch 8.0.1695: xxd test not run on MS-Windows commit https://github.com/vim/vim/commit/6995c0a7a91986caa0b495dd926d440c1e99f651 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 10 21:46:10 2018 +0200 patch 8.0.1695: xxd test not run on MS-Windows Problem: Xxd test not run on MS-Windows. Solution: Use xxd.exe if it exists.
author Christian Brabandt <cb@256bit.org>
date Tue, 10 Apr 2018 22:00:08 +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}\")