1/* buffer.c */ 2int get_highest_fnum(void); 3void buffer_ensure_loaded(buf_T *buf); 4int open_buffer(int read_stdin, exarg_T *eap, int flags); 5void set_bufref(bufref_T *bufref, buf_T *buf); 6int bufref_valid(bufref_T *bufref); 7int buf_valid(buf_T *buf); 8void close_buffer(win_T *win, buf_T *buf, int action, int abort_if_last, int ignore_abort); 9void buf_clear_file(buf_T *buf); 10void buf_freeall(buf_T *buf, int flags); 11void goto_buffer(exarg_T *eap, int start, int dir, int count); 12void handle_swap_exists(bufref_T *old_curbuf); 13char *do_bufdel(int command, char_u *arg, int addr_count, int start_bnr, int end_bnr, int forceit); 14int do_buffer(int action, int start, int dir, int count, int forceit); 15void set_curbuf(buf_T *buf, int action); 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); 23buf_T *buflist_findname_exp(char_u *fname); 24buf_T *buflist_findname(char_u *ffname); 25int buflist_findpat(char_u *pattern, char_u *pattern_end, int unlisted, int diffmode, int curtab_only); 26int ExpandBufnames(char_u *pat, int *num_file, char_u ***file, int options); 27buf_T *buflist_findnr(int nr); 28char_u *buflist_nr2name(int n, int fullname, int helptail); 29void buflist_setfpos(buf_T *buf, win_T *win, linenr_T lnum, colnr_T col, int copy_options); 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); 54void ex_buffer_all(exarg_T *eap); 55void do_modelines(int flags); 56int bt_normal(buf_T *buf); 57int bt_quickfix(buf_T *buf); 58int bt_terminal(buf_T *buf); 59int bt_help(buf_T *buf); 60int bt_prompt(buf_T *buf); 61int bt_popup(buf_T *buf); 62int bt_nofilename(buf_T *buf); 63int bt_nofile(buf_T *buf); 64int bt_dontwrite(buf_T *buf); 65int bt_dontwrite_msg(buf_T *buf); 66int buf_hide(buf_T *buf); 67char_u *buf_spname(buf_T *buf); 68void set_buflisted(int on); 69int buf_contents_changed(buf_T *buf); 70void wipe_buffer(buf_T *buf, int aucmd); 71/* vim: set ft=c : */ 72