Mercurial > vim
diff src/ui.c @ 17789:0f7ae8010787 v8.1.1891
patch 8.1.1891: functions used in one file are global
commit https://github.com/vim/vim/commit/5843f5f37b0632e2d706abc9014bfd7d98f7b02e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 20 20:13:45 2019 +0200
patch 8.1.1891: functions used in one file are global
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4840)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Aug 2019 20:15:07 +0200 |
parents | 65b89c9eb946 |
children | c72989922b51 |
line wrap: on
line diff
--- 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 #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;