1/* buffer.c */ 2void buffer_ensure_loaded(buf_T *buf); 3int open_buffer(int read_stdin, exarg_T *eap, int flags); 4void set_bufref(bufref_T *bufref, buf_T *buf); 5int bufref_valid(bufref_T *bufref); 6int buf_valid(buf_T *buf); 7void close_buffer(win_T *win, buf_T *buf, int action, int abort_if_last); 8void buf_clear_file(buf_T *buf); 9void buf_freeall(buf_T *buf, int flags); 10void goto_buffer(exarg_T *eap, int start, int dir, int count); 11void handle_swap_exists(bufref_T *old_curbuf); 12char *do_bufdel(int command, char_u *arg, int addr_count, int start_bnr, int end_bnr, int forceit); 13int do_buffer(int action, int start, int dir, int count, int forceit); 14void set_curbuf(buf_T *buf, int action); 15void enter_buffer(buf_T *buf); 16void do_autochdir(void); 17void no_write_message(void); 18void no_write_message_nobang(buf_T *buf); 19int curbuf_reusable(void); 20buf_T *buflist_new(char_u *ffname_arg, char_u *sfname_arg, linenr_T lnum, int flags); 21void free_buf_options(buf_T *buf, int free_p_ff); 22int buflist_getfile(int n, linenr_T lnum, int options, int forceit); 23void buflist_getfpos(void); 24buf_T *buflist_findname_exp(char_u *fname); 25buf_T *buflist_findname(char_u *ffname); 26int buflist_findpat(char_u *pattern, char_u *pattern_end, int unlisted, int diffmode, int curtab_only); 27int ExpandBufnames(char_u *pat, int *num_file, char_u ***file, int options); 28buf_T *buflist_findnr(int nr); 29char_u *buflist_nr2name(int n, int fullname, int helptail); 30void get_winopts(buf_T *buf); 31pos_T *buflist_findfpos(buf_T *buf); 32linenr_T buflist_findlnum(buf_T *buf); 33void buflist_list(exarg_T *eap); 34int buflist_name_nr(int fnum, char_u **fname, linenr_T *lnum); 35int setfname(buf_T *buf, char_u *ffname_arg, char_u *sfname_arg, int message); 36void buf_set_name(int fnum, char_u *name); 37void buf_name_changed(buf_T *buf); 38buf_T *setaltfname(char_u *ffname, char_u *sfname, linenr_T lnum); 39char_u *getaltfname(int errmsg); 40int buflist_add(char_u *fname, int flags); 41void buflist_slash_adjust(void); 42void buflist_altfpos(win_T *win); 43int otherfile(char_u *ffname); 44void buf_setino(buf_T *buf); 45void fileinfo(int fullname, int shorthelp, int dont_truncate); 46void col_print(char_u *buf, size_t buflen, int col, int vcol); 47void maketitle(void); 48void resettitle(void); 49void free_titles(void); 50int build_stl_str_hl(win_T *wp, char_u *out, size_t outlen, char_u *fmt, int use_sandbox, int fillchar, int maxwidth, struct stl_hlrec *hltab, struct stl_hlrec *tabtab); 51void get_rel_pos(win_T *wp, char_u *buf, int buflen); 52char_u *fix_fname(char_u *fname); 53void fname_expand(buf_T *buf, char_u **ffname, char_u **sfname); 54char_u *alist_name(aentry_T *aep); 55void do_arg_all(int count, int forceit, int keep_tabs); 56void ex_buffer_all(exarg_T *eap); 57void do_modelines(int flags); 58int read_viminfo_bufferlist(vir_T *virp, int writing); 59void write_viminfo_bufferlist(FILE *fp); 60int bt_normal(buf_T *buf); 61int bt_quickfix(buf_T *buf); 62int bt_terminal(buf_T *buf); 63int bt_help(buf_T *buf); 64int bt_prompt(buf_T *buf); 65int bt_popup(buf_T *buf); 66int bt_nofilename(buf_T *buf); 67int bt_nofile(buf_T *buf); 68int bt_dontwrite(buf_T *buf); 69int bt_dontwrite_msg(buf_T *buf); 70int buf_hide(buf_T *buf); 71char_u *buf_spname(buf_T *buf); 72void switch_to_win_for_buf(buf_T *buf, win_T **save_curwinp, tabpage_T **save_curtabp, bufref_T *save_curbuf); 73void restore_win_for_buf(win_T *save_curwin, tabpage_T *save_curtab, bufref_T *save_curbuf); 74int find_win_for_buf(buf_T *buf, win_T **wp, tabpage_T **tp); 75void set_buflisted(int on); 76int buf_contents_changed(buf_T *buf); 77void wipe_buffer(buf_T *buf, int aucmd); 78int set_ref_in_buffers(int copyID); 79/* vim: set ft=c : */ 80