patch 9.0.0271: using INIT() in non-header files

Problem:    Using INIT() in non-header files.
Solution:   Remove INIT(). (closes #10981)
This commit is contained in:
zeertzjq
2022-08-26 10:33:54 +01:00
committed by Bram Moolenaar
parent 2bd9dbc19f
commit 9b7d2a9596
4 changed files with 5 additions and 3 deletions

View File

@ -59,7 +59,7 @@ static int empty_pattern_magic(char_u *pat, size_t len, magic_T magic_val);
#ifdef FEAT_CMDWIN
static int open_cmdwin(void);
static int cedit_key INIT(= -1); // key value of 'cedit' option
static int cedit_key = -1; // key value of 'cedit' option
#endif

View File

@ -154,7 +154,7 @@ set_ref_in_im_funcs(int copyID UNUSED)
#if defined(FEAT_XIM) || defined(PROTO)
# if defined(FEAT_GUI_GTK) || defined(PROTO)
static int xim_has_preediting INIT(= FALSE); // IM current status
static int xim_has_preediting = FALSE; // IM current status
/*
* Set preedit_start_col to the current cursor position.

View File

@ -959,7 +959,7 @@ static volatile sig_atomic_t lc_signal;
// TRUE when lc_jump_env is valid.
// Volatile because it is used in signal handler deathtrap().
static volatile sig_atomic_t lc_active INIT(= FALSE);
static volatile sig_atomic_t lc_active = FALSE;
/*
* A simplistic version of setjmp() that only allows one level of using.

View File

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