view src/typemap @ 15695:ac05f8fb4200 v8.1.0855

patch 8.1.0855: cannot build xxd with MSVC 10 commit https://github.com/vim/vim/commit/af703585a34aa30bb5bdf8c05e4be8b3c66f787a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 31 11:00:42 2019 +0100 patch 8.1.0855: cannot build xxd with MSVC 10 Problem: Cannot build xxd with MSVC 10. Solution: Move declaration to start of block.
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Jan 2019 11:15:07 +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}\")