view src/typemap @ 14202:51693b1a640e v8.1.0118

patch 8.1.0118: duplicate error message for put command commit https://github.com/vim/vim/commit/f52f9ea8f5fb3df51a308c56f2bf66f735ef3ca7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 27 20:49:44 2018 +0200 patch 8.1.0118: duplicate error message for put command Problem: Duplicate error message for put command. Solution: Check return value of u_save(). (Jason Franklin)
author Christian Brabandt <cb@256bit.org>
date Wed, 27 Jun 2018 21:00:07 +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}\")