view src/typemap @ 11030:9d40a98f0834 v8.0.0404

patch 8.0.0404: not enough testing for quickfix commit https://github.com/vim/vim/commit/391b1dd040af204b150d43c5a1c97477ee450a28 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 4 13:47:11 2017 +0100 patch 8.0.0404: not enough testing for quickfix Problem: Not enough testing for quickfix. Solution: Add some more tests. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Sat, 04 Mar 2017 14:00: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}\")