view src/typemap @ 23873:7d3ee4d508b5 v8.2.2478

patch 8.2.2478: MS-Windows: backup files for plugins are loaded Commit: https://github.com/vim/vim/commit/0dc5f603e9b86da9fe5798c231d8d6170501516e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 7 14:01:35 2021 +0100 patch 8.2.2478: MS-Windows: backup files for plugins are loaded Problem: MS-Windows: backup files for plugins are loaded. Solution: Do not use the alternate file name for files ending in "~".
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Feb 2021 14:15:04 +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}\")