view src/typemap @ 16503:17f5563d1285 v8.1.1255

patch 8.1.1255: building desktop files fails on FreeBSD commit https://github.com/vim/vim/commit/12e91862c14a1af44b537d478e8a5021893044fe Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 3 21:20:03 2019 +0200 patch 8.1.1255: building desktop files fails on FreeBSD Problem: Building desktop files fails on FreeBSD. (Adam Weinberger) Solution: Avoid using non-portable construct in Makefile. (closes https://github.com/vim/vim/issues/4332)
author Bram Moolenaar <Bram@vim.org>
date Fri, 03 May 2019 21:30:05 +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}\")