view src/typemap @ 27788:a1effd6bb5ba v8.2.4420

patch 8.2.4420: menu translations are inconsistent Commit: https://github.com/vim/vim/commit/a42535340a906d33173e8b3e82085c161a0524c8 Author: Ada <me@yuhaowen.com> Date: Sat Feb 19 12:06:09 2022 +0000 patch 8.2.4420: menu translations are inconsistent Problem: Menu translations are inconsistent. Solution: Add a Makefile to convert between encodings. (Ada (Haowen) Yu, closes #9801)
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Feb 2022 13:15: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}\")