view src/typemap @ 9110:6d3888e2232c v7.4.1839

commit https://github.com/vim/vim/commit/2bbf8eff6fab16d86e7bcfc0da1962d31bec7891 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 24 18:37:12 2016 +0200 patch 7.4.1839 Problem: Cannot get the items stored in a partial. Solution: Support using get() on a partial.
author Christian Brabandt <cb@256bit.org>
date Tue, 24 May 2016 18:45: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}\")