view src/typemap @ 10605:9279c939391b v8.0.0192

patch 8.0.0192: cannot build with tiny features commit https://github.com/vim/vim/commit/42b8d916c719002dbafade6b977d4e266f8712dc Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 15 17:18:57 2017 +0100 patch 8.0.0192: cannot build with tiny features Problem: Build fails with tiny features. Solution: Change #ifdef for hash_clear(). Avoid warning for unused argument.
author Christian Brabandt <cb@256bit.org>
date Sun, 15 Jan 2017 17:30: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}\")