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/ex_docmd.c b/src/ex_docmd.c
index fb07450..ba51640 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -20,7 +20,7 @@
#endif
#ifdef FEAT_EVAL
-static char_u *do_one_cmd(char_u **, int, struct condstack *, char_u *(*fgetline)(int, void *, int, int), void *cookie);
+static char_u *do_one_cmd(char_u **, int, cstack_T *, char_u *(*fgetline)(int, void *, int, int), void *cookie);
#else
static char_u *do_one_cmd(char_u **, int, char_u *(*fgetline)(int, void *, int, int), void *cookie);
static int if_level = 0; // depth in :if
@@ -623,7 +623,7 @@
int did_inc = FALSE; // incremented RedrawingDisabled
int retval = OK;
#ifdef FEAT_EVAL
- struct condstack cstack; // conditional stack
+ cstack_T cstack; // conditional stack
garray_T lines_ga; // keep lines for ":while"/":for"
int current_line = 0; // active line in lines_ga
char_u *fname = NULL; // function or script name
@@ -671,7 +671,7 @@
#ifdef FEAT_EVAL
// When converting to an exception, we do not include the command name
// since this is not an error of the specific command.
- do_errthrow((struct condstack *)NULL, (char_u *)NULL);
+ do_errthrow((cstack_T *)NULL, (char_u *)NULL);
msg_list = saved_msg_list;
#endif
return FAIL;
@@ -1628,25 +1628,25 @@
#endif
static char_u *
do_one_cmd(
- char_u **cmdlinep,
- int sourcing,
+ char_u **cmdlinep,
+ int sourcing,
#ifdef FEAT_EVAL
- struct condstack *cstack,
+ cstack_T *cstack,
#endif
- char_u *(*fgetline)(int, void *, int, int),
- void *cookie) // argument for fgetline()
+ char_u *(*fgetline)(int, void *, int, int),
+ void *cookie) // argument for fgetline()
{
- char_u *p;
- linenr_T lnum;
- long n;
- char *errormsg = NULL; // error message
- char_u *after_modifier = NULL;
- exarg_T ea; // Ex command arguments
- int save_msg_scroll = msg_scroll;
- cmdmod_T save_cmdmod;
- int save_reg_executing = reg_executing;
- int ni; // set when Not Implemented
- char_u *cmd;
+ char_u *p;
+ linenr_T lnum;
+ long n;
+ char *errormsg = NULL; // error message
+ char_u *after_modifier = NULL;
+ exarg_T ea; // Ex command arguments
+ int save_msg_scroll = msg_scroll;
+ cmdmod_T save_cmdmod;
+ int save_reg_executing = reg_executing;
+ int ni; // set when Not Implemented
+ char_u *cmd;
vim_memset(&ea, 0, sizeof(ea));
ea.line1 = 1;