view src/typemap @ 11770:0aa1910a3dfa v8.0.0767

patch 8.0.0767: build failure with Athena and Motif commit https://github.com/vim/vim/commit/d60547bf80881f6c99bcbd7c8c4c6cfb7e405a90 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 24 20:15:30 2017 +0200 patch 8.0.0767: build failure with Athena and Motif Problem: Build failure with Athena and Motif. Solution: Move local variable delcarations. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Mon, 24 Jul 2017 20:30:06 +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}\")