view src/typemap @ 14075:320956bddcef v8.1.0055

patch 8.1.0055: complete test has wrong order of arguments commit https://github.com/vim/vim/commit/52d3aaeea4c85406f46e2051729e4f007f83b35e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 13 21:27:24 2018 +0200 patch 8.1.0055: complete test has wrong order of arguments Problem: Complete test has wrong order of arguments. Wrong type for sentinel variable. Solution: Swap arguments, use VAR_UNKNOWN. (Ozaki Kiichi)
author Christian Brabandt <cb@256bit.org>
date Wed, 13 Jun 2018 21:30:06 +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}\")