aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_eval_defs.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-13 17:52:04 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-14 04:29:44 +0800
commit1ca2247639424994890ef70ab34f2bffa23ddd9f (patch)
treec3697b80da96e6e1165742979deb121ca491b1d0 /src/nvim/ex_eval_defs.h
parenta10a23aae91a8356b36ac63f0917a556cfcaf976 (diff)
downloadrneovim-1ca2247639424994890ef70ab34f2bffa23ddd9f.tar.gz
rneovim-1ca2247639424994890ef70ab34f2bffa23ddd9f.tar.bz2
rneovim-1ca2247639424994890ef70ab34f2bffa23ddd9f.zip
vim-patch:8.2.0823: Vim9: script reload test is disabled
Problem: Vim9: script reload test is disabled. Solution: Compile a function in the context of the script where it was defined. Set execution stack for compiled function. Add a test that an error is reported for the right file/function. https://github.com/vim/vim/commit/25e0f5863e9010a75a1ff0d04e8f886403968755 Omit stack_top_is_ufunc(): only used by Vim9 script.
Diffstat (limited to 'src/nvim/ex_eval_defs.h')
-rw-r--r--src/nvim/ex_eval_defs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/ex_eval_defs.h b/src/nvim/ex_eval_defs.h
index 75150d6da4..9da0c9ad12 100644
--- a/src/nvim/ex_eval_defs.h
+++ b/src/nvim/ex_eval_defs.h
@@ -38,11 +38,13 @@ enum {
/// A list of error messages that can be converted to an exception. "throw_msg"
/// is only set in the first element of the list. Usually, it points to the
/// original message stored in that element, but sometimes it points to a later
-/// message in the list. See cause_errthrow() below.
+/// message in the list. See cause_errthrow().
typedef struct msglist msglist_T;
struct msglist {
- char *msg; ///< original message
+ char *msg; ///< original message, allocated
char *throw_msg; ///< msg to throw: usually original one
+ char *sfile; ///< value from estack_sfile(), allocated
+ linenr_T slnum; ///< line number for "sfile"
msglist_T *next; ///< next of several messages in a row
};