view src/typemap @ 18285:db8cd5e56586 v8.1.2137

patch 8.1.2137: parsing the termresponse is not tested Commit: https://github.com/vim/vim/commit/1a4cbb19ded7ad6cb161f2797e0414032d1f9b5c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 12 13:25:44 2019 +0200 patch 8.1.2137: parsing the termresponse is not tested Problem: Parsing the termresponse is not tested. Solution: Add a first test. (related to https://github.com/vim/vim/issues/5042)
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Oct 2019 13:30:03 +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}\")