view src/typemap @ 32792:ba5a67216596 v9.0.1712

patch 9.0.1712: missing null check in object_clear() Commit: https://github.com/vim/vim/commit/5b0889b8bf25b0793b1949ec965c94b623900aba Author: Jia-Ju Bai <baijiaju@buaa.edu.cn> Date: Sun Aug 13 20:04:04 2023 +0200 patch 9.0.1712: missing null check in object_clear() Problem: missing null check in object_clear() Solution: Add null check of cl closes: #12627 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Jia-Ju Bai <baijiaju@buaa.edu.cn>
author Christian Brabandt <cb@256bit.org>
date Sun, 13 Aug 2023 20:15: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}\")