Mercurial > vim
comparison src/userfunc.c @ 21401:aa7675a4a0cd v8.2.1251
patch 8.2.1251: Vim9: warning for pointer usage, test failure undetected
Commit: https://github.com/vim/vim/commit/682d0a15462f3d4f9404e98a56b340ae131cbb09
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 19 20:48:59 2020 +0200
patch 8.2.1251: Vim9: warning for pointer usage, test failure undetected
Problem: Vim9: warning for pointer usage, test failure undetected.
Solution: Fix pointer indirection. Give error when executing function
failed for any reason. Fix instruction names.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 19 Jul 2020 21:00:03 +0200 |
parents | fb3dcd8ed14d |
children | 8ec9e2b54ce7 |
comparison
equal
deleted
inserted
replaced
21400:9b9005a18282 | 21401:aa7675a4a0cd |
---|---|
2120 vim_free(name); | 2120 vim_free(name); |
2121 | 2121 |
2122 return ret; | 2122 return ret; |
2123 } | 2123 } |
2124 | 2124 |
2125 static char_u * | 2125 char_u * |
2126 printable_func_name(ufunc_T *fp) | 2126 printable_func_name(ufunc_T *fp) |
2127 { | 2127 { |
2128 return fp->uf_name_exp != NULL ? fp->uf_name_exp : fp->uf_name; | 2128 return fp->uf_name_exp != NULL ? fp->uf_name_exp : fp->uf_name; |
2129 } | 2129 } |
2130 | 2130 |