Mercurial > vim
view src/typemap @ 16535:be24441bf806 v8.1.1271
patch 8.1.1271: compiler warnings for use of STRNCPY()
commit https://github.com/vim/vim/commit/b3de6c4a769986e6eb4e228519a6483d2999ad8f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 5 13:02:28 2019 +0200
patch 8.1.1271: compiler warnings for use of STRNCPY()
Problem: Compiler warnings for use of STRNCPY(). (John Marriott)
Solution: Use mch_memmove() instead of STRNCPY().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 May 2019 13: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}\")