view src/typemap @ 15332:0eed23d9733a v8.1.0674

patch 8.1.0674: leaking memory when updating a single line commit https://github.com/vim/vim/commit/6d5b4f566a2a50c1de7300336e9e4f5e761500a8 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 1 15:15:47 2019 +0100 patch 8.1.0674: leaking memory when updating a single line Problem: Leaking memory when updating a single line. Solution: Do not call start_search_hl() twice.
author Bram Moolenaar <Bram@vim.org>
date Tue, 01 Jan 2019 15:30:06 +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}\")