Patch 9.0.0271

2 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 26, 2022, 5:34:52 AM8/26/22
to vim...@googlegroups.com

Patch 9.0.0271
Problem: Using INIT() in non-header files.
Solution: Remove INIT(). (closes #10981)
Files: src/ex_getln.c, src/gui_xim.c, src/os_unix.c


*** ../vim-9.0.0270/src/ex_getln.c 2022-08-21 19:08:47.078217067 +0100
--- src/ex_getln.c 2022-08-26 10:32:01.030768738 +0100
***************
*** 59,65 ****
#ifdef FEAT_CMDWIN
static int open_cmdwin(void);

! static int cedit_key INIT(= -1); // key value of 'cedit' option
#endif


--- 59,65 ----
#ifdef FEAT_CMDWIN
static int open_cmdwin(void);

! static int cedit_key = -1; // key value of 'cedit' option
#endif


*** ../vim-9.0.0270/src/gui_xim.c 2022-05-26 13:12:57.000000000 +0100
--- src/gui_xim.c 2022-08-26 10:32:01.030768738 +0100
***************
*** 154,160 ****
#if defined(FEAT_XIM) || defined(PROTO)

# if defined(FEAT_GUI_GTK) || defined(PROTO)
! static int xim_has_preediting INIT(= FALSE); // IM current status

/*
* Set preedit_start_col to the current cursor position.
--- 154,160 ----
#if defined(FEAT_XIM) || defined(PROTO)

# if defined(FEAT_GUI_GTK) || defined(PROTO)
! static int xim_has_preediting = FALSE; // IM current status

/*
* Set preedit_start_col to the current cursor position.
*** ../vim-9.0.0270/src/os_unix.c 2022-08-14 14:16:07.999582175 +0100
--- src/os_unix.c 2022-08-26 10:32:01.034768737 +0100
***************
*** 959,965 ****

// 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);

/*
* A simplistic version of setjmp() that only allows one level of using.
--- 959,965 ----

// TRUE when lc_jump_env is valid.
// Volatile because it is used in signal handler deathtrap().
! static volatile sig_atomic_t lc_active = FALSE;

/*
* A simplistic version of setjmp() that only allows one level of using.
*** ../vim-9.0.0270/src/version.c 2022-08-25 18:12:00.354668433 +0100
--- src/version.c 2022-08-26 10:33:17.366725782 +0100
***************
*** 725,726 ****
--- 725,728 ----
{ /* Add new patch number below this line */
+ /**/
+ 271,
/**/

--
It is illegal for anyone to give lighted cigars to dogs, cats, and other
domesticated animal kept as pets.
[real standing law in Illinois, United States of America]

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages