view src/typemap @ 15217:49bc670c3ee9 v8.1.0618

patch 8.1.0618: term_getjob() does not return v:null as documented commit https://github.com/vim/vim/commit/528ccfbaa1cc805f430a750c551e5a9fd7eb54fe Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 21 20:55:22 2018 +0100 patch 8.1.0618: term_getjob() does not return v:null as documented Problem: term_getjob() does not return v:null as documented. Solution: Do return v:null. (Damien) Add a test.
author Bram Moolenaar <Bram@vim.org>
date Fri, 21 Dec 2018 21:00:06 +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}\")