view src/typemap @ 23078:d01b011f91b9 v8.2.2085

patch 8.2.2085: Qt translation file is recognized as typescript Commit: https://github.com/vim/vim/commit/c0d670ce16d0e148b7d39ac354571b3d284a0b53 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 3 21:08:37 2020 +0100 patch 8.2.2085: Qt translation file is recognized as typescript Problem: Qt translation file is recognized as typescript. Solution: Check the first line for "<?xml". (closes https://github.com/vim/vim/issues/7418)
author Bram Moolenaar <Bram@vim.org>
date Thu, 03 Dec 2020 21:15:06 +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}\")