summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index d43e55c8f..9297f1306 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -670,6 +670,17 @@ struct vim_exception
#define ET_ERROR 1 /* error exception */
#define ET_INTERRUPT 2 /* interrupt exception triggered by Ctrl-C */
+/*
+ * Structure to save the error/interrupt/exception state between calls to
+ * enter_cleanup() and leave_cleanup(). Must be allocated as an automatic
+ * variable by the (common) caller of these functions.
+ */
+typedef struct cleanup_stuff cleanup_T;
+struct cleanup_stuff
+{
+ int pending; /* error/interrupt/exception state */
+ except_T *exception; /* exception value */
+};
#ifdef FEAT_SYN_HL
/* struct passed to in_id_list() */