summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-20 20:13:45 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-20 20:13:45 +0200
commit5843f5f37b0632e2d706abc9014bfd7d98f7b02e (patch)
tree2f1af5fd16214dfdf8edc8717e06a8b0aab81c1a /src/ui.c
parent9a4a8c4d5993c6371486c895a515c2ad351e9aaa (diff)
downloadvim-git-5843f5f37b0632e2d706abc9014bfd7d98f7b02e.tar.gz
patch 8.1.1891: functions used in one file are globalv8.1.1891
Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ui.c b/src/ui.c
index 446cefcde..61f19bc4b 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -720,6 +720,12 @@ ui_breakcheck_force(int force)
#if defined(FEAT_CLIPBOARD) || defined(PROTO)
+static void clip_gen_lose_selection(Clipboard_T *cbd);
+static int clip_gen_own_selection(Clipboard_T *cbd);
+#if defined(FEAT_X11) && defined(FEAT_XCLIPBOARD) && defined(USE_SYSTEM)
+static int clip_x11_owner_exists(Clipboard_T *cbd);
+#endif
+
/*
* Selection stuff using Visual mode, for cutting and pasting text to other
* windows.
@@ -1840,7 +1846,7 @@ clip_update_modeless_selection(
}
}
- int
+ static int
clip_gen_own_selection(Clipboard_T *cbd)
{
#ifdef FEAT_XCLIPBOARD
@@ -1855,7 +1861,7 @@ clip_gen_own_selection(Clipboard_T *cbd)
#endif
}
- void
+ static void
clip_gen_lose_selection(Clipboard_T *cbd)
{
#ifdef FEAT_XCLIPBOARD
@@ -2846,7 +2852,7 @@ clip_x11_set_selection(Clipboard_T *cbd UNUSED)
#if (defined(FEAT_X11) && defined(FEAT_XCLIPBOARD) && defined(USE_SYSTEM)) \
|| defined(PROTO)
- int
+ static int
clip_x11_owner_exists(Clipboard_T *cbd)
{
return XGetSelectionOwner(X_DISPLAY, cbd->sel_atom) != None;