]> granicus.if.org Git - vim/commitdiff
patch 9.0.0271: using INIT() in non-header files v9.0.0271
authorzeertzjq <zeertzjq@outlook.com>
Fri, 26 Aug 2022 09:33:54 +0000 (10:33 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 26 Aug 2022 09:33:54 +0000 (10:33 +0100)
Problem:    Using INIT() in non-header files.
Solution:   Remove INIT(). (closes #10981)

src/ex_getln.c
src/gui_xim.c
src/os_unix.c
src/version.c

index 7b84af6153834b15ab52bf8bd434b72c60edf81f..022c40516d967d93a1ae2d0daf29a59c5744b2f7 100644 (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
 
 
index 4d8706a100b589ea60fd391aa7ca3c91801af2db..d384cbc05994ec8ffe90cc1d09047385e89aba58 100644 (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.
index 2f00614955f31580f8e5e2695ed77ba7d320af54..7aa3d1f0c7e741fa079f165267c286391071c6dc 100644 (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.
index 255725f22a01b818fa71ed545e393e2158b0395e..59e36e4fa9994e17a1816f58c094409884c6f058 100644 (file)
@@ -723,6 +723,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    271,
 /**/
     270,
 /**/