view src/typemap @ 10015:5ac2dd61ca8f v7.4.2280

commit https://github.com/vim/vim/commit/e999782e369999539a1783a7ebe4eadcc6da28a8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 28 16:03:38 2016 +0200 patch 7.4.2280 Problem: printf() doesn't handle infinity float values correctly. Solution: Add a table with possible infinity values. (Dominique Pelle)
author Christian Brabandt <cb@256bit.org>
date Sun, 28 Aug 2016 16:15: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}\")