view src/typemap @ 13431:19f9b74a424e v8.0.1590

patch 8.0.1590: padding in list type wastes memory commit https://github.com/vim/vim/commit/1a840240376f2858d489736f9eed6d2975225fdf Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 8 21:46:43 2018 +0100 patch 8.0.1590: padding in list type wastes memory Problem: Padding in list type wastes memory. Solution: Reorder struct members to optimize padding. (Dominique Pelle, closes #2704)
author Christian Brabandt <cb@256bit.org>
date Thu, 08 Mar 2018 22:00:05 +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}\")