Skip to content

Commit f28dbce

Browse files
committed
patch 7.4.1196
Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
1 parent f12d983 commit f28dbce

File tree

11 files changed

+350
-348
lines changed

11 files changed

+350
-348
lines changed

src/arabic.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@
1818
*
1919
*/
2020

21-
static int A_is_a __ARGS((int cur_c));
22-
static int A_is_s __ARGS((int cur_c));
23-
static int A_is_f __ARGS((int cur_c));
24-
static int chg_c_a2s __ARGS((int cur_c));
25-
static int chg_c_a2i __ARGS((int cur_c));
26-
static int chg_c_a2m __ARGS((int cur_c));
27-
static int chg_c_a2f __ARGS((int cur_c));
28-
static int chg_c_i2m __ARGS((int cur_c));
29-
static int chg_c_f2m __ARGS((int cur_c));
30-
static int chg_c_laa2i __ARGS((int hid_c));
31-
static int chg_c_laa2f __ARGS((int hid_c));
32-
static int half_shape __ARGS((int c));
33-
static int A_firstc_laa __ARGS((int c1, int c));
34-
static int A_is_harakat __ARGS((int c));
35-
static int A_is_iso __ARGS((int c));
36-
static int A_is_formb __ARGS((int c));
37-
static int A_is_ok __ARGS((int c));
38-
static int A_is_valid __ARGS((int c));
39-
static int A_is_special __ARGS((int c));
21+
static int A_is_a(int cur_c);
22+
static int A_is_s(int cur_c);
23+
static int A_is_f(int cur_c);
24+
static int chg_c_a2s(int cur_c);
25+
static int chg_c_a2i(int cur_c);
26+
static int chg_c_a2m(int cur_c);
27+
static int chg_c_a2f(int cur_c);
28+
static int chg_c_i2m(int cur_c);
29+
static int chg_c_f2m(int cur_c);
30+
static int chg_c_laa2i(int hid_c);
31+
static int chg_c_laa2f(int hid_c);
32+
static int half_shape(int c);
33+
static int A_firstc_laa(int c1, int c);
34+
static int A_is_harakat(int c);
35+
static int A_is_iso(int c);
36+
static int A_is_formb(int c);
37+
static int A_is_ok(int c);
38+
static int A_is_valid(int c);
39+
static int A_is_special(int c);
4040

4141

4242
/*

src/buffer.c

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,26 @@
2828
#include "vim.h"
2929

3030
#if defined(FEAT_CMDL_COMPL) || defined(FEAT_LISTCMDS) || defined(FEAT_EVAL) || defined(FEAT_PERL)
31-
static char_u *buflist_match __ARGS((regmatch_T *rmp, buf_T *buf, int ignore_case));
31+
static char_u *buflist_match(regmatch_T *rmp, buf_T *buf, int ignore_case);
3232
# define HAVE_BUFLIST_MATCH
33-
static char_u *fname_match __ARGS((regmatch_T *rmp, char_u *name, int ignore_case));
33+
static char_u *fname_match(regmatch_T *rmp, char_u *name, int ignore_case);
3434
#endif
35-
static void buflist_setfpos __ARGS((buf_T *buf, win_T *win, linenr_T lnum, colnr_T col, int copy_options));
36-
static wininfo_T *find_wininfo __ARGS((buf_T *buf, int skip_diff_buffer));
35+
static void buflist_setfpos(buf_T *buf, win_T *win, linenr_T lnum, colnr_T col, int copy_options);
36+
static wininfo_T *find_wininfo(buf_T *buf, int skip_diff_buffer);
3737
#ifdef UNIX
38-
static buf_T *buflist_findname_stat __ARGS((char_u *ffname, struct stat *st));
39-
static int otherfile_buf __ARGS((buf_T *buf, char_u *ffname, struct stat *stp));
40-
static int buf_same_ino __ARGS((buf_T *buf, struct stat *stp));
38+
static buf_T *buflist_findname_stat(char_u *ffname, struct stat *st);
39+
static int otherfile_buf(buf_T *buf, char_u *ffname, struct stat *stp);
40+
static int buf_same_ino(buf_T *buf, struct stat *stp);
4141
#else
42-
static int otherfile_buf __ARGS((buf_T *buf, char_u *ffname));
42+
static int otherfile_buf(buf_T *buf, char_u *ffname);
4343
#endif
4444
#ifdef FEAT_TITLE
45-
static int ti_change __ARGS((char_u *str, char_u **last));
45+
static int ti_change(char_u *str, char_u **last);
4646
#endif
47-
static int append_arg_number __ARGS((win_T *wp, char_u *buf, int buflen, int add_file));
48-
static void free_buffer __ARGS((buf_T *));
49-
static void free_buffer_stuff __ARGS((buf_T *buf, int free_options));
50-
static void clear_wininfo __ARGS((buf_T *buf));
47+
static int append_arg_number(win_T *wp, char_u *buf, int buflen, int add_file);
48+
static void free_buffer(buf_T *);
49+
static void free_buffer_stuff(buf_T *buf, int free_options);
50+
static void clear_wininfo(buf_T *buf);
5151

5252
#ifdef UNIX
5353
# define dev_T dev_t
@@ -56,7 +56,7 @@ static void clear_wininfo __ARGS((buf_T *buf));
5656
#endif
5757

5858
#if defined(FEAT_SIGNS)
59-
static void insert_sign __ARGS((buf_T *buf, signlist_T *prev, signlist_T *next, int id, linenr_T lnum, int typenr));
59+
static void insert_sign(buf_T *buf, signlist_T *prev, signlist_T *next, int id, linenr_T lnum, int typenr);
6060
#endif
6161

6262
#if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
@@ -1006,7 +1006,7 @@ do_bufdel(command, arg, addr_count, start_bnr, end_bnr, forceit)
10061006
#if defined(FEAT_LISTCMDS) || defined(FEAT_PYTHON) \
10071007
|| defined(FEAT_PYTHON3) || defined(PROTO)
10081008

1009-
static int empty_curbuf __ARGS((int close_others, int forceit, int action));
1009+
static int empty_curbuf(int close_others, int forceit, int action);
10101010

10111011
/*
10121012
* Make the current buffer empty.
@@ -2613,7 +2613,7 @@ buflist_setfpos(buf, win, lnum, col, copy_options)
26132613
}
26142614

26152615
#ifdef FEAT_DIFF
2616-
static int wininfo_other_tab_diff __ARGS((wininfo_T *wip));
2616+
static int wininfo_other_tab_diff(wininfo_T *wip);
26172617

26182618
/*
26192619
* Return TRUE when "wip" has 'diff' set and the diff is only for another tab
@@ -5118,7 +5118,7 @@ ex_buffer_all(eap)
51185118

51195119
#endif /* FEAT_WINDOWS */
51205120

5121-
static int chk_modeline __ARGS((linenr_T, int));
5121+
static int chk_modeline(linenr_T, int);
51225122

51235123
/*
51245124
* do_modelines() - process mode lines for the current file

src/charset.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
#include "vim.h"
1111

1212
#ifdef FEAT_LINEBREAK
13-
static int win_chartabsize __ARGS((win_T *wp, char_u *p, colnr_T col));
13+
static int win_chartabsize(win_T *wp, char_u *p, colnr_T col);
1414
#endif
1515

1616
#ifdef FEAT_MBYTE
1717
# if defined(HAVE_WCHAR_H)
1818
# include <wchar.h> /* for towupper() and towlower() */
1919
# endif
20-
static int win_nolbr_chartabsize __ARGS((win_T *wp, char_u *s, colnr_T col, int *headp));
20+
static int win_nolbr_chartabsize(win_T *wp, char_u *s, colnr_T col, int *headp);
2121
#endif
2222

23-
static unsigned nr2hex __ARGS((unsigned c));
23+
static unsigned nr2hex(unsigned c);
2424

2525
static int chartab_initialized = FALSE;
2626

src/crypt_zip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ typedef struct {
3636
} zip_state_T;
3737

3838

39-
static void make_crc_tab __ARGS((void));
39+
static void make_crc_tab(void);
4040

4141
static u32_T crc_32_table[256];
4242

src/diff.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,22 @@ static int diff_bin_works = MAYBE; /* TRUE when "diff --binary" works, FALSE
3535
checked yet */
3636
#endif
3737

38-
static int diff_buf_idx __ARGS((buf_T *buf));
39-
static int diff_buf_idx_tp __ARGS((buf_T *buf, tabpage_T *tp));
40-
static void diff_mark_adjust_tp __ARGS((tabpage_T *tp, int idx, linenr_T line1, linenr_T line2, long amount, long amount_after));
41-
static void diff_check_unchanged __ARGS((tabpage_T *tp, diff_T *dp));
42-
static int diff_check_sanity __ARGS((tabpage_T *tp, diff_T *dp));
43-
static void diff_redraw __ARGS((int dofold));
44-
static int diff_write __ARGS((buf_T *buf, char_u *fname));
45-
static void diff_file __ARGS((char_u *tmp_orig, char_u *tmp_new, char_u *tmp_diff));
46-
static int diff_equal_entry __ARGS((diff_T *dp, int idx1, int idx2));
47-
static int diff_cmp __ARGS((char_u *s1, char_u *s2));
38+
static int diff_buf_idx(buf_T *buf);
39+
static int diff_buf_idx_tp(buf_T *buf, tabpage_T *tp);
40+
static void diff_mark_adjust_tp(tabpage_T *tp, int idx, linenr_T line1, linenr_T line2, long amount, long amount_after);
41+
static void diff_check_unchanged(tabpage_T *tp, diff_T *dp);
42+
static int diff_check_sanity(tabpage_T *tp, diff_T *dp);
43+
static void diff_redraw(int dofold);
44+
static int diff_write(buf_T *buf, char_u *fname);
45+
static void diff_file(char_u *tmp_orig, char_u *tmp_new, char_u *tmp_diff);
46+
static int diff_equal_entry(diff_T *dp, int idx1, int idx2);
47+
static int diff_cmp(char_u *s1, char_u *s2);
4848
#ifdef FEAT_FOLDING
49-
static void diff_fold_update __ARGS((diff_T *dp, int skip_idx));
49+
static void diff_fold_update(diff_T *dp, int skip_idx);
5050
#endif
51-
static void diff_read __ARGS((int idx_orig, int idx_new, char_u *fname));
52-
static void diff_copy_entry __ARGS((diff_T *dprev, diff_T *dp, int idx_orig, int idx_new));
53-
static diff_T *diff_alloc_new __ARGS((tabpage_T *tp, diff_T *dprev, diff_T *dp));
51+
static void diff_read(int idx_orig, int idx_new, char_u *fname);
52+
static void diff_copy_entry(diff_T *dprev, diff_T *dp, int idx_orig, int idx_new);
53+
static diff_T *diff_alloc_new(tabpage_T *tp, diff_T *dprev, diff_T *dp);
5454

5555
#ifndef USE_CR
5656
# define tag_fgets vim_fgets

src/digraph.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ typedef struct digraph
2828
result_T result;
2929
} digr_T;
3030

31-
static int getexactdigraph __ARGS((int, int, int));
32-
static void printdigraph __ARGS((digr_T *));
31+
static int getexactdigraph(int, int, int);
32+
static void printdigraph(digr_T *);
3333

3434
/* digraphs added by the user */
3535
static garray_T user_digraphs = {0, 0, (int)sizeof(digr_T), 10, NULL};
@@ -2357,7 +2357,7 @@ typedef struct
23572357

23582358
#define KMAP_MAXLEN 20 /* maximum length of "from" or "to" */
23592359

2360-
static void keymap_unload __ARGS((void));
2360+
static void keymap_unload(void);
23612361

23622362
/*
23632363
* Set up key mapping tables for the 'keymap' option.

0 commit comments

Comments
 (0)