view src/typemap @ 19615:2aaef1547255 v8.2.0364

patch 8.2.0364: printf test failing on Haiku Commit: https://github.com/vim/vim/commit/693e80e93897aff3b07a1ef12b68a6527702f3d7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 8 18:41:09 2020 +0100 patch 8.2.0364: printf test failing on Haiku Problem: Printf test failing on Haiku. Solution: Make a difference between int and short. (Dominique Pelle, closes #5749)
author Bram Moolenaar <Bram@vim.org>
date Sun, 08 Mar 2020 18:45:03 +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}\")