summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-11 21:19:34 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-11 21:19:34 +0100
commitf785aa1354208f6b644e891aa01f8f86d947af7e (patch)
treeaa9ed2fee106094256c479215ab91ec129d3d763 /src/structs.h
parent0bcadf14aa700c166c09f1800ed3de00b9598b39 (diff)
patch 8.2.2501: not always clear where an error is reportedv8.2.2501
Problem: Not always clear where an error is reported. Solution: Add the where_T structure and pass it around. (closes #7796)
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index 8d86d11b18..550e53a2bc 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -4387,3 +4387,10 @@ typedef enum {
MAGIC_ON = 3, // "\m" or 'magic'
MAGIC_ALL = 4 // "\v" very magic
} magic_T;
+
+// Struct used to pass to error messages about where the error happened.
+typedef struct {
+ char wt_index; // argument or variable index, 0 means unknown
+ char wt_variable; // "variable" when TRUE, "argument" otherwise
+} where_T;
+