view src/typemap @ 10544:a3cef16bea27 v8.0.0162

patch 8.0.0162: build error on Fedora 23 commit https://github.com/vim/vim/commit/009c7b2640b6e04c101118cc7d0dc5785f9aa116 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 9 20:30:27 2017 +0100 patch 8.0.0162: build error on Fedora 23 Problem: Build error on Fedora 23 with small features and gnome2. Solution: Undefine ngettext(). (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Mon, 09 Jan 2017 20:45:04 +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}\")