view src/typemap @ 27384:0b1acd38c7de v8.2.4220

patch 8.2.4220: MS-Windows: some old compiler support remains Commit: https://github.com/vim/vim/commit/250155ae319802418c1576e9ff88d0e16b108282 Author: K.Takata <kentkt@csc.jp> Date: Wed Jan 26 11:16:52 2022 +0000 patch 8.2.4220: MS-Windows: some old compiler support remains Problem: MS-Windows: some old compiler support remains. Solution: Remove obsolete compiler support. (Ken Takata, closes https://github.com/vim/vim/issues/9627)
author Bram Moolenaar <Bram@vim.org>
date Wed, 26 Jan 2022 12:30:06 +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}\")