Mercurial > vim
annotate src/proto/fileio.pro @ 18584:351659cbadb4 v8.1.2286
patch 8.1.2286: using border highlight in popup window leaks memory
Commit: https://github.com/vim/vim/commit/622b64603748cceafd47f7537b96610e824e0680
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 10 15:16:54 2019 +0100
patch 8.1.2286: using border highlight in popup window leaks memory
Problem: Using border highlight in popup window leaks memory.
Solution: Free memory before overwriting. (Dominique Pelle, closes https://github.com/vim/vim/issues/5203)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 Nov 2019 15:30:03 +0100 |
parents | e2be5a6485f5 |
children | c2beb6baa42c |
rev | line source |
---|---|
7 | 1 /* fileio.c */ |
18199
e2be5a6485f5
patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
2 void filemess(buf_T *buf, char_u *name, char_u *s, int attr); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
3 int readfile(char_u *fname, char_u *sfname, linenr_T from, linenr_T lines_to_skip, linenr_T lines_to_read, exarg_T *eap, int flags); |
9911
74e345d2878c
commit https://github.com/vim/vim/commit/f04507d132fbcb63999167ec006fc6e700b5af4f
Christian Brabandt <cb@256bit.org>
parents:
9834
diff
changeset
|
4 int is_dev_fd_file(char_u *fname); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
5 int prep_exarg(exarg_T *eap, buf_T *buf); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
6 void set_file_options(int set_options, exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
7 void set_forced_fenc(exarg_T *eap); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
8 int check_file_readonly(char_u *fname, int perm); |
15816
40336d427dd2
patch 8.1.0915: fsync() may not work properly on Mac
Bram Moolenaar <Bram@vim.org>
parents:
15634
diff
changeset
|
9 int vim_fsync(int fd); |
18199
e2be5a6485f5
patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
10 int set_rw_fname(char_u *fname, char_u *sfname); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
11 void msg_add_fname(buf_T *buf, char_u *fname); |
18199
e2be5a6485f5
patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
12 int msg_add_fileformat(int eol_type); |
9387
f094d4085014
commit https://github.com/vim/vim/commit/8767f52fbfd4f053ce00a978227c95f1d7d323fe
Christian Brabandt <cb@256bit.org>
parents:
9260
diff
changeset
|
13 void msg_add_lines(int insert_space, long lnum, off_T nchars); |
18199
e2be5a6485f5
patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
14 void msg_add_eol(void); |
e2be5a6485f5
patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
15 int time_differs(long t1, long t2); |
e2be5a6485f5
patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
16 int need_conversion(char_u *fenc); |
e2be5a6485f5
patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
17 int get_fio_flags(char_u *ptr); |
e2be5a6485f5
patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
18 int get_win_fio_flags(char_u *ptr); |
e2be5a6485f5
patch 8.1.2094: the fileio.c file is too big
Bram Moolenaar <Bram@vim.org>
parents:
17789
diff
changeset
|
19 int get_mac_fio_flags(char_u *ptr); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
20 char_u *shorten_fname1(char_u *full_path); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
21 char_u *shorten_fname(char_u *full_path, char_u *dir_name); |
13819
31bb8e1f7625
patch 8.0.1781: file names in quickfix window are not shortened
Christian Brabandt <cb@256bit.org>
parents:
13240
diff
changeset
|
22 void shorten_buf_fname(buf_T *buf, char_u *dirname, int force); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
23 void shorten_fnames(int force); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
24 void shorten_filenames(char_u **fnames, int count); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
25 char_u *modname(char_u *fname, char_u *ext, int prepend_dot); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
26 char_u *buf_modname(int shortname, char_u *fname, char_u *ext, int prepend_dot); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
27 int vim_fgets(char_u *buf, int size, FILE *fp); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
28 int vim_rename(char_u *from, char_u *to); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
29 int check_timestamps(int focus); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
30 int buf_check_timestamp(buf_T *buf, int focus); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
31 void buf_reload(buf_T *buf, int orig_mode); |
9387
f094d4085014
commit https://github.com/vim/vim/commit/8767f52fbfd4f053ce00a978227c95f1d7d323fe
Christian Brabandt <cb@256bit.org>
parents:
9260
diff
changeset
|
32 void buf_store_time(buf_T *buf, stat_T *st, char_u *fname); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
33 void write_lnum_adjust(linenr_T offset); |
16752
e2d8d83e6721
patch 8.1.1378: delete() can not handle a file name that looks like a pattern
Bram Moolenaar <Bram@vim.org>
parents:
15840
diff
changeset
|
34 int readdir_core(garray_T *gap, char_u *path, void *context, int (*checkitem)(void *context, char_u *name)); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
35 int delete_recursive(char_u *name); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
36 void vim_deltempdir(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
37 char_u *vim_tempname(int extra_char, int keep); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
38 void forward_slash(char_u *fname); |
15634
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
13819
diff
changeset
|
39 int match_file_pat(char_u *pattern, regprog_T **prog, char_u *fname, char_u *sfname, char_u *tail, int allow_dirs); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
40 int match_file_list(char_u *list, char_u *sfname, char_u *ffname); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
41 char_u *file_pat_to_reg_pat(char_u *pat, char_u *pat_end, char *allow_dirs, int no_bslash); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
42 long read_eintr(int fd, void *buf, size_t bufsize); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
7615
diff
changeset
|
43 long write_eintr(int fd, void *buf, size_t bufsize); |
7 | 44 /* vim: set ft=c : */ |