summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2022-06-29 12:55:36 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-29 12:55:36 +0100
commitee47eaceaa148e07b566ff420f9a3c2edde2fa34 (patch)
tree990dc0d8074d51970ecc83ad94a59e884687a313 /src/gui.c
parentc207fd2535717030d78f9b92839e5f2ac004cc78 (diff)
patch 9.0.0003: functions are global while they could be localv9.0.0003
Problem: Functions are global while they could be local. Solution: Add "static". Add a few tests. (Yegappan Lakshmanan, closes #10612)
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui.c b/src/gui.c
index 4408545db3..e708a27763 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -32,6 +32,7 @@ static void gui_do_scrollbar(win_T *wp, int which, int enable);
static void gui_update_horiz_scrollbar(int);
static void gui_set_fg_color(char_u *name);
static void gui_set_bg_color(char_u *name);
+static void init_gui_options(void);
static win_T *xy2win(int x, int y, mouse_find_T popup);
#ifdef GUI_MAY_FORK
@@ -1395,7 +1396,7 @@ gui_update_cursor(
}
#if defined(FEAT_MENU) || defined(PROTO)
- void
+ static void
gui_position_menu(void)
{
# if !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MOTIF)
@@ -4815,7 +4816,7 @@ gui_bg_default(void)
/*
* Option initializations that can only be done after opening the GUI window.
*/
- void
+ static void
init_gui_options(void)
{
// Set the 'background' option according to the lightness of the