comparison src/window.c @ 7805:0b6c37dd858d v7.4.1199

commit https://github.com/vim/vim/commit/baaa7e9ec7398a813e21285c272fa99792642077 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 29 22:47:03 2016 +0100 patch 7.4.1199 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 23:00:05 +0100
parents 85a7a945fb87
children 33ba2adb6065
comparison
equal deleted inserted replaced
7804:874044d87168 7805:0b6c37dd858d
7 * See README.txt for an overview of the Vim source code. 7 * See README.txt for an overview of the Vim source code.
8 */ 8 */
9 9
10 #include "vim.h" 10 #include "vim.h"
11 11
12 static int path_is_url __ARGS((char_u *p)); 12 static int path_is_url(char_u *p);
13 #if defined(FEAT_WINDOWS) || defined(PROTO) 13 #if defined(FEAT_WINDOWS) || defined(PROTO)
14 static void cmd_with_count __ARGS((char *cmd, char_u *bufp, size_t bufsize, long Prenum)); 14 static void cmd_with_count(char *cmd, char_u *bufp, size_t bufsize, long Prenum);
15 static void win_init __ARGS((win_T *newp, win_T *oldp, int flags)); 15 static void win_init(win_T *newp, win_T *oldp, int flags);
16 static void win_init_some __ARGS((win_T *newp, win_T *oldp)); 16 static void win_init_some(win_T *newp, win_T *oldp);
17 static void frame_comp_pos __ARGS((frame_T *topfrp, int *row, int *col)); 17 static void frame_comp_pos(frame_T *topfrp, int *row, int *col);
18 static void frame_setheight __ARGS((frame_T *curfrp, int height)); 18 static void frame_setheight(frame_T *curfrp, int height);
19 #ifdef FEAT_VERTSPLIT 19 #ifdef FEAT_VERTSPLIT
20 static void frame_setwidth __ARGS((frame_T *curfrp, int width)); 20 static void frame_setwidth(frame_T *curfrp, int width);
21 #endif 21 #endif
22 static void win_exchange __ARGS((long)); 22 static void win_exchange(long);
23 static void win_rotate __ARGS((int, int)); 23 static void win_rotate(int, int);
24 static void win_totop __ARGS((int size, int flags)); 24 static void win_totop(int size, int flags);
25 static void win_equal_rec __ARGS((win_T *next_curwin, int current, frame_T *topfr, int dir, int col, int row, int width, int height)); 25 static void win_equal_rec(win_T *next_curwin, int current, frame_T *topfr, int dir, int col, int row, int width, int height);
26 static int last_window __ARGS((void)); 26 static int last_window(void);
27 static int close_last_window_tabpage __ARGS((win_T *win, int free_buf, tabpage_T *prev_curtab)); 27 static int close_last_window_tabpage(win_T *win, int free_buf, tabpage_T *prev_curtab);
28 static win_T *win_free_mem __ARGS((win_T *win, int *dirp, tabpage_T *tp)); 28 static win_T *win_free_mem(win_T *win, int *dirp, tabpage_T *tp);
29 static frame_T *win_altframe __ARGS((win_T *win, tabpage_T *tp)); 29 static frame_T *win_altframe(win_T *win, tabpage_T *tp);
30 static tabpage_T *alt_tabpage __ARGS((void)); 30 static tabpage_T *alt_tabpage(void);
31 static win_T *frame2win __ARGS((frame_T *frp)); 31 static win_T *frame2win(frame_T *frp);
32 static int frame_has_win __ARGS((frame_T *frp, win_T *wp)); 32 static int frame_has_win(frame_T *frp, win_T *wp);
33 static void frame_new_height __ARGS((frame_T *topfrp, int height, int topfirst, int wfh)); 33 static void frame_new_height(frame_T *topfrp, int height, int topfirst, int wfh);
34 static int frame_fixed_height __ARGS((frame_T *frp)); 34 static int frame_fixed_height(frame_T *frp);
35 #ifdef FEAT_VERTSPLIT 35 #ifdef FEAT_VERTSPLIT
36 static int frame_fixed_width __ARGS((frame_T *frp)); 36 static int frame_fixed_width(frame_T *frp);
37 static void frame_add_statusline __ARGS((frame_T *frp)); 37 static void frame_add_statusline(frame_T *frp);
38 static void frame_new_width __ARGS((frame_T *topfrp, int width, int leftfirst, int wfw)); 38 static void frame_new_width(frame_T *topfrp, int width, int leftfirst, int wfw);
39 static void frame_add_vsep __ARGS((frame_T *frp)); 39 static void frame_add_vsep(frame_T *frp);
40 static int frame_minwidth __ARGS((frame_T *topfrp, win_T *next_curwin)); 40 static int frame_minwidth(frame_T *topfrp, win_T *next_curwin);
41 static void frame_fix_width __ARGS((win_T *wp)); 41 static void frame_fix_width(win_T *wp);
42 #endif 42 #endif
43 #endif 43 #endif
44 static int win_alloc_firstwin __ARGS((win_T *oldwin)); 44 static int win_alloc_firstwin(win_T *oldwin);
45 static void new_frame __ARGS((win_T *wp)); 45 static void new_frame(win_T *wp);
46 #if defined(FEAT_WINDOWS) || defined(PROTO) 46 #if defined(FEAT_WINDOWS) || defined(PROTO)
47 static tabpage_T *alloc_tabpage __ARGS((void)); 47 static tabpage_T *alloc_tabpage(void);
48 static int leave_tabpage __ARGS((buf_T *new_curbuf, int trigger_leave_autocmds)); 48 static int leave_tabpage(buf_T *new_curbuf, int trigger_leave_autocmds);
49 static void enter_tabpage __ARGS((tabpage_T *tp, buf_T *old_curbuf, int trigger_enter_autocmds, int trigger_leave_autocmds)); 49 static void enter_tabpage(tabpage_T *tp, buf_T *old_curbuf, int trigger_enter_autocmds, int trigger_leave_autocmds);
50 static void frame_fix_height __ARGS((win_T *wp)); 50 static void frame_fix_height(win_T *wp);
51 static int frame_minheight __ARGS((frame_T *topfrp, win_T *next_curwin)); 51 static int frame_minheight(frame_T *topfrp, win_T *next_curwin);
52 static void win_enter_ext __ARGS((win_T *wp, int undo_sync, int no_curwin, int trigger_enter_autocmds, int trigger_leave_autocmds)); 52 static void win_enter_ext(win_T *wp, int undo_sync, int no_curwin, int trigger_enter_autocmds, int trigger_leave_autocmds);
53 static void win_free __ARGS((win_T *wp, tabpage_T *tp)); 53 static void win_free(win_T *wp, tabpage_T *tp);
54 static void frame_append __ARGS((frame_T *after, frame_T *frp)); 54 static void frame_append(frame_T *after, frame_T *frp);
55 static void frame_insert __ARGS((frame_T *before, frame_T *frp)); 55 static void frame_insert(frame_T *before, frame_T *frp);
56 static void frame_remove __ARGS((frame_T *frp)); 56 static void frame_remove(frame_T *frp);
57 # ifdef FEAT_VERTSPLIT 57 # ifdef FEAT_VERTSPLIT
58 static void win_goto_ver __ARGS((int up, long count)); 58 static void win_goto_ver(int up, long count);
59 static void win_goto_hor __ARGS((int left, long count)); 59 static void win_goto_hor(int left, long count);
60 # endif 60 # endif
61 static void frame_add_height __ARGS((frame_T *frp, int n)); 61 static void frame_add_height(frame_T *frp, int n);
62 static void last_status_rec __ARGS((frame_T *fr, int statusline)); 62 static void last_status_rec(frame_T *fr, int statusline);
63 63
64 static void make_snapshot_rec __ARGS((frame_T *fr, frame_T **frp)); 64 static void make_snapshot_rec(frame_T *fr, frame_T **frp);
65 static void clear_snapshot __ARGS((tabpage_T *tp, int idx)); 65 static void clear_snapshot(tabpage_T *tp, int idx);
66 static void clear_snapshot_rec __ARGS((frame_T *fr)); 66 static void clear_snapshot_rec(frame_T *fr);
67 static int check_snapshot_rec __ARGS((frame_T *sn, frame_T *fr)); 67 static int check_snapshot_rec(frame_T *sn, frame_T *fr);
68 static win_T *restore_snapshot_rec __ARGS((frame_T *sn, frame_T *fr)); 68 static win_T *restore_snapshot_rec(frame_T *sn, frame_T *fr);
69 69
70 static int frame_check_height __ARGS((frame_T *topfrp, int height)); 70 static int frame_check_height(frame_T *topfrp, int height);
71 #ifdef FEAT_VERTSPLIT 71 #ifdef FEAT_VERTSPLIT
72 static int frame_check_width __ARGS((frame_T *topfrp, int width)); 72 static int frame_check_width(frame_T *topfrp, int width);
73 #endif 73 #endif
74 74
75 #endif /* FEAT_WINDOWS */ 75 #endif /* FEAT_WINDOWS */
76 76
77 static win_T *win_alloc __ARGS((win_T *after, int hidden)); 77 static win_T *win_alloc(win_T *after, int hidden);
78 78
79 #define URL_SLASH 1 /* path_is_url() has found "://" */ 79 #define URL_SLASH 1 /* path_is_url() has found "://" */
80 #define URL_BACKSLASH 2 /* path_is_url() has found ":\\" */ 80 #define URL_BACKSLASH 2 /* path_is_url() has found ":\\" */
81 81
82 #define NOWIN (win_T *)-1 /* non-existing window */ 82 #define NOWIN (win_T *)-1 /* non-existing window */
6370 6370
6371 return find_file_name_in_path(ptr, len, options, count, rel_fname); 6371 return find_file_name_in_path(ptr, len, options, count, rel_fname);
6372 } 6372 }
6373 6373
6374 # if defined(FEAT_FIND_ID) && defined(FEAT_EVAL) 6374 # if defined(FEAT_FIND_ID) && defined(FEAT_EVAL)
6375 static char_u *eval_includeexpr __ARGS((char_u *ptr, int len)); 6375 static char_u *eval_includeexpr(char_u *ptr, int len);
6376 6376
6377 static char_u * 6377 static char_u *
6378 eval_includeexpr(ptr, len) 6378 eval_includeexpr(ptr, len)
6379 char_u *ptr; 6379 char_u *ptr;
6380 int len; 6380 int len;