mirror of
https://github.com/vim/vim
synced 2025-07-16 09:12:00 +00:00
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:
@ -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
|
||||
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -723,6 +723,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
271,
|
||||
/**/
|
||||
270,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user