diff options
author | Nicolas Pierron <nicolas.b.pierron@gmail.com> | 2014-03-02 14:11:35 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-02 14:19:59 -0300 |
commit | d9283c4927cc5f926fa796acc2568610bd9a80d6 (patch) | |
tree | ee22db97987af38c538d1bd6501a384203579949 /src/ex_cmds.c | |
parent | 2bd6d444033b5746595713f4d037de135379a23e (diff) | |
download | rneovim-d9283c4927cc5f926fa796acc2568610bd9a80d6.tar.gz rneovim-d9283c4927cc5f926fa796acc2568610bd9a80d6.tar.bz2 rneovim-d9283c4927cc5f926fa796acc2568610bd9a80d6.zip |
Remove __ARGS macro. Close #205
This is a squash of all commits sent to #81.
- Remove unused undef of __ARGS.
- Fix mch_rename declaration.
- Follow changes related to moved & extracted files.
- Properly indent function declarations of getchar.h and quickfix.c.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 73fd567429..dfddce3447 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -52,20 +52,19 @@ #include "undo.h" #include "window.h" -static int linelen __ARGS((int *has_tab)); -static void do_filter __ARGS((linenr_T line1, linenr_T line2, exarg_T *eap, - char_u *cmd, int do_in, - int do_out)); -static char_u *viminfo_filename __ARGS((char_u *)); -static void do_viminfo __ARGS((FILE *fp_in, FILE *fp_out, int flags)); -static int viminfo_encoding __ARGS((vir_T *virp)); -static int read_viminfo_up_to_marks __ARGS((vir_T *virp, int forceit, - int writing)); - -static int check_readonly __ARGS((int *forceit, buf_T *buf)); -static void delbuf_msg __ARGS((char_u *name)); -static int -help_compare __ARGS((const void *s1, const void *s2)); +static int linelen(int *has_tab); +static void do_filter(linenr_T line1, linenr_T line2, exarg_T *eap, + char_u *cmd, int do_in, + int do_out); +static char_u *viminfo_filename(char_u *); +static void do_viminfo(FILE *fp_in, FILE *fp_out, int flags); +static int viminfo_encoding(vir_T *virp); +static int read_viminfo_up_to_marks(vir_T *virp, int forceit, + int writing); + +static int check_readonly(int *forceit, buf_T *buf); +static void delbuf_msg(char_u *name); +static int help_compare(const void *s1, const void *s2); /* * ":ascii" and "ga". @@ -285,7 +284,7 @@ typedef struct { } sorti_T; static int -sort_compare __ARGS((const void *s1, const void *s2)); +sort_compare(const void *s1, const void *s2); static int sort_compare(const void *s1, const void *s2) { @@ -1395,7 +1394,7 @@ void append_redir(char_u *buf, int buflen, char_u *opt, char_u *fname) } -static int no_viminfo __ARGS((void)); +static int no_viminfo(void); static int viminfo_errcnt; static int no_viminfo(void) { @@ -5327,8 +5326,8 @@ void ex_viusage(exarg_T *eap) do_cmdline_cmd((char_u *)"help normal-index"); } -static void helptags_one __ARGS((char_u *dir, char_u *ext, char_u *lang, - int add_help_tags)); +static void helptags_one(char_u *dir, char_u *ext, char_u *lang, + int add_help_tags); /* * ":helptags" |