view src/typemap @ 28572:3c7f1b3ae427 v8.2.4810

patch 8.2.4810: missing changes in one file Commit: https://github.com/vim/vim/commit/56dba60216a1bf72c1de299316f4d4ef19e50ad5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 23 11:03:58 2022 +0100 patch 8.2.4810: missing changes in one file Problem: Missing changes in one file. Solution: Also change the struct initializers.
author Bram Moolenaar <Bram@vim.org>
date Sat, 23 Apr 2022 12:15:03 +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}\")