Mercurial > vim
view src/typemap @ 11971:2baa88d64217 v8.0.0866
patch 8.0.0866: Solaris also doesn't have MIN and MAX
commit https://github.com/vim/vim/commit/d53109886bc9c4fa7a9c9a402c90fe349b2dd7ac
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 5 15:16:32 2017 +0200
patch 8.0.0866: Solaris also doesn't have MIN and MAX
Problem: Solaris also doesn't have MIN and MAX.
Solution: Define MIN and MAX whenever they are not defined. (Ozaki Kiichi,
closes #1939)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 05 Aug 2017 15:30:04 +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}\")