view src/typemap @ 10805:750779134e67 v8.0.0292

patch 8.0.0292: the stat test is a bit slow commit https://github.com/vim/vim/commit/a2f28859bfb3fa52bde14c9d2ca3ab7196a9154a Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 1 22:05:28 2017 +0100 patch 8.0.0292: the stat test is a bit slow Problem: The stat test is a bit slow. Solution: Remove a couple of sleep comments and reduce another.
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Feb 2017 22:15:03 +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}\")