view src/typemap @ 13800:e4dc4ede9ef8 v8.0.1772

patch 8.0.1772: quickfix: mixup of FALSE and FAIL, returning -1 commit https://github.com/vim/vim/commit/29ce409bfca52bb8a07e2975d06fd788458e9861 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 28 21:56:44 2018 +0200 patch 8.0.1772: quickfix: mixup of FALSE and FAIL, returning -1 Problem: Quickfix: mixup of FALSE and FAIL, returning -1. Solution: Use FAIL and INVALID_QFIDX. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Sat, 28 Apr 2018 22:00:06 +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}\")