view src/typemap @ 33264:fda04a2e9dee v9.0.1900

patch 9.0.1900: Configure script uses non-portable == comparison Commit: https://github.com/vim/vim/commit/e7d79eb98a30c529cf53fb4852a71b9fd1336c41 Author: Yee Cheng Chin <ychin.git@gmail.com> Date: Sat Sep 16 13:38:26 2023 +0200 patch 9.0.1900: Configure script uses non-portable == comparison Problem: Configure script uses non-portable == comparison Solution: Use the standard and portable "=" instead closes: #13095 closes: #13099 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Sep 2023 13:45:06 +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}\")