view src/typemap @ 22031:f33de1c1eb4a v8.2.1565

patch 8.2.1565: spellfile test sometimes fails Commit: https://github.com/vim/vim/commit/e90d63ea904187ecbb09d0f7f21b71b302b30644 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 2 12:58:48 2020 +0200 patch 8.2.1565: spellfile test sometimes fails Problem: Spellfile test sometimes fails. Solution: Check running into the end of the file.
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Sep 2020 13:00:03 +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}\")