view src/typemap @ 11398:30af33f4d353 v8.0.0584

patch 8.0.0584: memory leak when executing quickfix tests commit https://github.com/vim/vim/commit/d788f6fe89c77262c474de323f5dab6d1c814e27 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 23 17:19:43 2017 +0200 patch 8.0.0584: memory leak when executing quickfix tests Problem: Memory leak when executing quickfix tests. Solution: Free the list reference. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Sun, 23 Apr 2017 17:30: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}\")