view src/typemap @ 13286:a90bc1e28cbb v8.0.1517

patch 8.0.1517: invalid memory acces with pattern using look-behind match commit https://github.com/vim/vim/commit/bc197195b097707d08fd44a476dbc374366504cb Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 13 16:35:06 2018 +0100 patch 8.0.1517: invalid memory acces with pattern using look-behind match Problem: Invalid memory acces with pattern using look-behind match. (Dominique Pelle) Solution: Get a pointer to the right line.
author Christian Brabandt <cb@256bit.org>
date Tue, 13 Feb 2018 16:45: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}\")