comparison src/proto/buffer.pro @ 799:6beb2c667935

updated for version 7.0b
author vimboss
date Fri, 24 Mar 2006 22:21:52 +0000
parents d0d7131a797e
children d3bbb5dd3913
comparison
equal deleted inserted replaced
798:95dac6af3b3a 799:6beb2c667935
1 /* buffer.c */ 1 /* buffer.c */
2 int open_buffer __ARGS((int read_stdin, exarg_T *eap)); 2 extern int open_buffer __ARGS((int read_stdin, exarg_T *eap));
3 int buf_valid __ARGS((buf_T *buf)); 3 extern int buf_valid __ARGS((buf_T *buf));
4 void close_buffer __ARGS((win_T *win, buf_T *buf, int action)); 4 extern void close_buffer __ARGS((win_T *win, buf_T *buf, int action));
5 void buf_clear_file __ARGS((buf_T *buf)); 5 extern void buf_clear_file __ARGS((buf_T *buf));
6 void buf_freeall __ARGS((buf_T *buf, int del_buf, int wipe_buf)); 6 extern void buf_freeall __ARGS((buf_T *buf, int del_buf, int wipe_buf));
7 void goto_buffer __ARGS((exarg_T *eap, int start, int dir, int count)); 7 extern void goto_buffer __ARGS((exarg_T *eap, int start, int dir, int count));
8 void handle_swap_exists __ARGS((buf_T *old_curbuf)); 8 extern void handle_swap_exists __ARGS((buf_T *old_curbuf));
9 char_u *do_bufdel __ARGS((int command, char_u *arg, int addr_count, int start_bnr, int end_bnr, int forceit)); 9 extern char_u *do_bufdel __ARGS((int command, char_u *arg, int addr_count, int start_bnr, int end_bnr, int forceit));
10 int do_buffer __ARGS((int action, int start, int dir, int count, int forceit)); 10 extern int do_buffer __ARGS((int action, int start, int dir, int count, int forceit));
11 void set_curbuf __ARGS((buf_T *buf, int action)); 11 extern void set_curbuf __ARGS((buf_T *buf, int action));
12 void enter_buffer __ARGS((buf_T *buf)); 12 extern void enter_buffer __ARGS((buf_T *buf));
13 buf_T *buflist_new __ARGS((char_u *ffname, char_u *sfname, linenr_T lnum, int flags)); 13 extern buf_T *buflist_new __ARGS((char_u *ffname, char_u *sfname, linenr_T lnum, int flags));
14 void free_buf_options __ARGS((buf_T *buf, int free_p_ff)); 14 extern void free_buf_options __ARGS((buf_T *buf, int free_p_ff));
15 int buflist_getfile __ARGS((int n, linenr_T lnum, int options, int forceit)); 15 extern int buflist_getfile __ARGS((int n, linenr_T lnum, int options, int forceit));
16 void buflist_getfpos __ARGS((void)); 16 extern void buflist_getfpos __ARGS((void));
17 buf_T *buflist_findname_exp __ARGS((char_u *fname)); 17 extern buf_T *buflist_findname_exp __ARGS((char_u *fname));
18 buf_T *buflist_findname __ARGS((char_u *ffname)); 18 extern buf_T *buflist_findname __ARGS((char_u *ffname));
19 int buflist_findpat __ARGS((char_u *pattern, char_u *pattern_end, int unlisted, int diffmode)); 19 extern int buflist_findpat __ARGS((char_u *pattern, char_u *pattern_end, int unlisted, int diffmode));
20 int ExpandBufnames __ARGS((char_u *pat, int *num_file, char_u ***file, int options)); 20 extern int ExpandBufnames __ARGS((char_u *pat, int *num_file, char_u ***file, int options));
21 buf_T *buflist_findnr __ARGS((int nr)); 21 extern buf_T *buflist_findnr __ARGS((int nr));
22 char_u *buflist_nr2name __ARGS((int n, int fullname, int helptail)); 22 extern char_u *buflist_nr2name __ARGS((int n, int fullname, int helptail));
23 void get_winopts __ARGS((buf_T *buf)); 23 extern void get_winopts __ARGS((buf_T *buf));
24 pos_T *buflist_findfpos __ARGS((buf_T *buf)); 24 extern pos_T *buflist_findfpos __ARGS((buf_T *buf));
25 linenr_T buflist_findlnum __ARGS((buf_T *buf)); 25 extern linenr_T buflist_findlnum __ARGS((buf_T *buf));
26 void buflist_list __ARGS((exarg_T *eap)); 26 extern void buflist_list __ARGS((exarg_T *eap));
27 int buflist_name_nr __ARGS((int fnum, char_u **fname, linenr_T *lnum)); 27 extern int buflist_name_nr __ARGS((int fnum, char_u **fname, linenr_T *lnum));
28 int setfname __ARGS((buf_T *buf, char_u *ffname, char_u *sfname, int message)); 28 extern int setfname __ARGS((buf_T *buf, char_u *ffname, char_u *sfname, int message));
29 void buf_set_name __ARGS((int fnum, char_u *name)); 29 extern void buf_set_name __ARGS((int fnum, char_u *name));
30 void buf_name_changed __ARGS((buf_T *buf)); 30 extern void buf_name_changed __ARGS((buf_T *buf));
31 buf_T *setaltfname __ARGS((char_u *ffname, char_u *sfname, linenr_T lnum)); 31 extern buf_T *setaltfname __ARGS((char_u *ffname, char_u *sfname, linenr_T lnum));
32 char_u *getaltfname __ARGS((int errmsg)); 32 extern char_u *getaltfname __ARGS((int errmsg));
33 int buflist_add __ARGS((char_u *fname, int flags)); 33 extern int buflist_add __ARGS((char_u *fname, int flags));
34 void buflist_slash_adjust __ARGS((void)); 34 extern void buflist_slash_adjust __ARGS((void));
35 void buflist_altfpos __ARGS((void)); 35 extern void buflist_altfpos __ARGS((void));
36 int otherfile __ARGS((char_u *ffname)); 36 extern int otherfile __ARGS((char_u *ffname));
37 void buf_setino __ARGS((buf_T *buf)); 37 extern void buf_setino __ARGS((buf_T *buf));
38 void fileinfo __ARGS((int fullname, int shorthelp, int dont_truncate)); 38 extern void fileinfo __ARGS((int fullname, int shorthelp, int dont_truncate));
39 void col_print __ARGS((char_u *buf, int col, int vcol)); 39 extern void col_print __ARGS((char_u *buf, int col, int vcol));
40 void maketitle __ARGS((void)); 40 extern void maketitle __ARGS((void));
41 void resettitle __ARGS((void)); 41 extern void resettitle __ARGS((void));
42 void free_titles __ARGS((void)); 42 extern void free_titles __ARGS((void));
43 int build_stl_str_hl __ARGS((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)); 43 extern int build_stl_str_hl __ARGS((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));
44 void get_rel_pos __ARGS((win_T *wp, char_u *str)); 44 extern void get_rel_pos __ARGS((win_T *wp, char_u *str));
45 int append_arg_number __ARGS((win_T *wp, char_u *buf, int add_file, int maxlen)); 45 extern int append_arg_number __ARGS((win_T *wp, char_u *buf, int add_file, int maxlen));
46 char_u *fix_fname __ARGS((char_u *fname)); 46 extern char_u *fix_fname __ARGS((char_u *fname));
47 void fname_expand __ARGS((buf_T *buf, char_u **ffname, char_u **sfname)); 47 extern void fname_expand __ARGS((buf_T *buf, char_u **ffname, char_u **sfname));
48 char_u *alist_name __ARGS((aentry_T *aep)); 48 extern char_u *alist_name __ARGS((aentry_T *aep));
49 void do_arg_all __ARGS((int count, int forceit, int keep_tabs)); 49 extern void do_arg_all __ARGS((int count, int forceit, int keep_tabs));
50 void ex_buffer_all __ARGS((exarg_T *eap)); 50 extern void ex_buffer_all __ARGS((exarg_T *eap));
51 void do_modelines __ARGS((int flags)); 51 extern void do_modelines __ARGS((int flags));
52 int read_viminfo_bufferlist __ARGS((vir_T *virp, int writing)); 52 extern int read_viminfo_bufferlist __ARGS((vir_T *virp, int writing));
53 void write_viminfo_bufferlist __ARGS((FILE *fp)); 53 extern void write_viminfo_bufferlist __ARGS((FILE *fp));
54 char *buf_spname __ARGS((buf_T *buf)); 54 extern char *buf_spname __ARGS((buf_T *buf));
55 void buf_addsign __ARGS((buf_T *buf, int id, linenr_T lnum, int typenr)); 55 extern void buf_addsign __ARGS((buf_T *buf, int id, linenr_T lnum, int typenr));
56 int buf_change_sign_type __ARGS((buf_T *buf, int markId, int typenr)); 56 extern int buf_change_sign_type __ARGS((buf_T *buf, int markId, int typenr));
57 int_u buf_getsigntype __ARGS((buf_T *buf, linenr_T lnum, int type)); 57 extern int_u buf_getsigntype __ARGS((buf_T *buf, linenr_T lnum, int type));
58 linenr_T buf_delsign __ARGS((buf_T *buf, int id)); 58 extern linenr_T buf_delsign __ARGS((buf_T *buf, int id));
59 int buf_findsign __ARGS((buf_T *buf, int id)); 59 extern int buf_findsign __ARGS((buf_T *buf, int id));
60 int buf_findsign_id __ARGS((buf_T *buf, linenr_T lnum)); 60 extern int buf_findsign_id __ARGS((buf_T *buf, linenr_T lnum));
61 int buf_findsigntype_id __ARGS((buf_T *buf, linenr_T lnum, int typenr)); 61 extern int buf_findsigntype_id __ARGS((buf_T *buf, linenr_T lnum, int typenr));
62 int buf_signcount __ARGS((buf_T *buf, linenr_T lnum)); 62 extern int buf_signcount __ARGS((buf_T *buf, linenr_T lnum));
63 void buf_delete_all_signs __ARGS((void)); 63 extern void buf_delete_all_signs __ARGS((void));
64 void sign_list_placed __ARGS((buf_T *rbuf)); 64 extern void sign_list_placed __ARGS((buf_T *rbuf));
65 void sign_mark_adjust __ARGS((linenr_T line1, linenr_T line2, long amount, long amount_after)); 65 extern void sign_mark_adjust __ARGS((linenr_T line1, linenr_T line2, long amount, long amount_after));
66 void set_buflisted __ARGS((int on)); 66 extern void set_buflisted __ARGS((int on));
67 int buf_contents_changed __ARGS((buf_T *buf)); 67 extern int buf_contents_changed __ARGS((buf_T *buf));
68 void wipe_buffer __ARGS((buf_T *buf, int aucmd)); 68 extern void wipe_buffer __ARGS((buf_T *buf, int aucmd));
69 /* vim: set ft=c : */ 69 /* vim: set ft=c : */