view src/typemap @ 21106:47978b89a02e v8.2.1104

patch 8.2.1104: Coverity warnts for possible NULL pointer use Commit: https://github.com/vim/vim/commit/11b6600c88165c70d9ccbbdd4d9c96e8266e365f Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 1 13:15:24 2020 +0200 patch 8.2.1104: Coverity warnts for possible NULL pointer use Problem: Coverity warnts for possible NULL pointer use. Solution: Check "pbyts" is not NULL.
author Bram Moolenaar <Bram@vim.org>
date Wed, 01 Jul 2020 13:30:04 +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}\")