Mercurial > vim
view src/typemap @ 25824:3f5f25f7d8a2 v8.2.3447
patch 8.2.3447: a couple of declarations are not ANSI C
Commit: https://github.com/vim/vim/commit/d2b98ab4ecf168514ae622948e3749dea7671946
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Sep 18 12:15:08 2021 +0200
patch 8.2.3447: a couple of declarations are not ANSI C
Problem: A couple of declarations are not ANSI C.
Solution: Put argument type inside (). (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8890)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 18 Sep 2021 12: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}\")