summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-25 22:36:50 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-25 22:36:50 +0200
commit25e0f5863e9010a75a1ff0d04e8f886403968755 (patch)
treebcb0891919dbc85578b8483487f2ef89ede0f93c /src/structs.h
parent2eec37926db6d31beb36f162ac00357a30c093c8 (diff)
patch 8.2.0823: Vim9: script reload test is disabledv8.2.0823
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.
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/structs.h b/src/structs.h
index e58e644726..d6f9030c9e 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -927,13 +927,16 @@ typedef struct {
* 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 *throw_msg; // msg to throw: usually original one
- struct msglist *next; // next of several messages in a row
+ char *msg; // original message, allocated
+ char *throw_msg; // msg to throw: usually original one
+ char_u *sfile; // value from estack_sfile(), allocated
+ long slnum; // line number for "sfile"
+ msglist_T *next; // next of several messages in a row
};
/*
@@ -1516,6 +1519,7 @@ struct blobvar_S
#if defined(FEAT_EVAL) || defined(PROTO)
typedef struct funccall_S funccall_T;
+// values used for "uf_dfunc_idx"
# define UF_NOT_COMPILED -2
# define UF_TO_BE_COMPILED -1