patch 8.2.0013: not using a typedef for condstack
Problem: Not using a typedef for condstack.
Solution: Add a typedef.
diff --git a/src/structs.h b/src/structs.h
index 3e5be69..71b5c61 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -863,8 +863,7 @@
*/
#define CSTACK_LEN 50
-struct condstack
-{
+typedef struct {
short cs_flags[CSTACK_LEN]; // CSF_ flags
char cs_pending[CSTACK_LEN]; // CSTP_: what's pending in ":finally"
union {
@@ -878,7 +877,7 @@
int cs_trylevel; // nr of nested ":try"s
eslist_T *cs_emsg_silent_list; // saved values of "emsg_silent"
char cs_lflags; // loop flags: CSL_ flags
-};
+} cstack_T;
# define cs_rettv cs_pend.csp_rv
# define cs_exception cs_pend.csp_ex
@@ -912,7 +911,7 @@
# define CSTP_FINISH 32 // ":finish" is pending
/*
- * Flags for the cs_lflags item in struct condstack.
+ * Flags for the cs_lflags item in cstack_T.
*/
# define CSL_HAD_LOOP 1 // just found ":while" or ":for"
# define CSL_HAD_ENDLOOP 2 // just found ":endwhile" or ":endfor"