Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* buffer.c */ |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 2 | int open_buffer(int read_stdin, exarg_T *eap, int flags); |
Bram Moolenaar | b25f9a9 | 2016-07-10 18:21:50 +0200 | [diff] [blame] | 3 | void set_bufref(bufref_T *bufref, buf_T *buf); |
| 4 | int bufref_valid(bufref_T *bufref); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 5 | int buf_valid(buf_T *buf); |
| 6 | void close_buffer(win_T *win, buf_T *buf, int action, int abort_if_last); |
| 7 | void buf_clear_file(buf_T *buf); |
| 8 | void buf_freeall(buf_T *buf, int flags); |
| 9 | void goto_buffer(exarg_T *eap, int start, int dir, int count); |
Bram Moolenaar | 7c0a2f3 | 2016-07-10 22:11:16 +0200 | [diff] [blame] | 10 | void handle_swap_exists(bufref_T *old_curbuf); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 11 | char_u *do_bufdel(int command, char_u *arg, int addr_count, int start_bnr, int end_bnr, int forceit); |
| 12 | int do_buffer(int action, int start, int dir, int count, int forceit); |
| 13 | void set_curbuf(buf_T *buf, int action); |
| 14 | void enter_buffer(buf_T *buf); |
| 15 | void do_autochdir(void); |
Bram Moolenaar | f5be7cd | 2017-08-17 16:55:13 +0200 | [diff] [blame] | 16 | void no_write_message(void); |
Bram Moolenaar | 7a76092 | 2018-02-19 23:10:02 +0100 | [diff] [blame] | 17 | void no_write_message_nobang(buf_T *buf); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 18 | buf_T *buflist_new(char_u *ffname, char_u *sfname, linenr_T lnum, int flags); |
| 19 | void free_buf_options(buf_T *buf, int free_p_ff); |
| 20 | int buflist_getfile(int n, linenr_T lnum, int options, int forceit); |
| 21 | void buflist_getfpos(void); |
| 22 | buf_T *buflist_findname_exp(char_u *fname); |
| 23 | buf_T *buflist_findname(char_u *ffname); |
| 24 | int buflist_findpat(char_u *pattern, char_u *pattern_end, int unlisted, int diffmode, int curtab_only); |
| 25 | int ExpandBufnames(char_u *pat, int *num_file, char_u ***file, int options); |
| 26 | buf_T *buflist_findnr(int nr); |
| 27 | char_u *buflist_nr2name(int n, int fullname, int helptail); |
| 28 | void get_winopts(buf_T *buf); |
| 29 | pos_T *buflist_findfpos(buf_T *buf); |
| 30 | linenr_T buflist_findlnum(buf_T *buf); |
| 31 | void buflist_list(exarg_T *eap); |
| 32 | int buflist_name_nr(int fnum, char_u **fname, linenr_T *lnum); |
| 33 | int setfname(buf_T *buf, char_u *ffname, char_u *sfname, int message); |
| 34 | void buf_set_name(int fnum, char_u *name); |
| 35 | void buf_name_changed(buf_T *buf); |
| 36 | buf_T *setaltfname(char_u *ffname, char_u *sfname, linenr_T lnum); |
| 37 | char_u *getaltfname(int errmsg); |
| 38 | int buflist_add(char_u *fname, int flags); |
| 39 | void buflist_slash_adjust(void); |
| 40 | void buflist_altfpos(win_T *win); |
| 41 | int otherfile(char_u *ffname); |
| 42 | void buf_setino(buf_T *buf); |
| 43 | void fileinfo(int fullname, int shorthelp, int dont_truncate); |
| 44 | void col_print(char_u *buf, size_t buflen, int col, int vcol); |
| 45 | void maketitle(void); |
| 46 | void resettitle(void); |
| 47 | void free_titles(void); |
| 48 | int 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); |
| 49 | void get_rel_pos(win_T *wp, char_u *buf, int buflen); |
| 50 | char_u *fix_fname(char_u *fname); |
| 51 | void fname_expand(buf_T *buf, char_u **ffname, char_u **sfname); |
| 52 | char_u *alist_name(aentry_T *aep); |
| 53 | void do_arg_all(int count, int forceit, int keep_tabs); |
| 54 | void ex_buffer_all(exarg_T *eap); |
| 55 | void do_modelines(int flags); |
| 56 | int read_viminfo_bufferlist(vir_T *virp, int writing); |
| 57 | void write_viminfo_bufferlist(FILE *fp); |
Bram Moolenaar | f0a521f | 2017-07-25 23:31:12 +0200 | [diff] [blame] | 58 | int bt_quickfix(buf_T *buf); |
| 59 | int bt_terminal(buf_T *buf); |
Bram Moolenaar | d28cc3f | 2017-07-27 22:03:50 +0200 | [diff] [blame] | 60 | int bt_help(buf_T *buf); |
Bram Moolenaar | f0a521f | 2017-07-25 23:31:12 +0200 | [diff] [blame] | 61 | int bt_nofile(buf_T *buf); |
| 62 | int bt_dontwrite(buf_T *buf); |
| 63 | int bt_dontwrite_msg(buf_T *buf); |
| 64 | int buf_hide(buf_T *buf); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 65 | char_u *buf_spname(buf_T *buf); |
Bram Moolenaar | 6b7355a | 2017-08-04 21:37:54 +0200 | [diff] [blame] | 66 | void switch_to_win_for_buf(buf_T *buf, win_T **save_curwinp, tabpage_T **save_curtabp, bufref_T *save_curbuf); |
| 67 | void restore_win_for_buf(win_T *save_curwin, tabpage_T *save_curtab, bufref_T *save_curbuf); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 68 | int find_win_for_buf(buf_T *buf, win_T **wp, tabpage_T **tp); |
| 69 | void buf_addsign(buf_T *buf, int id, linenr_T lnum, int typenr); |
| 70 | linenr_T buf_change_sign_type(buf_T *buf, int markId, int typenr); |
| 71 | int buf_getsigntype(buf_T *buf, linenr_T lnum, int type); |
| 72 | linenr_T buf_delsign(buf_T *buf, int id); |
| 73 | int buf_findsign(buf_T *buf, int id); |
| 74 | int buf_findsign_id(buf_T *buf, linenr_T lnum); |
| 75 | int buf_findsigntype_id(buf_T *buf, linenr_T lnum, int typenr); |
| 76 | int buf_signcount(buf_T *buf, linenr_T lnum); |
| 77 | void buf_delete_signs(buf_T *buf); |
| 78 | void buf_delete_all_signs(void); |
| 79 | void sign_list_placed(buf_T *rbuf); |
| 80 | void sign_mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after); |
| 81 | void set_buflisted(int on); |
| 82 | int buf_contents_changed(buf_T *buf); |
| 83 | void wipe_buffer(buf_T *buf, int aucmd); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 84 | /* vim: set ft=c : */ |