0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.1229: build error without the eval feature

Problem:    Build error without the eval feature.
Solution:   Declare starts_with_colon. Make function local.
This commit is contained in:
Bram Moolenaar
2020-07-17 20:47:51 +02:00
parent 203ec7760d
commit 6e36b1c18e
3 changed files with 4 additions and 3 deletions

View File

@@ -1649,7 +1649,7 @@ current_tab_nr(tabpage_T *tab)
return nr; return nr;
} }
int static int
comment_start(char_u *p, int starts_with_colon UNUSED) comment_start(char_u *p, int starts_with_colon UNUSED)
{ {
#ifdef FEAT_EVAL #ifdef FEAT_EVAL
@@ -1708,8 +1708,8 @@ do_one_cmd(
int save_reg_executing = reg_executing; int save_reg_executing = reg_executing;
int ni; // set when Not Implemented int ni; // set when Not Implemented
char_u *cmd; char_u *cmd;
int starts_with_colon = FALSE;
#ifdef FEAT_EVAL #ifdef FEAT_EVAL
int starts_with_colon;
int starts_with_quote; int starts_with_quote;
int vim9script = in_vim9script(); int vim9script = in_vim9script();
#endif #endif

View File

@@ -5,7 +5,6 @@ int do_cmdline(char_u *cmdline, char_u *(*fgetline)(int, void *, int, int), void
int getline_equal(char_u *(*fgetline)(int, void *, int, int), void *cookie, char_u *(*func)(int, void *, int, int)); int getline_equal(char_u *(*fgetline)(int, void *, int, int), void *cookie, char_u *(*func)(int, void *, int, int));
void *getline_cookie(char_u *(*fgetline)(int, void *, int, int), void *cookie); void *getline_cookie(char_u *(*fgetline)(int, void *, int, int), void *cookie);
char_u *getline_peek(char_u *(*fgetline)(int, void *, int, int), void *cookie); char_u *getline_peek(char_u *(*fgetline)(int, void *, int, int), void *cookie);
int comment_start(char_u *p, int starts_with_colon);
int parse_command_modifiers(exarg_T *eap, char **errormsg, int skip_only); int parse_command_modifiers(exarg_T *eap, char **errormsg, int skip_only);
void undo_cmdmod(exarg_T *eap, int save_msg_scroll); void undo_cmdmod(exarg_T *eap, int save_msg_scroll);
int parse_cmd_address(exarg_T *eap, char **errormsg, int silent); int parse_cmd_address(exarg_T *eap, char **errormsg, int silent);

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1229,
/**/ /**/
1228, 1228,
/**/ /**/