aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorNicolas Pierron <nicolas.b.pierron@gmail.com>2014-03-02 14:11:35 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-02 14:19:59 -0300
commitd9283c4927cc5f926fa796acc2568610bd9a80d6 (patch)
treeee22db97987af38c538d1bd6501a384203579949 /src/buffer.c
parent2bd6d444033b5746595713f4d037de135379a23e (diff)
downloadrneovim-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/buffer.c')
-rw-r--r--src/buffer.c36
1 files changed, 17 insertions, 19 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 0cefde5640..1c1c0dc6d9 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -61,26 +61,24 @@
#include "undo.h"
#include "window.h"
-static char_u *buflist_match __ARGS((regprog_T *prog, buf_T *buf));
+static char_u *buflist_match(regprog_T *prog, buf_T *buf);
# define HAVE_BUFLIST_MATCH
-static char_u *fname_match __ARGS((regprog_T *prog, char_u *name));
-static void buflist_setfpos __ARGS((buf_T *buf, win_T *win, linenr_T lnum,
- colnr_T col,
- int copy_options));
-static wininfo_T *find_wininfo __ARGS((buf_T *buf, int skip_diff_buffer));
+static char_u *fname_match(regprog_T *prog, char_u *name);
+static void buflist_setfpos(buf_T *buf, win_T *win, linenr_T lnum,
+ colnr_T col, int copy_options);
+static wininfo_T *find_wininfo(buf_T *buf, int skip_diff_buffer);
#ifdef UNIX
-static buf_T *buflist_findname_stat __ARGS((char_u *ffname, struct stat *st));
-static int otherfile_buf __ARGS((buf_T *buf, char_u *ffname, struct stat *stp));
-static int buf_same_ino __ARGS((buf_T *buf, struct stat *stp));
+static buf_T *buflist_findname_stat(char_u *ffname, struct stat *st);
+static int otherfile_buf(buf_T *buf, char_u *ffname, struct stat *stp);
+static int buf_same_ino(buf_T *buf, struct stat *stp);
#else
-static int otherfile_buf __ARGS((buf_T *buf, char_u *ffname));
+static int otherfile_buf(buf_T *buf, char_u *ffname);
#endif
-static int ti_change __ARGS((char_u *str, char_u **last));
-static int append_arg_number __ARGS((win_T *wp, char_u *buf, int buflen,
- int add_file));
-static void free_buffer __ARGS((buf_T *));
-static void free_buffer_stuff __ARGS((buf_T *buf, int free_options));
-static void clear_wininfo __ARGS((buf_T *buf));
+static int ti_change(char_u *str, char_u **last);
+static int append_arg_number(win_T *wp, char_u *buf, int buflen, int add_file);
+static void free_buffer(buf_T *);
+static void free_buffer_stuff(buf_T *buf, int free_options);
+static void clear_wininfo(buf_T *buf);
#ifdef UNIX
# define dev_T dev_t
@@ -787,7 +785,7 @@ do_bufdel (
#if defined(FEAT_LISTCMDS) || defined(FEAT_PYTHON) \
|| defined(FEAT_PYTHON3) || defined(PROTO)
-static int empty_curbuf __ARGS((int close_others, int forceit, int action));
+static int empty_curbuf(int close_others, int forceit, int action);
/*
* Make the current buffer empty.
@@ -2035,7 +2033,7 @@ static void buflist_setfpos(buf_T *buf, win_T *win, linenr_T lnum, colnr_T col,
return;
}
-static int wininfo_other_tab_diff __ARGS((wininfo_T *wip));
+static int wininfo_other_tab_diff(wininfo_T *wip);
/*
* Return TRUE when "wip" has 'diff' set and the diff is only for another tab
@@ -4107,7 +4105,7 @@ void ex_buffer_all(exarg_T *eap)
}
-static int chk_modeline __ARGS((linenr_T, int));
+static int chk_modeline(linenr_T, int);
/*
* do_modelines() - process mode lines for the current file