Mercurial > vim
comparison src/proto/gui.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 | 7ae2396cef62 |
children | 6067fbb46625 |
comparison
equal
deleted
inserted
replaced
17788:2cf6b7b53b1d | 17789:0f7ae8010787 |
---|---|
5 void gui_init(void); | 5 void gui_init(void); |
6 void gui_exit(int rc); | 6 void gui_exit(int rc); |
7 void gui_shell_closed(void); | 7 void gui_shell_closed(void); |
8 int gui_init_font(char_u *font_list, int fontset); | 8 int gui_init_font(char_u *font_list, int fontset); |
9 int gui_get_wide_font(void); | 9 int gui_get_wide_font(void); |
10 void gui_set_cursor(int row, int col); | |
11 void gui_update_cursor(int force, int clear_selection); | 10 void gui_update_cursor(int force, int clear_selection); |
12 void gui_position_menu(void); | 11 void gui_position_menu(void); |
13 int gui_get_base_width(void); | 12 int gui_get_base_width(void); |
14 int gui_get_base_height(void); | 13 int gui_get_base_height(void); |
15 void gui_resize_shell(int pixel_width, int pixel_height); | 14 void gui_resize_shell(int pixel_width, int pixel_height); |
16 void gui_may_resize_shell(void); | 15 void gui_may_resize_shell(void); |
17 int gui_get_shellsize(void); | 16 int gui_get_shellsize(void); |
18 void gui_set_shellsize(int mustset, int fit_to_display, int direction); | 17 void gui_set_shellsize(int mustset, int fit_to_display, int direction); |
19 void gui_new_shellsize(void); | 18 void gui_new_shellsize(void); |
20 void gui_reset_scroll_region(void); | |
21 void gui_start_highlight(int mask); | |
22 void gui_stop_highlight(int mask); | 19 void gui_stop_highlight(int mask); |
23 void gui_clear_block(int row1, int col1, int row2, int col2); | 20 void gui_clear_block(int row1, int col1, int row2, int col2); |
24 void gui_update_cursor_later(void); | 21 void gui_update_cursor_later(void); |
25 void gui_write(char_u *s, int len); | 22 void gui_write(char_u *s, int len); |
26 void gui_dont_update_cursor(int undraw); | 23 void gui_dont_update_cursor(int undraw); |
27 void gui_can_update_cursor(void); | 24 void gui_can_update_cursor(void); |
28 void gui_disable_flush(void); | 25 void gui_disable_flush(void); |
29 void gui_enable_flush(void); | 26 void gui_enable_flush(void); |
30 void gui_may_flush(void); | 27 void gui_may_flush(void); |
31 int gui_outstr_nowrap(char_u *s, int len, int flags, guicolor_T fg, guicolor_T bg, int back); | |
32 void gui_undraw_cursor(void); | 28 void gui_undraw_cursor(void); |
33 void gui_redraw(int x, int y, int w, int h); | 29 void gui_redraw(int x, int y, int w, int h); |
34 int gui_redraw_block(int row1, int col1, int row2, int col2, int flags); | 30 int gui_redraw_block(int row1, int col1, int row2, int col2, int flags); |
35 int gui_wait_for_chars(long wtime, int tb_change_cnt); | 31 int gui_wait_for_chars(long wtime, int tb_change_cnt); |
36 int gui_inchar(char_u *buf, int maxlen, long wtime, int tb_change_cnt); | 32 int gui_inchar(char_u *buf, int maxlen, long wtime, int tb_change_cnt); |
37 void gui_send_mouse_event(int button, int x, int y, int repeated_click, int_u modifiers); | 33 void gui_send_mouse_event(int button, int x, int y, int repeated_click, int_u modifiers); |
38 int gui_xy2colrow(int x, int y, int *colp); | |
39 void gui_menu_cb(vimmenu_T *menu); | 34 void gui_menu_cb(vimmenu_T *menu); |
40 void gui_init_which_components(char_u *oldval); | 35 void gui_init_which_components(char_u *oldval); |
41 int gui_use_tabline(void); | 36 int gui_use_tabline(void); |
42 void gui_update_tabline(void); | 37 void gui_update_tabline(void); |
43 void get_tabline_label(tabpage_T *tp, int tooltip); | 38 void get_tabline_label(tabpage_T *tp, int tooltip); |