view src/typemap @ 32671:031c73248fa7 v9.0.1666

patch 9.0.1666: compiler may warn for uninitialized variable Commit: https://github.com/vim/vim/commit/a2a90d5e202c3f8c5cbbf945b94833007b5711e7 Author: Christian Brabandt <cb@256bit.org> Date: Mon Jun 26 18:48:09 2023 +0100 patch 9.0.1666: compiler may warn for uninitialized variable Problem: Compiler may warn for uninitialized variable. Solution: Initialize this_props_len. (Christian Brabandt, closes https://github.com/vim/vim/issues/12599)
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Jun 2023 20:00: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}\")