view src/typemap @ 28594:294771aab3ae v8.2.4821

patch 8.2.4821: crash when imported autoload script was deleted Commit: https://github.com/vim/vim/commit/aac12daa61d9e84616771ec9242fd232f46786e6 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 24 21:33:20 2022 +0100 patch 8.2.4821: crash when imported autoload script was deleted Problem: Crash when imported autoload script was deleted. Solution: Initialize local variable. (closes https://github.com/vim/vim/issues/10274) Give a more meaningful error message.
author Bram Moolenaar <Bram@vim.org>
date Sun, 24 Apr 2022 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}\")