view src/typemap @ 16178:a8689ea2e869 v8.1.1094

patch 8.1.1094: long line in tags file causes error commit https://github.com/vim/vim/commit/5209334c551778fe6f76945f373ee14fcac96f52 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 30 21:41:48 2019 +0100 patch 8.1.1094: long line in tags file causes error Problem: Long line in tags file causes error. Solution: Check for overlong line earlier. (Andy Massimino, closes https://github.com/vim/vim/issues/4051, closes #4084)
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Mar 2019 21:45:05 +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}\")