view src/typemap @ 14210:1681178c4434 v8.1.0122

patch 8.1.0122: translators don't always understand the maintainer message commit https://github.com/vim/vim/commit/0c183198727b80fd7e52fb29cc1dcd08d79a281c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 28 14:54:43 2018 +0200 patch 8.1.0122: translators don't always understand the maintainer message Problem: Translators don't always understand the maintainer message. Solution: Add a comment that ends up in the generated po file. (Christian Brabandt, closes #3037)
author Christian Brabandt <cb@256bit.org>
date Thu, 28 Jun 2018 15: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}\")