view src/typemap @ 20103:fda7bed83eb6 v8.2.0607

patch 8.2.0607: gcc warns for using uninitialized variable Commit: https://github.com/vim/vim/commit/2bb76accc66d17f2c027c04396082c46f410bfea Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 19 22:57:44 2020 +0200 patch 8.2.0607: gcc warns for using uninitialized variable Problem: Gcc warns for using uninitialized variable. (John Marriott) Solution: Set name_end also for environment variables.
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Apr 2020 23:00:03 +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}\")