Mercurial > vim
view src/typemap @ 13764:7bba231fdddc v8.0.1754
patch 8.0.1754: ex_helpgrep() is too long
commit https://github.com/vim/vim/commit/2225ebb48644f3924311b8df02a1319ab7675d42
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 24 15:48:11 2018 +0200
patch 8.0.1754: ex_helpgrep() is too long
Problem: ex_helpgrep() is too long.
Solution: Refactor the function. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/2766)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Apr 2018 16:00:08 +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}\")