view src/typemap @ 27901:dd7d94b911fa v8.2.4476

patch 8.2.4476: operator name spelled wrong Commit: https://github.com/vim/vim/commit/e41c1dd8890d3f701253255993f4e9af2d12225c Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Sat Feb 26 11:46:13 2022 +0000 patch 8.2.4476: operator name spelled wrong Problem: Operator name spelled wrong. Solution: Change trinary to ternary. (Goc Dundar, closes https://github.com/vim/vim/issues/9850)
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Feb 2022 13:00:04 +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}\")