view src/typemap @ 28347:d6892ed619e0 v8.2.4699

patch 8.2.4699: hard to reproduce hang when reading from a channel Commit: https://github.com/vim/vim/commit/75a0f3c011dfbafd2d60e87d4b2b07572df3e3ec Author: LemonBoy <thatlemon@gmail.com> Date: Tue Apr 5 22:03:30 2022 +0100 patch 8.2.4699: hard to reproduce hang when reading from a channel Problem: Hard to reproduce hang when reading from a channel. Solution: Check for readahead before starting to wait. (closes https://github.com/vim/vim/issues/10093, closes #7781, closes #6364)
author Bram Moolenaar <Bram@vim.org>
date Tue, 05 Apr 2022 23:15:02 +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}\")