view src/typemap @ 15253:8d7a3fd70ff4 v8.1.0635

patch 8.1.0635: Coverity complains about null pointer use commit https://github.com/vim/vim/commit/e38197d50f7068c4b68043792d283da98e526ec3 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 24 23:35:13 2018 +0100 patch 8.1.0635: Coverity complains about null pointer use Problem: Coverity complains about null pointer use. Solution: Avoid using a null pointer.
author Bram Moolenaar <Bram@vim.org>
date Mon, 24 Dec 2018 23:45: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}\")