view src/typemap @ 7256:79270eaac6de v7.4.936

commit https://github.com/vim/vim/commit/294a7e55b01149154807a23323038784549b8946 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 22 19:39:38 2015 +0100 patch 7.4.936 Problem: Crash when dragging with the mouse. Solution: Add safety check for NULL pointer. Check mouse position for valid value. (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Sun, 22 Nov 2015 19:45: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}\")