view src/typemap @ 10716:905ab712979c v8.0.0248

patch 8.0.0248: vim_strcat() cannot handle overlapping arguments commit https://github.com/vim/vim/commit/45600ce8f2bead069882032f992623cd5a799ca0 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 27 21:54:07 2017 +0100 patch 8.0.0248: vim_strcat() cannot handle overlapping arguments Problem: vim_strcat() cannot handle overlapping arguments. Solution: Use mch_memmove() instead of strcpy(). (Justin M Keyes, closes #1415)
author Christian Brabandt <cb@256bit.org>
date Fri, 27 Jan 2017 22: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}\")