changeset 29865:4291eb97e479 v9.0.0271

patch 9.0.0271: using INIT() in non-header files Commit: https://github.com/vim/vim/commit/9b7d2a959646560f5770329f4428c4739eed4656 Author: zeertzjq <zeertzjq@outlook.com> Date: Fri Aug 26 10:33:54 2022 +0100 patch 9.0.0271: using INIT() in non-header files Problem: Using INIT() in non-header files. Solution: Remove INIT(). (closes https://github.com/vim/vim/issues/10981)
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Aug 2022 11:45:04 +0200
parents 34ff4f601c42
children 607385b95bf7
files src/ex_getln.c src/gui_xim.c src/os_unix.c src/version.c
diffstat 4 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -59,7 +59,7 @@ static int	empty_pattern_magic(char_u *p
 #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
 
 
--- a/src/gui_xim.c
+++ b/src/gui_xim.c
@@ -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.
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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.
--- a/src/version.c
+++ b/src/version.c
@@ -724,6 +724,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    271,
+/**/
     270,
 /**/
     269,