aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-06-02 11:24:02 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-06-02 11:24:02 -0300
commitcab8cf970c09ea465d30e11eb356e2e5d37dc544 (patch)
tree5d274c892e4d53f5e976ae8f6f58aba030785e02 /src/nvim/buffer.c
parent52a9a5b0b0c53a1481d901f39ed0d1e7e86c3853 (diff)
parent4aecb71b0e819aa84a430dacdab2146229c410a5 (diff)
downloadrneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.tar.gz
rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.tar.bz2
rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.zip
Merge pull request #710 'Automatically generate declarations'
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c30
1 files changed, 11 insertions, 19 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index d3dcb375b2..de2cb64d59 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -73,22 +73,17 @@
// Todo(stefan991): remove this macro
#define INVALID_DEVICE_ID UINT64_MAX
-static char_u *buflist_match(regprog_T *prog, buf_T *buf);
-# define HAVE_BUFLIST_MATCH
-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);
-static buf_T *buflist_findname_file_info(char_u *ffname, FileInfo *file_info);
-static int otherfile_buf(buf_T *buf, char_u *ffname, FileInfo *file_info);
-static int buf_same_ino(buf_T *buf, FileInfo *file_info);
-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);
-
-static void insert_sign(buf_T *buf, signlist_T *prev, signlist_T *next, int id, linenr_T lnum, int typenr);
+#define HAVE_BUFLIST_MATCH
+
+#ifdef INCLUDE_GENERATED_DECLARATIONS
+# include "buffer.c.generated.h"
+#endif
+
+#ifdef UNIX
+# define dev_T dev_t
+#else
+# define dev_T unsigned
+#endif
static char *msg_loclist = N_("[Location List]");
static char *msg_qflist = N_("[Quickfix List]");
@@ -791,7 +786,6 @@ do_bufdel (
}
-static int empty_curbuf(int close_others, int forceit, int action);
/*
* Make the current buffer empty.
@@ -2014,7 +2008,6 @@ static void buflist_setfpos(buf_T *buf, win_T *win, linenr_T lnum, colnr_T col,
return;
}
-static int wininfo_other_tab_diff(wininfo_T *wip);
/*
* Return TRUE when "wip" has 'diff' set and the diff is only for another tab
@@ -4016,7 +4009,6 @@ void ex_buffer_all(exarg_T *eap)
}
-static int chk_modeline(linenr_T, int);
/*
* do_modelines() - process mode lines for the current file