comparison src/ops.c @ 14862:27b9a84395b5 v8.1.0443

patch 8.1.0443: unnecessary static function prototypes commit https://github.com/vim/vim/commit/6dff58f15cede9139b2fcfc64c9064326ea3d3b0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 30 21:43:26 2018 +0200 patch 8.1.0443: unnecessary static function prototypes Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
author Christian Brabandt <cb@256bit.org>
date Sun, 30 Sep 2018 21:45:07 +0200
parents c8f07e8b273e
children 73f59cd01ba7
comparison
equal deleted inserted replaced
14861:41fbdae837df 14862:27b9a84395b5
93 colnr_T start_char_vcols; /* number of vcols of pre-block char */ 93 colnr_T start_char_vcols; /* number of vcols of pre-block char */
94 }; 94 };
95 95
96 #ifdef FEAT_VISUALEXTRA 96 #ifdef FEAT_VISUALEXTRA
97 static void shift_block(oparg_T *oap, int amount); 97 static void shift_block(oparg_T *oap, int amount);
98 static void block_insert(oparg_T *oap, char_u *s, int b_insert, struct block_def*bdp);
99 #endif 98 #endif
100 static int stuff_yank(int, char_u *); 99 static int stuff_yank(int, char_u *);
101 static void put_reedit_in_typebuf(int silent); 100 static void put_reedit_in_typebuf(int silent);
102 static int put_in_typebuf(char_u *s, int esc, int colon, 101 static int put_in_typebuf(char_u *s, int esc, int colon,
103 int silent); 102 int silent);
104 static void stuffescaped(char_u *arg, int literally); 103 static void stuffescaped(char_u *arg, int literally);
105 #ifdef FEAT_MBYTE 104 #ifdef FEAT_MBYTE
106 static void mb_adjust_opend(oparg_T *oap); 105 static void mb_adjust_opend(oparg_T *oap);
107 #endif 106 #endif
108 static void free_yank(long);
109 static void free_yank_all(void); 107 static void free_yank_all(void);
110 static int yank_copy_line(struct block_def *bd, long y_idx); 108 static int yank_copy_line(struct block_def *bd, long y_idx);
111 #ifdef FEAT_CLIPBOARD 109 #ifdef FEAT_CLIPBOARD
112 static void copy_yank_reg(yankreg_T *reg); 110 static void copy_yank_reg(yankreg_T *reg);
113 static void may_set_selection(void); 111 static void may_set_selection(void);
118 #if defined(FEAT_CLIPBOARD) || defined(FEAT_EVAL) 116 #if defined(FEAT_CLIPBOARD) || defined(FEAT_EVAL)
119 static void str_to_reg(yankreg_T *y_ptr, int yank_type, char_u *str, long len, long blocklen, int str_list); 117 static void str_to_reg(yankreg_T *y_ptr, int yank_type, char_u *str, long len, long blocklen, int str_list);
120 #endif 118 #endif
121 static int ends_in_white(linenr_T lnum); 119 static int ends_in_white(linenr_T lnum);
122 #ifdef FEAT_COMMENTS 120 #ifdef FEAT_COMMENTS
123 static int same_leader(linenr_T lnum, int, char_u *, int, char_u *);
124 static int fmt_check_par(linenr_T, int *, char_u **, int do_comments); 121 static int fmt_check_par(linenr_T, int *, char_u **, int do_comments);
125 #else 122 #else
126 static int fmt_check_par(linenr_T); 123 static int fmt_check_par(linenr_T);
127 #endif 124 #endif
128 125
6827 return y_current->y_type; 6824 return y_current->y_type;
6828 } 6825 }
6829 return MAUTO; 6826 return MAUTO;
6830 } 6827 }
6831 6828
6832 static char_u *getreg_wrap_one_line(char_u *s, int flags);
6833
6834 /* 6829 /*
6835 * When "flags" has GREG_LIST return a list with text "s". 6830 * When "flags" has GREG_LIST return a list with text "s".
6836 * Otherwise just return "s". 6831 * Otherwise just return "s".
6837 */ 6832 */
6838 static char_u * 6833 static char_u *
7299 void 7294 void
7300 clear_oparg(oparg_T *oap) 7295 clear_oparg(oparg_T *oap)
7301 { 7296 {
7302 vim_memset(oap, 0, sizeof(oparg_T)); 7297 vim_memset(oap, 0, sizeof(oparg_T));
7303 } 7298 }
7304
7305 static varnumber_T line_count_info(char_u *line, varnumber_T *wc, varnumber_T *cc, varnumber_T limit, int eol_size);
7306 7299
7307 /* 7300 /*
7308 * Count the number of bytes, characters and "words" in a line. 7301 * Count the number of bytes, characters and "words" in a line.
7309 * 7302 *
7310 * "Words" are counted by looking for boundaries between non-space and 7303 * "Words" are counted by looking for boundaries between non-space and