view src/typemap @ 27891:6f5c8493a238 v8.2.4471

patch 8.2.4471: Coverity warns for uninitialized variable Commit: https://github.com/vim/vim/commit/62628d97c4690462ca54781fd16bbfc7ad31477b Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 25 21:10:53 2022 +0000 patch 8.2.4471: Coverity warns for uninitialized variable Problem: Coverity warns for uninitialized variable. Solution: Set flags to zero.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Feb 2022 22:15:04 +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}\")