view src/typemap @ 13232:d11bbd3440b0 v8.0.1490

patch 8.0.1490: number of spell regions is spread out through the code commit https://github.com/vim/vim/commit/2993ac5fce5450428322ce43aaa5e643e6994443 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 10 14:12:43 2018 +0100 patch 8.0.1490: number of spell regions is spread out through the code Problem: Number of spell regions is spread out through the code. Solution: Define MAXREGIONS.
author Christian Brabandt <cb@256bit.org>
date Sat, 10 Feb 2018 14:15:05 +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}\")