view src/typemap @ 11802:b1fd49b4eea7 v8.0.0783

patch 8.0.0783: job of terminal may be freed too early commit https://github.com/vim/vim/commit/0e83f02d80acacee55c5de3bbbee52625d368375 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 27 22:07:35 2017 +0200 patch 8.0.0783: job of terminal may be freed too early Problem: Job of terminal may be freed too early. Solution: Increment job refcount. (Yasuhiro Matsumoto)
author Christian Brabandt <cb@256bit.org>
date Thu, 27 Jul 2017 22:15: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}\")