Mercurial > vim
comparison src/proto/register.pro @ 18164:f57481564f2c v8.1.2077
patch 8.1.2077: the ops.c file is too big
Commit: https://github.com/vim/vim/commit/4aea03eb875613e3eae2125b84f02b7cd898b2f8
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 25 22:37:17 2019 +0200
patch 8.1.2077: the ops.c file is too big
Problem: The ops.c file is too big.
Solution: Move code for dealing with registers to a new file. (Yegappan
Lakshmanan, closes #4982)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 25 Sep 2019 22:45:03 +0200 |
parents | |
children | 00a1b89256ea |
comparison
equal
deleted
inserted
replaced
18163:be0960bbf0c7 | 18164:f57481564f2c |
---|---|
1 /* register.c */ | |
2 yankreg_T *get_y_regs(void); | |
3 yankreg_T *get_y_current(void); | |
4 yankreg_T *get_y_previous(void); | |
5 void set_y_previous(yankreg_T *yreg); | |
6 int get_expr_register(void); | |
7 void set_expr_line(char_u *new_line); | |
8 char_u *get_expr_line(void); | |
9 int valid_yank_reg(int regname, int writing); | |
10 int get_yank_register(int regname, int writing); | |
11 int may_get_selection(int regname); | |
12 void *get_register(int name, int copy); | |
13 void put_register(int name, void *reg); | |
14 void free_register(void *reg); | |
15 int yank_register_mline(int regname); | |
16 int do_record(int c); | |
17 int get_execreg_lastc(void); | |
18 void set_execreg_lastc(int lastc); | |
19 int do_execreg(int regname, int colon, int addcr, int silent); | |
20 int insert_reg(int regname, int literally_arg); | |
21 int get_spec_reg(int regname, char_u **argp, int *allocated, int errmsg); | |
22 int cmdline_paste_reg(int regname, int literally_arg, int remcr); | |
23 void adjust_clip_reg(int *rp); | |
24 void shift_delete_registers(void); | |
25 void yank_do_autocmd(oparg_T *oap, yankreg_T *reg); | |
26 void init_yank(void); | |
27 void clear_registers(void); | |
28 int op_yank(oparg_T *oap, int deleting, int mess); | |
29 void do_put(int regname, int dir, long count, int flags); | |
30 int get_register_name(int num); | |
31 void ex_display(exarg_T *eap); | |
32 void clip_free_selection(Clipboard_T *cbd); | |
33 void clip_get_selection(Clipboard_T *cbd); | |
34 void clip_yank_selection(int type, char_u *str, long len, Clipboard_T *cbd); | |
35 int clip_convert_selection(char_u **str, long_u *len, Clipboard_T *cbd); | |
36 void dnd_yank_drag_data(char_u *str, long len); | |
37 char_u get_reg_type(int regname, long *reglen); | |
38 char_u *get_reg_contents(int regname, int flags); | |
39 void write_reg_contents(int name, char_u *str, int maxlen, int must_append); | |
40 void write_reg_contents_lst(int name, char_u **strings, int maxlen, int must_append, int yank_type, long block_len); | |
41 void write_reg_contents_ex(int name, char_u *str, int maxlen, int must_append, int yank_type, long block_len); | |
42 /* vim: set ft=c : */ |