view src/typemap @ 32896:223765c87ea9 v9.0.1757

patch 9.0.1757: ex_class() function is too long Commit: https://github.com/vim/vim/commit/4b1cc7906f2fa9aa5a41c16467e5d3ac4b64e323 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Aug 19 22:39:33 2023 +0200 patch 9.0.1757: ex_class() function is too long Problem: ex_class() function is too long Solution: refactor it closes: #12858 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Aug 2023 22:45: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}\")