view src/typemap @ 7248:dc7b1567d057 v7.4.932

commit https://github.com/vim/vim/commit/8f08dab18df6dbf6c4b4973fd2d480e4bffb82d8 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 21 14:31:33 2015 +0100 patch 7.4.932 Problem: test_utf8 has confusing dummy command. Solution: Use a real command instead of a colon.
author Christian Brabandt <cb@256bit.org>
date Sat, 21 Nov 2015 14:45:04 +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}\")