view src/typemap @ 23430:9e60204aea6e v8.2.2258

patch 8.2.2258: not all OCaml related files are detected Commit: https://github.com/vim/vim/commit/beef4eeda5c6865fcfe46db43ae71429a2025b58 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 1 13:54:00 2021 +0100 patch 8.2.2258: not all OCaml related files are detected Problem: Not all OCaml related files are detected. Solution: Update OCaml file type detection. (Markus Mottl, closes https://github.com/vim/vim/issues/7590)
author Bram Moolenaar <Bram@vim.org>
date Fri, 01 Jan 2021 14: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}\")