view src/typemap @ 17692:1e3ff1eae4c3 v8.1.1843

patch 8.1.1843: might be freeing memory that was not allocated commit https://github.com/vim/vim/commit/f077db24230d10ef9a66ae14da34b639464d8fa2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 13 00:18:24 2019 +0200 patch 8.1.1843: might be freeing memory that was not allocated Problem: Might be freeing memory that was not allocated. Solution: Have next_fenc() set the fenc_alloced flag. (closes https://github.com/vim/vim/issues/4804)
author Bram Moolenaar <Bram@vim.org>
date Tue, 13 Aug 2019 00:30:05 +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}\")