Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | /* memline.c */ |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 2 | int ml_open(buf_T *buf); |
| 3 | void ml_set_crypt_key(buf_T *buf, char_u *old_key, char_u *old_cm); |
| 4 | void ml_setname(buf_T *buf); |
| 5 | void ml_open_files(void); |
| 6 | void ml_open_file(buf_T *buf); |
| 7 | void check_need_swap(int newfile); |
| 8 | void ml_close(buf_T *buf, int del_file); |
| 9 | void ml_close_all(int del_file); |
| 10 | void ml_close_notmod(void); |
| 11 | void ml_timestamp(buf_T *buf); |
| 12 | void ml_recover(void); |
| 13 | int recover_names(char_u *fname, int list, int nr, char_u **fname_out); |
Bram Moolenaar | 00f123a | 2018-08-21 20:28:54 +0200 | [diff] [blame] | 14 | char_u *make_percent_swname(char_u *dir, char_u *name); |
| 15 | void get_b0_dict(char_u *fname, dict_T *d); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 16 | void ml_sync_all(int check_file, int check_char); |
| 17 | void ml_preserve(buf_T *buf, int message); |
| 18 | char_u *ml_get(linenr_T lnum); |
| 19 | char_u *ml_get_pos(pos_T *pos); |
| 20 | char_u *ml_get_curline(void); |
| 21 | char_u *ml_get_cursor(void); |
| 22 | char_u *ml_get_buf(buf_T *buf, linenr_T lnum, int will_change); |
| 23 | int ml_line_alloced(void); |
| 24 | int ml_append(linenr_T lnum, char_u *line, colnr_T len, int newfile); |
| 25 | int ml_append_buf(buf_T *buf, linenr_T lnum, char_u *line, colnr_T len, int newfile); |
| 26 | int ml_replace(linenr_T lnum, char_u *line, int copy); |
Bram Moolenaar | 98aefe7 | 2018-12-13 22:20:09 +0100 | [diff] [blame] | 27 | int ml_replace_len(linenr_T lnum, char_u *line_arg, colnr_T len_arg, int copy); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 28 | int ml_delete(linenr_T lnum, int message); |
| 29 | void ml_setmarked(linenr_T lnum); |
| 30 | linenr_T ml_firstmarked(void); |
| 31 | void ml_clearmarked(void); |
| 32 | int resolve_symlink(char_u *fname, char_u *buf); |
| 33 | char_u *makeswapname(char_u *fname, char_u *ffname, buf_T *buf, char_u *dir_name); |
| 34 | char_u *get_file_in_dir(char_u *fname, char_u *dname); |
| 35 | void ml_setflags(buf_T *buf); |
Bram Moolenaar | 8767f52 | 2016-07-01 17:17:39 +0200 | [diff] [blame] | 36 | char_u *ml_encrypt_data(memfile_T *mfp, char_u *data, off_T offset, unsigned size); |
| 37 | void ml_decrypt_data(memfile_T *mfp, char_u *data, off_T offset, unsigned size); |
Bram Moolenaar | ef26954 | 2016-01-19 13:22:12 +0100 | [diff] [blame] | 38 | long ml_find_line_or_offset(buf_T *buf, linenr_T lnum, long *offp); |
| 39 | void goto_byte(long cnt); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 40 | /* vim: set ft=c : */ |