mirror of
https://github.com/vim/vim.git
synced 2025-08-24 19:45:50 -04:00
patch 9.1.1584: using ints as boolean type
Problem: using ints as bool Solution: Include stdbool.h and start using bool type directly (Hirohito Higashi) This is a test to see if using the boolean types cause any issues. If this change causes issues on any platform, please reach out. closes: #17830 Signed-off-by: Hirohito Higashi <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
2566a9f290
commit
5608f3dc93
@ -396,7 +396,7 @@ gui_init_check(void)
|
||||
return result;
|
||||
}
|
||||
|
||||
gui.shell_created = FALSE;
|
||||
gui.shell_created = false;
|
||||
gui.dying = FALSE;
|
||||
gui.in_focus = TRUE; // so the guicursor setting works
|
||||
gui.dragged_sb = SBAR_NONE;
|
||||
@ -717,7 +717,7 @@ gui_init(void)
|
||||
gui_init_which_components(NULL);
|
||||
|
||||
// All components of the GUI have been created now
|
||||
gui.shell_created = TRUE;
|
||||
gui.shell_created = true;
|
||||
|
||||
#ifdef FEAT_GUI_MSWIN
|
||||
// Set the shell size, adjusted for the screen size. For GTK this only
|
||||
|
@ -234,7 +234,7 @@ typedef struct Gui
|
||||
int in_focus; // Vim has input focus
|
||||
int in_use; // Is the GUI being used?
|
||||
int starting; // GUI will start in a little while
|
||||
int shell_created; // Has the shell been created yet?
|
||||
bool shell_created; // Has the shell been created yet?
|
||||
int dying; // Is vim dying? Then output to terminal
|
||||
int dofork; // Use fork() when GUI is starting
|
||||
#ifdef GUI_MAY_SPAWN
|
||||
|
@ -719,6 +719,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1584,
|
||||
/**/
|
||||
1583,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user