diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-16 17:10:33 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-16 17:10:33 +0100 |
commit | ddef129160ff0676e5da482071fb2fdc2988ac34 (patch) | |
tree | 8a7e0327a604dda5257739139ef271b587a345e9 /src/ex_docmd.c | |
parent | 559b9c68fe550f3af63d42e0838622aab1ceb1b3 (diff) |
patch 8.2.0013: not using a typedef for condstackv8.2.0013
Problem: Not using a typedef for condstack.
Solution: Add a typedef.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index fb07450f80..ba51640664 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -20,7 +20,7 @@ static int ex_pressedreturn = FALSE; #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 @@ do_cmdline( 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 @@ do_cmdline( #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 @@ current_tab_nr(tabpage_T *tab) #endif static char_u * do_one_cmd( - char_u **cmdlinep, - int sourcing, + char_u **cmdlinep, + int sourcing, #ifdef FEAT_EVAL - struct condstack *cstack, -#endif - 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; + cstack_T *cstack, +#endif + 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; vim_memset(&ea, 0, sizeof(ea)); ea.line1 = 1; |