diff options
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index d3dcb375b2..3a835c1a10 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 |