view src/typemap @ 19073:45eb6f37692e v8.2.0097

patch 8.2.0097: crash with autocommand and spellfile Commit: https://github.com/vim/vim/commit/ce6db0273f2c4359f48d75103a42991aa481f14e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 7 20:11:42 2020 +0100 patch 8.2.0097: crash with autocommand and spellfile Problem: Crash with autocommand and spellfile. (Tim Pope) Solution: Do not pop exestack when not pushed. (closes https://github.com/vim/vim/issues/5450)
author Bram Moolenaar <Bram@vim.org>
date Tue, 07 Jan 2020 20:15: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}\")