Mercurial > vim
comparison src/gui.c @ 7801:a1e71a01dbd6 v7.4.1197
commit https://github.com/vim/vim/commit/d25c16e2f2776d50245bf31d6e4d5364f12d188e
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 29 22:13:30 2016 +0100
patch 7.4.1197
Problem: Still using __ARGS.
Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 29 Jan 2016 22:15:05 +0100 |
parents | 42c1a4e63d12 |
children | 81794242a275 |
comparison
equal
deleted
inserted
replaced
7800:a835f2222ce6 | 7801:a1e71a01dbd6 |
---|---|
12 | 12 |
13 /* Structure containing all the GUI information */ | 13 /* Structure containing all the GUI information */ |
14 gui_T gui; | 14 gui_T gui; |
15 | 15 |
16 #if defined(FEAT_MBYTE) && !defined(FEAT_GUI_GTK) | 16 #if defined(FEAT_MBYTE) && !defined(FEAT_GUI_GTK) |
17 static void set_guifontwide __ARGS((char_u *font_name)); | 17 static void set_guifontwide(char_u *font_name); |
18 #endif | 18 #endif |
19 static void gui_check_pos __ARGS((void)); | 19 static void gui_check_pos(void); |
20 static void gui_position_components __ARGS((int)); | 20 static void gui_position_components(int); |
21 static void gui_outstr __ARGS((char_u *, int)); | 21 static void gui_outstr(char_u *, int); |
22 static int gui_screenchar __ARGS((int off, int flags, guicolor_T fg, guicolor_T bg, int back)); | 22 static int gui_screenchar(int off, int flags, guicolor_T fg, guicolor_T bg, int back); |
23 #ifdef FEAT_GUI_GTK | 23 #ifdef FEAT_GUI_GTK |
24 static int gui_screenstr __ARGS((int off, int len, int flags, guicolor_T fg, guicolor_T bg, int back)); | 24 static int gui_screenstr(int off, int len, int flags, guicolor_T fg, guicolor_T bg, int back); |
25 #endif | 25 #endif |
26 static void gui_delete_lines __ARGS((int row, int count)); | 26 static void gui_delete_lines(int row, int count); |
27 static void gui_insert_lines __ARGS((int row, int count)); | 27 static void gui_insert_lines(int row, int count); |
28 static void fill_mouse_coord __ARGS((char_u *p, int col, int row)); | 28 static void fill_mouse_coord(char_u *p, int col, int row); |
29 #if defined(FEAT_GUI_TABLINE) || defined(PROTO) | 29 #if defined(FEAT_GUI_TABLINE) || defined(PROTO) |
30 static int gui_has_tabline __ARGS((void)); | 30 static int gui_has_tabline(void); |
31 #endif | 31 #endif |
32 static void gui_do_scrollbar __ARGS((win_T *wp, int which, int enable)); | 32 static void gui_do_scrollbar(win_T *wp, int which, int enable); |
33 static colnr_T scroll_line_len __ARGS((linenr_T lnum)); | 33 static colnr_T scroll_line_len(linenr_T lnum); |
34 static linenr_T gui_find_longest_lnum __ARGS((void)); | 34 static linenr_T gui_find_longest_lnum(void); |
35 static void gui_update_horiz_scrollbar __ARGS((int)); | 35 static void gui_update_horiz_scrollbar(int); |
36 static void gui_set_fg_color __ARGS((char_u *name)); | 36 static void gui_set_fg_color(char_u *name); |
37 static void gui_set_bg_color __ARGS((char_u *name)); | 37 static void gui_set_bg_color(char_u *name); |
38 static win_T *xy2win __ARGS((int x, int y)); | 38 static win_T *xy2win(int x, int y); |
39 | 39 |
40 #if defined(UNIX) && !defined(MACOS_X) && !defined(__APPLE__) | 40 #if defined(UNIX) && !defined(MACOS_X) && !defined(__APPLE__) |
41 # define MAY_FORK | 41 # define MAY_FORK |
42 static void gui_do_fork __ARGS((void)); | 42 static void gui_do_fork(void); |
43 | 43 |
44 static int gui_read_child_pipe __ARGS((int fd)); | 44 static int gui_read_child_pipe(int fd); |
45 | 45 |
46 /* Return values for gui_read_child_pipe */ | 46 /* Return values for gui_read_child_pipe */ |
47 enum { | 47 enum { |
48 GUI_CHILD_IO_ERROR, | 48 GUI_CHILD_IO_ERROR, |
49 GUI_CHILD_OK, | 49 GUI_CHILD_OK, |
50 GUI_CHILD_FAILED | 50 GUI_CHILD_FAILED |
51 }; | 51 }; |
52 | 52 |
53 #endif /* MAY_FORK */ | 53 #endif /* MAY_FORK */ |
54 | 54 |
55 static void gui_attempt_start __ARGS((void)); | 55 static void gui_attempt_start(void); |
56 | 56 |
57 static int can_update_cursor = TRUE; /* can display the cursor */ | 57 static int can_update_cursor = TRUE; /* can display the cursor */ |
58 | 58 |
59 /* | 59 /* |
60 * The Athena scrollbars can move the thumb to after the end of the scrollbar, | 60 * The Athena scrollbars can move the thumb to after the end of the scrollbar, |
5015 #if ((defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32) \ | 5015 #if ((defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32) \ |
5016 || defined(FEAT_GUI_PHOTON)) && defined(FEAT_TOOLBAR)) || defined(PROTO) | 5016 || defined(FEAT_GUI_PHOTON)) && defined(FEAT_TOOLBAR)) || defined(PROTO) |
5017 /* | 5017 /* |
5018 * This is shared between Athena, Motif and GTK. | 5018 * This is shared between Athena, Motif and GTK. |
5019 */ | 5019 */ |
5020 static void gfp_setname __ARGS((char_u *fname, void *cookie)); | 5020 static void gfp_setname(char_u *fname, void *cookie); |
5021 | 5021 |
5022 /* | 5022 /* |
5023 * Callback function for do_in_runtimepath(). | 5023 * Callback function for do_in_runtimepath(). |
5024 */ | 5024 */ |
5025 static void | 5025 static void |
5189 gui_mch_flush(); | 5189 gui_mch_flush(); |
5190 } | 5190 } |
5191 #endif | 5191 #endif |
5192 | 5192 |
5193 #if defined(FIND_REPLACE_DIALOG) || defined(PROTO) | 5193 #if defined(FIND_REPLACE_DIALOG) || defined(PROTO) |
5194 static void concat_esc __ARGS((garray_T *gap, char_u *text, int what)); | 5194 static void concat_esc(garray_T *gap, char_u *text, int what); |
5195 | 5195 |
5196 /* | 5196 /* |
5197 * Get the text to use in a find/replace dialog. Uses the last search pattern | 5197 * Get the text to use in a find/replace dialog. Uses the last search pattern |
5198 * if the argument is empty. | 5198 * if the argument is empty. |
5199 * Returns an allocated string. | 5199 * Returns an allocated string. |
5414 || defined(FEAT_GUI_MSWIN) \ | 5414 || defined(FEAT_GUI_MSWIN) \ |
5415 || defined(FEAT_GUI_MAC) \ | 5415 || defined(FEAT_GUI_MAC) \ |
5416 || defined(PROTO) | 5416 || defined(PROTO) |
5417 | 5417 |
5418 #ifdef FEAT_WINDOWS | 5418 #ifdef FEAT_WINDOWS |
5419 static void gui_wingoto_xy __ARGS((int x, int y)); | 5419 static void gui_wingoto_xy(int x, int y); |
5420 | 5420 |
5421 /* | 5421 /* |
5422 * Jump to the window at specified point (x, y). | 5422 * Jump to the window at specified point (x, y). |
5423 */ | 5423 */ |
5424 static void | 5424 static void |