Mercurial > vim
comparison src/regexp.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 | 72d506d94f3f |
children | de63593896b3 |
comparison
equal
deleted
inserted
replaced
14861:41fbdae837df | 14862:27b9a84395b5 |
---|---|
3464 int save_need_clear_subexpr; | 3464 int save_need_clear_subexpr; |
3465 save_se_T save_start[NSUBEXP]; | 3465 save_se_T save_start[NSUBEXP]; |
3466 save_se_T save_end[NSUBEXP]; | 3466 save_se_T save_end[NSUBEXP]; |
3467 } regbehind_T; | 3467 } regbehind_T; |
3468 | 3468 |
3469 static char_u *reg_getline(linenr_T lnum); | |
3470 static long bt_regexec_both(char_u *line, colnr_T col, proftime_T *tm, int *timed_out); | 3469 static long bt_regexec_both(char_u *line, colnr_T col, proftime_T *tm, int *timed_out); |
3471 static long regtry(bt_regprog_T *prog, colnr_T col, proftime_T *tm, int *timed_out); | 3470 static long regtry(bt_regprog_T *prog, colnr_T col, proftime_T *tm, int *timed_out); |
3472 static void cleanup_subexpr(void); | 3471 static void cleanup_subexpr(void); |
3473 #ifdef FEAT_SYN_HL | 3472 #ifdef FEAT_SYN_HL |
3474 static void cleanup_zsubexpr(void); | 3473 static void cleanup_zsubexpr(void); |
4007 | 4006 |
4008 return retval; | 4007 return retval; |
4009 } | 4008 } |
4010 | 4009 |
4011 #ifdef FEAT_SYN_HL | 4010 #ifdef FEAT_SYN_HL |
4012 static reg_extmatch_T *make_extmatch(void); | |
4013 | |
4014 /* | 4011 /* |
4015 * Create a new extmatch and mark it as referenced once. | 4012 * Create a new extmatch and mark it as referenced once. |
4016 */ | 4013 */ |
4017 static reg_extmatch_T * | 4014 static reg_extmatch_T * |
4018 make_extmatch(void) | 4015 make_extmatch(void) |
4135 #endif | 4132 #endif |
4136 return 1 + rex.lnum; | 4133 return 1 + rex.lnum; |
4137 } | 4134 } |
4138 | 4135 |
4139 #ifdef FEAT_MBYTE | 4136 #ifdef FEAT_MBYTE |
4140 static int reg_prev_class(void); | |
4141 | |
4142 /* | 4137 /* |
4143 * Get class of previous character. | 4138 * Get class of previous character. |
4144 */ | 4139 */ |
4145 static int | 4140 static int |
4146 reg_prev_class(void) | 4141 reg_prev_class(void) |
4149 return mb_get_class_buf(rex.input - 1 | 4144 return mb_get_class_buf(rex.input - 1 |
4150 - (*mb_head_off)(rex.line, rex.input - 1), rex.reg_buf); | 4145 - (*mb_head_off)(rex.line, rex.input - 1), rex.reg_buf); |
4151 return -1; | 4146 return -1; |
4152 } | 4147 } |
4153 #endif | 4148 #endif |
4154 | |
4155 static int reg_match_visual(void); | |
4156 | 4149 |
4157 /* | 4150 /* |
4158 * Return TRUE if the current rex.input position matches the Visual area. | 4151 * Return TRUE if the current rex.input position matches the Visual area. |
4159 */ | 4152 */ |
4160 static int | 4153 static int |
7008 EMSG2_RET_FAIL(_("E888: (NFA regexp) cannot repeat %s"), what); | 7001 EMSG2_RET_FAIL(_("E888: (NFA regexp) cannot repeat %s"), what); |
7009 return OK; | 7002 return OK; |
7010 } | 7003 } |
7011 | 7004 |
7012 #ifdef FEAT_MBYTE | 7005 #ifdef FEAT_MBYTE |
7013 static void mb_decompose(int c, int *c1, int *c2, int *c3); | |
7014 | |
7015 typedef struct | 7006 typedef struct |
7016 { | 7007 { |
7017 int a, b, c; | 7008 int a, b, c; |
7018 } decomp_T; | 7009 } decomp_T; |
7019 | 7010 |
7213 * This is impossible, so we declare a pointer to a function returning a | 7204 * This is impossible, so we declare a pointer to a function returning a |
7214 * pointer to a function returning void. This should work for all compilers. | 7205 * pointer to a function returning void. This should work for all compilers. |
7215 */ | 7206 */ |
7216 typedef void (*(*fptr_T)(int *, int))(); | 7207 typedef void (*(*fptr_T)(int *, int))(); |
7217 | 7208 |
7218 static fptr_T do_upper(int *, int); | |
7219 static fptr_T do_Upper(int *, int); | |
7220 static fptr_T do_lower(int *, int); | |
7221 static fptr_T do_Lower(int *, int); | |
7222 | |
7223 static int vim_regsub_both(char_u *source, typval_T *expr, char_u *dest, int copy, int magic, int backslash); | 7209 static int vim_regsub_both(char_u *source, typval_T *expr, char_u *dest, int copy, int magic, int backslash); |
7224 | 7210 |
7225 static fptr_T | 7211 static fptr_T |
7226 do_upper(int *d, int c) | 7212 do_upper(int *d, int c) |
7227 { | 7213 { |
7881 exit: | 7867 exit: |
7882 return (int)((dst - dest) + 1); | 7868 return (int)((dst - dest) + 1); |
7883 } | 7869 } |
7884 | 7870 |
7885 #ifdef FEAT_EVAL | 7871 #ifdef FEAT_EVAL |
7886 static char_u *reg_getline_submatch(linenr_T lnum); | |
7887 | |
7888 /* | 7872 /* |
7889 * Call reg_getline() with the line numbers from the submatch. If a | 7873 * Call reg_getline() with the line numbers from the submatch. If a |
7890 * substitute() was used the reg_maxline and other values have been | 7874 * substitute() was used the reg_maxline and other values have been |
7891 * overwritten. | 7875 * overwritten. |
7892 */ | 7876 */ |
8210 if (prog != NULL) | 8194 if (prog != NULL) |
8211 prog->engine->regfree(prog); | 8195 prog->engine->regfree(prog); |
8212 } | 8196 } |
8213 | 8197 |
8214 #ifdef FEAT_EVAL | 8198 #ifdef FEAT_EVAL |
8215 static void report_re_switch(char_u *pat); | |
8216 | |
8217 static void | 8199 static void |
8218 report_re_switch(char_u *pat) | 8200 report_re_switch(char_u *pat) |
8219 { | 8201 { |
8220 if (p_verbose > 0) | 8202 if (p_verbose > 0) |
8221 { | 8203 { |