view src/typemap @ 15634:746b95fd25ad v8.1.0825

patch 8.1.0825: code for autocommands is mixed with file I/O code commit https://github.com/vim/vim/commit/3e460fd8b72db905fbf9f01b00371384ffc415b8 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 26 16:21:07 2019 +0100 patch 8.1.0825: code for autocommands is mixed with file I/O code Problem: Code for autocommands is mixed with file I/O code. Solution: Move autocommand code to a separate file. (Yegappan Lakshmanan, closes #3863)
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Jan 2019 16:30:13 +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}\")