view src/typemap @ 15591:3a2bf24d2655 v8.1.0803

patch 8.1.0803: session file has problem with single quote in file name commit https://github.com/vim/vim/commit/ad36a3588d32985ee27bd11aa97e5195ef623158 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 24 13:34:42 2019 +0100 patch 8.1.0803: session file has problem with single quote in file name Problem: Session file has problem with single quote in file name. (Jon Crowe) Solution: Use a double quoted string. Add a test.
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Jan 2019 13: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}\")