2004-06-13 20:20:40 +00:00
|
|
|
/* buffer.c */
|
2019-08-21 22:25:30 +02:00
|
|
|
int get_highest_fnum(void);
|
2019-06-30 22:16:10 +02:00
|
|
|
void buffer_ensure_loaded(buf_T *buf);
|
2022-11-07 12:16:51 +00:00
|
|
|
int open_buffer(int read_stdin, exarg_T *eap, int flags_arg);
|
2016-07-10 18:21:50 +02:00
|
|
|
void set_bufref(bufref_T *bufref, buf_T *buf);
|
|
|
|
int bufref_valid(bufref_T *bufref);
|
2016-01-19 13:22:12 +01:00
|
|
|
int buf_valid(buf_T *buf);
|
2021-01-15 16:22:52 +01:00
|
|
|
int close_buffer(win_T *win, buf_T *buf, int action, int abort_if_last, int ignore_abort);
|
2016-01-19 13:22:12 +01:00
|
|
|
void buf_clear_file(buf_T *buf);
|
|
|
|
void buf_freeall(buf_T *buf, int flags);
|
2020-10-25 17:55:09 +01:00
|
|
|
void free_wininfo(wininfo_T *wip);
|
2016-01-19 13:22:12 +01:00
|
|
|
void goto_buffer(exarg_T *eap, int start, int dir, int count);
|
2016-07-10 22:11:16 +02:00
|
|
|
void handle_swap_exists(bufref_T *old_curbuf);
|
2016-01-19 13:22:12 +01:00
|
|
|
int do_buffer(int action, int start, int dir, int count, int forceit);
|
2022-06-27 22:52:43 +01:00
|
|
|
char *do_bufdel(int command, char_u *arg, int addr_count, int start_bnr, int end_bnr, int forceit);
|
2016-01-19 13:22:12 +01:00
|
|
|
void set_curbuf(buf_T *buf, int action);
|
|
|
|
void do_autochdir(void);
|
2017-08-17 16:55:13 +02:00
|
|
|
void no_write_message(void);
|
2018-02-19 23:10:02 +01:00
|
|
|
void no_write_message_nobang(buf_T *buf);
|
2018-04-24 21:58:51 +02:00
|
|
|
int curbuf_reusable(void);
|
2018-12-18 21:56:28 +01:00
|
|
|
buf_T *buflist_new(char_u *ffname_arg, char_u *sfname_arg, linenr_T lnum, int flags);
|
2016-01-19 13:22:12 +01:00
|
|
|
void free_buf_options(buf_T *buf, int free_p_ff);
|
|
|
|
int buflist_getfile(int n, linenr_T lnum, int options, int forceit);
|
|
|
|
buf_T *buflist_findname_exp(char_u *fname);
|
|
|
|
buf_T *buflist_findname(char_u *ffname);
|
|
|
|
int buflist_findpat(char_u *pattern, char_u *pattern_end, int unlisted, int diffmode, int curtab_only);
|
|
|
|
int ExpandBufnames(char_u *pat, int *num_file, char_u ***file, int options);
|
|
|
|
buf_T *buflist_findnr(int nr);
|
|
|
|
char_u *buflist_nr2name(int n, int fullname, int helptail);
|
2019-07-21 19:25:37 +02:00
|
|
|
void buflist_setfpos(buf_T *buf, win_T *win, linenr_T lnum, colnr_T col, int copy_options);
|
2016-01-19 13:22:12 +01:00
|
|
|
void get_winopts(buf_T *buf);
|
|
|
|
pos_T *buflist_findfpos(buf_T *buf);
|
|
|
|
linenr_T buflist_findlnum(buf_T *buf);
|
|
|
|
void buflist_list(exarg_T *eap);
|
|
|
|
int buflist_name_nr(int fnum, char_u **fname, linenr_T *lnum);
|
2018-12-18 21:56:28 +01:00
|
|
|
int setfname(buf_T *buf, char_u *ffname_arg, char_u *sfname_arg, int message);
|
2016-01-19 13:22:12 +01:00
|
|
|
void buf_set_name(int fnum, char_u *name);
|
|
|
|
void buf_name_changed(buf_T *buf);
|
|
|
|
buf_T *setaltfname(char_u *ffname, char_u *sfname, linenr_T lnum);
|
|
|
|
char_u *getaltfname(int errmsg);
|
|
|
|
int buflist_add(char_u *fname, int flags);
|
|
|
|
void buflist_slash_adjust(void);
|
|
|
|
void buflist_altfpos(win_T *win);
|
|
|
|
int otherfile(char_u *ffname);
|
|
|
|
void buf_setino(buf_T *buf);
|
|
|
|
void fileinfo(int fullname, int shorthelp, int dont_truncate);
|
|
|
|
void col_print(char_u *buf, size_t buflen, int col, int vcol);
|
|
|
|
void maketitle(void);
|
|
|
|
void resettitle(void);
|
|
|
|
void free_titles(void);
|
2022-11-07 12:16:51 +00:00
|
|
|
int build_stl_str_hl(win_T *wp, char_u *out, size_t outlen, char_u *fmt, char_u *opt_name, int opt_scope, int fillchar, int maxwidth, stl_hlrec_T **hltab, stl_hlrec_T **tabtab);
|
2016-01-19 13:22:12 +01:00
|
|
|
void get_rel_pos(win_T *wp, char_u *buf, int buflen);
|
|
|
|
char_u *fix_fname(char_u *fname);
|
|
|
|
void fname_expand(buf_T *buf, char_u **ffname, char_u **sfname);
|
|
|
|
void ex_buffer_all(exarg_T *eap);
|
|
|
|
void do_modelines(int flags);
|
2018-08-01 17:53:12 +02:00
|
|
|
int bt_normal(buf_T *buf);
|
2017-07-25 23:31:12 +02:00
|
|
|
int bt_quickfix(buf_T *buf);
|
|
|
|
int bt_terminal(buf_T *buf);
|
2017-07-27 22:03:50 +02:00
|
|
|
int bt_help(buf_T *buf);
|
2018-06-03 14:47:35 +02:00
|
|
|
int bt_prompt(buf_T *buf);
|
2019-05-25 19:51:39 +02:00
|
|
|
int bt_popup(buf_T *buf);
|
2019-06-15 19:37:15 +02:00
|
|
|
int bt_nofilename(buf_T *buf);
|
2017-07-25 23:31:12 +02:00
|
|
|
int bt_nofile(buf_T *buf);
|
|
|
|
int bt_dontwrite(buf_T *buf);
|
|
|
|
int bt_dontwrite_msg(buf_T *buf);
|
|
|
|
int buf_hide(buf_T *buf);
|
2016-01-19 13:22:12 +01:00
|
|
|
char_u *buf_spname(buf_T *buf);
|
2020-11-05 19:36:38 +01:00
|
|
|
char_u *buf_get_fname(buf_T *buf);
|
2016-01-19 13:22:12 +01:00
|
|
|
void set_buflisted(int on);
|
|
|
|
int buf_contents_changed(buf_T *buf);
|
|
|
|
void wipe_buffer(buf_T *buf, int aucmd);
|
2004-06-13 20:20:40 +00:00
|
|
|
/* vim: set ft=c : */
|