view src/typemap @ 7123:077ae8b63e15 v7.4.873

commit https://github.com/vim/vim/commit/b8603882b1679385b287f14c527fa61eee60a9dd Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 17 23:20:42 2015 +0200 patch 7.4.873 Problem: Compiler warning for unused variable. (Tony Mechelynck) Solution: Remove the variable. Also fix int vs long_u mixup.
author Christian Brabandt <cb@256bit.org>
date Thu, 17 Sep 2015 23:30:04 +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}\")