view src/typemap @ 23017:d80faed40bec v8.2.2055

patch 8.2.2055: MS-Windows: two Vim instances may use the same temp file Commit: https://github.com/vim/vim/commit/2472a74be4dedfeaff22314f31cf9787618163d1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 26 19:47:28 2020 +0100 patch 8.2.2055: MS-Windows: two Vim instances may use the same temp file Problem: MS-Windows: two Vim instances may use the same temp file. Solution: Use the process ID for the temp name. (Ken Takata, closes https://github.com/vim/vim/issues/7378)
author Bram Moolenaar <Bram@vim.org>
date Thu, 26 Nov 2020 20:00: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}\")