view src/typemap @ 9680:1b8932823a02 v7.4.2116

commit https://github.com/vim/vim/commit/c73e4474b1f1b5b18a8d504eec5305e0c77981f7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 29 18:33:38 2016 +0200 patch 7.4.2116 Problem: The default vimrc for Windows is very conservative. Solution: Use the defaults.vim in the Windows installer.
author Christian Brabandt <cb@256bit.org>
date Fri, 29 Jul 2016 18:45:05 +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}\")