view src/typemap @ 28325:a3a760ee765f v8.2.4688

patch 8.2.4688: new regexp engine does not give an error for "%v" Commit: https://github.com/vim/vim/commit/91ff3d4f52a55a7c37a52aaad524cd9dd12efae4 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 4 18:32:32 2022 +0100 patch 8.2.4688: new regexp engine does not give an error for "\%v" Problem: New regexp engine does not give an error for "\%v". Solution: Check for a value argument. (issue https://github.com/vim/vim/issues/10079)
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Apr 2022 19: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}\")