Mercurial > vim
view src/typemap @ 8773:08944b17c29c v7.4.1675
commit https://github.com/vim/vim/commit/e101204906e10f1e100e2f9017985c61f26b03ac
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 28 21:10:49 2016 +0200
patch 7.4.1675
Problem: The swapmous plugin has to be copied or sourced to be used.
Solution: Turn it into the swapmouse package.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 28 Mar 2016 21:15:06 +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}\")