Mercurial > vim
comparison src/proto/window.pro @ 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 | 1be29c149103 |
children | e4d3b6c466d4 |
comparison
equal
deleted
inserted
replaced
17788:2cf6b7b53b1d | 17789:0f7ae8010787 |
---|---|
16 void win_close_othertab(win_T *win, int free_buf, tabpage_T *tp); | 16 void win_close_othertab(win_T *win, int free_buf, tabpage_T *tp); |
17 void win_free_all(void); | 17 void win_free_all(void); |
18 win_T *winframe_remove(win_T *win, int *dirp, tabpage_T *tp); | 18 win_T *winframe_remove(win_T *win, int *dirp, tabpage_T *tp); |
19 void close_others(int message, int forceit); | 19 void close_others(int message, int forceit); |
20 void curwin_init(void); | 20 void curwin_init(void); |
21 void win_init_empty(win_T *wp); | |
22 int win_alloc_first(void); | 21 int win_alloc_first(void); |
23 win_T *win_alloc_popup_win(void); | 22 win_T *win_alloc_popup_win(void); |
24 void win_init_popup_win(win_T *wp, buf_T *buf); | 23 void win_init_popup_win(win_T *wp, buf_T *buf); |
25 void win_init_size(void); | 24 void win_init_size(void); |
26 void free_tabpage(tabpage_T *tp); | 25 void free_tabpage(tabpage_T *tp); |
27 int win_new_tabpage(int after); | 26 int win_new_tabpage(int after); |
28 int may_open_tabpage(void); | |
29 int make_tabpages(int maxcount); | 27 int make_tabpages(int maxcount); |
30 int valid_tabpage(tabpage_T *tpc); | 28 int valid_tabpage(tabpage_T *tpc); |
31 int valid_tabpage_win(tabpage_T *tpc); | 29 int valid_tabpage_win(tabpage_T *tpc); |
32 void close_tabpage(tabpage_T *tab); | 30 void close_tabpage(tabpage_T *tab); |
33 tabpage_T *find_tabpage(int n); | 31 tabpage_T *find_tabpage(int n); |
42 win_T *win_vert_neighbor(tabpage_T *tp, win_T *wp, int up, long count); | 40 win_T *win_vert_neighbor(tabpage_T *tp, win_T *wp, int up, long count); |
43 win_T *win_horz_neighbor(tabpage_T *tp, win_T *wp, int left, long count); | 41 win_T *win_horz_neighbor(tabpage_T *tp, win_T *wp, int left, long count); |
44 void win_enter(win_T *wp, int undo_sync); | 42 void win_enter(win_T *wp, int undo_sync); |
45 win_T *buf_jump_open_win(buf_T *buf); | 43 win_T *buf_jump_open_win(buf_T *buf); |
46 win_T *buf_jump_open_tab(buf_T *buf); | 44 win_T *buf_jump_open_tab(buf_T *buf); |
47 int win_unlisted(win_T *wp); | |
48 void win_free_popup(win_T *win); | 45 void win_free_popup(win_T *win); |
49 void win_append(win_T *after, win_T *wp); | |
50 void win_remove(win_T *wp, tabpage_T *tp); | 46 void win_remove(win_T *wp, tabpage_T *tp); |
51 int win_alloc_lines(win_T *wp); | 47 int win_alloc_lines(win_T *wp); |
52 void win_free_lsize(win_T *wp); | 48 void win_free_lsize(win_T *wp); |
53 void shell_new_rows(void); | 49 void shell_new_rows(void); |
54 void shell_new_columns(void); | 50 void shell_new_columns(void); |