xref: /vim-8.2.3635/src/proto/buffer.pro (revision 797e63b9)
1071d4279SBram Moolenaar/* buffer.c */
200b0d6d8SBram Moolenaarint get_highest_fnum(void);
35b8cfedfSBram Moolenaarvoid buffer_ensure_loaded(buf_T *buf);
4ef26954aSBram Moolenaarint open_buffer(int read_stdin, exarg_T *eap, int flags);
5b25f9a97SBram Moolenaarvoid set_bufref(bufref_T *bufref, buf_T *buf);
6b25f9a97SBram Moolenaarint bufref_valid(bufref_T *bufref);
7ef26954aSBram Moolenaarint buf_valid(buf_T *buf);
8*797e63b9SBram Moolenaarint close_buffer(win_T *win, buf_T *buf, int action, int abort_if_last, int ignore_abort);
9ef26954aSBram Moolenaarvoid buf_clear_file(buf_T *buf);
10ef26954aSBram Moolenaarvoid buf_freeall(buf_T *buf, int flags);
114882d983SBram Moolenaarvoid free_wininfo(wininfo_T *wip);
12ef26954aSBram Moolenaarvoid goto_buffer(exarg_T *eap, int start, int dir, int count);
137c0a2f36SBram Moolenaarvoid handle_swap_exists(bufref_T *old_curbuf);
14f9e3e09fSBram Moolenaarchar *do_bufdel(int command, char_u *arg, int addr_count, int start_bnr, int end_bnr, int forceit);
15ef26954aSBram Moolenaarint do_buffer(int action, int start, int dir, int count, int forceit);
16ef26954aSBram Moolenaarvoid set_curbuf(buf_T *buf, int action);
17ef26954aSBram Moolenaarvoid do_autochdir(void);
18f5be7cd0SBram Moolenaarvoid no_write_message(void);
197a76092aSBram Moolenaarvoid no_write_message_nobang(buf_T *buf);
2046a53dfcSBram Moolenaarint curbuf_reusable(void);
21c447d8d3SBram Moolenaarbuf_T *buflist_new(char_u *ffname_arg, char_u *sfname_arg, linenr_T lnum, int flags);
22ef26954aSBram Moolenaarvoid free_buf_options(buf_T *buf, int free_p_ff);
23ef26954aSBram Moolenaarint buflist_getfile(int n, linenr_T lnum, int options, int forceit);
24ef26954aSBram Moolenaarbuf_T *buflist_findname_exp(char_u *fname);
25ef26954aSBram Moolenaarbuf_T *buflist_findname(char_u *ffname);
26ef26954aSBram Moolenaarint buflist_findpat(char_u *pattern, char_u *pattern_end, int unlisted, int diffmode, int curtab_only);
27ef26954aSBram Moolenaarint ExpandBufnames(char_u *pat, int *num_file, char_u ***file, int options);
28ef26954aSBram Moolenaarbuf_T *buflist_findnr(int nr);
29ef26954aSBram Moolenaarchar_u *buflist_nr2name(int n, int fullname, int helptail);
30defa067cSBram Moolenaarvoid buflist_setfpos(buf_T *buf, win_T *win, linenr_T lnum, colnr_T col, int copy_options);
31ef26954aSBram Moolenaarvoid get_winopts(buf_T *buf);
32ef26954aSBram Moolenaarpos_T *buflist_findfpos(buf_T *buf);
33ef26954aSBram Moolenaarlinenr_T buflist_findlnum(buf_T *buf);
34ef26954aSBram Moolenaarvoid buflist_list(exarg_T *eap);
35ef26954aSBram Moolenaarint buflist_name_nr(int fnum, char_u **fname, linenr_T *lnum);
36c447d8d3SBram Moolenaarint setfname(buf_T *buf, char_u *ffname_arg, char_u *sfname_arg, int message);
37ef26954aSBram Moolenaarvoid buf_set_name(int fnum, char_u *name);
38ef26954aSBram Moolenaarvoid buf_name_changed(buf_T *buf);
39ef26954aSBram Moolenaarbuf_T *setaltfname(char_u *ffname, char_u *sfname, linenr_T lnum);
40ef26954aSBram Moolenaarchar_u *getaltfname(int errmsg);
41ef26954aSBram Moolenaarint buflist_add(char_u *fname, int flags);
42ef26954aSBram Moolenaarvoid buflist_slash_adjust(void);
43ef26954aSBram Moolenaarvoid buflist_altfpos(win_T *win);
44ef26954aSBram Moolenaarint otherfile(char_u *ffname);
45ef26954aSBram Moolenaarvoid buf_setino(buf_T *buf);
46ef26954aSBram Moolenaarvoid fileinfo(int fullname, int shorthelp, int dont_truncate);
47ef26954aSBram Moolenaarvoid col_print(char_u *buf, size_t buflen, int col, int vcol);
48ef26954aSBram Moolenaarvoid maketitle(void);
49ef26954aSBram Moolenaarvoid resettitle(void);
50ef26954aSBram Moolenaarvoid free_titles(void);
518133cc6bSBram Moolenaarint build_stl_str_hl(win_T *wp, char_u *out, size_t outlen, char_u *fmt, int use_sandbox, int fillchar, int maxwidth, stl_hlrec_T **hltab, stl_hlrec_T **tabtab);
52ef26954aSBram Moolenaarvoid get_rel_pos(win_T *wp, char_u *buf, int buflen);
53ef26954aSBram Moolenaarchar_u *fix_fname(char_u *fname);
54ef26954aSBram Moolenaarvoid fname_expand(buf_T *buf, char_u **ffname, char_u **sfname);
55ef26954aSBram Moolenaarvoid ex_buffer_all(exarg_T *eap);
56ef26954aSBram Moolenaarvoid do_modelines(int flags);
5791335e5aSBram Moolenaarint bt_normal(buf_T *buf);
58f0a521f4SBram Moolenaarint bt_quickfix(buf_T *buf);
59f0a521f4SBram Moolenaarint bt_terminal(buf_T *buf);
60d28cc3f5SBram Moolenaarint bt_help(buf_T *buf);
61f273245fSBram Moolenaarint bt_prompt(buf_T *buf);
624d784b21SBram Moolenaarint bt_popup(buf_T *buf);
6326910de8SBram Moolenaarint bt_nofilename(buf_T *buf);
64f0a521f4SBram Moolenaarint bt_nofile(buf_T *buf);
65f0a521f4SBram Moolenaarint bt_dontwrite(buf_T *buf);
66f0a521f4SBram Moolenaarint bt_dontwrite_msg(buf_T *buf);
67f0a521f4SBram Moolenaarint buf_hide(buf_T *buf);
68ef26954aSBram Moolenaarchar_u *buf_spname(buf_T *buf);
6900806bceSBram Moolenaarchar_u *buf_get_fname(buf_T *buf);
70ef26954aSBram Moolenaarvoid set_buflisted(int on);
71ef26954aSBram Moolenaarint buf_contents_changed(buf_T *buf);
72ef26954aSBram Moolenaarvoid wipe_buffer(buf_T *buf, int aucmd);
73071d4279SBram Moolenaar/* vim: set ft=c : */
74