Mercurial > vim
comparison src/userfunc.c @ 25306:078edc1821bf v8.2.3190
patch 8.2.3190: error messages are spread out
Commit: https://github.com/vim/vim/commit/e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 20 21:07:36 2021 +0200
patch 8.2.3190: error messages are spread out
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Jul 2021 21:15:05 +0200 |
parents | ec0421c25be9 |
children | f03271631eb5 |
comparison
equal
deleted
inserted
replaced
25305:4032f1628500 | 25306:078edc1821bf |
---|---|
5026 { | 5026 { |
5027 // Store the value of the pending return. | 5027 // Store the value of the pending return. |
5028 if ((cstack->cs_rettv[idx] = alloc_tv()) != NULL) | 5028 if ((cstack->cs_rettv[idx] = alloc_tv()) != NULL) |
5029 *(typval_T *)cstack->cs_rettv[idx] = *(typval_T *)rettv; | 5029 *(typval_T *)cstack->cs_rettv[idx] = *(typval_T *)rettv; |
5030 else | 5030 else |
5031 emsg(_(e_outofmem)); | 5031 emsg(_(e_out_of_memory)); |
5032 } | 5032 } |
5033 else | 5033 else |
5034 cstack->cs_rettv[idx] = NULL; | 5034 cstack->cs_rettv[idx] = NULL; |
5035 | 5035 |
5036 if (reanimate) | 5036 if (reanimate) |