view src/typemap @ 16435:65d5f7039131 v8.1.1222

patch 8.1.1222: build still fails on MS-Windows commit https://github.com/vim/vim/commit/dcaa54dded7c7ef9b2217a205d23301d313e96dc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 27 22:45:00 2019 +0200 patch 8.1.1222: build still fails on MS-Windows Problem: Build still fails on MS-Windows. Solution: Move another declaration to start of block.
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Apr 2019 23:00: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}\")