Mercurial > vim
view src/typemap @ 11154:0895f142cac3 v8.0.0464
patch 8.0.0464: can't find executable name on Solaris and FreeBSD
commit https://github.com/vim/vim/commit/f3757f0c87bbd52c7989c85dcbd21511bffcbdd6
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 16 15:13:45 2017 +0100
patch 8.0.0464: can't find executable name on Solaris and FreeBSD
Problem: Can't find executable name on Solaris and FreeBSD.
Solution: Check for "/proc/self/path/a.out". (Danek Duvall) And for
"/proc/curproc/file".
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 16 Mar 2017 15:15: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}\")