view src/typemap @ 12962:15a78f9a978f v8.0.1357

patch 8.0.1357: startup test fails on OpenBSD commit https://github.com/vim/vim/commit/1a2ab991a6d168699fbcc934b63cfc3579c3d34d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 28 21:06:18 2017 +0100 patch 8.0.1357: startup test fails on OpenBSD Problem: Startup test fails on OpenBSD. (Edd Barrett) Solution: Check for "BSD" instead of "FreeBSD" being defined. (James McCoy, closes #2376, closes #2378)
author Christian Brabandt <cb@256bit.org>
date Tue, 28 Nov 2017 21:15: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}\")