Mercurial > vim
comparison src/ex_cmds.c @ 484:f012c4ed8c38 v7.0132
updated for version 7.0132
author | vimboss |
---|---|
date | Fri, 19 Aug 2005 20:40:30 +0000 |
parents | 66080ac5dab7 |
children | da9142bd190a |
comparison
equal
deleted
inserted
replaced
483:70afa17bfc01 | 484:f012c4ed8c38 |
---|---|
28 static int check_overwrite __ARGS((exarg_T *eap, buf_T *buf, char_u *fname, char_u *ffname, int other)); | 28 static int check_overwrite __ARGS((exarg_T *eap, buf_T *buf, char_u *fname, char_u *ffname, int other)); |
29 static int check_readonly __ARGS((int *forceit, buf_T *buf)); | 29 static int check_readonly __ARGS((int *forceit, buf_T *buf)); |
30 #ifdef FEAT_AUTOCMD | 30 #ifdef FEAT_AUTOCMD |
31 static void delbuf_msg __ARGS((char_u *name)); | 31 static void delbuf_msg __ARGS((char_u *name)); |
32 #endif | 32 #endif |
33 static int do_sub_msg __ARGS((int count_only)); | |
34 static int | 33 static int |
35 #ifdef __BORLANDC__ | 34 #ifdef __BORLANDC__ |
36 _RTLENTRYF | 35 _RTLENTRYF |
37 #endif | 36 #endif |
38 help_compare __ARGS((const void *s1, const void *s2)); | 37 help_compare __ARGS((const void *s1, const void *s2)); |
3937 return FALSE; | 3936 return FALSE; |
3938 } | 3937 } |
3939 | 3938 |
3940 static char_u *old_sub = NULL; /* previous substitute pattern */ | 3939 static char_u *old_sub = NULL; /* previous substitute pattern */ |
3941 static int global_need_beginline; /* call beginline() after ":g" */ | 3940 static int global_need_beginline; /* call beginline() after ":g" */ |
3942 | |
3943 /* | |
3944 * When ":global" is used to number of substitutions and changed lines is | |
3945 * accumulated until it's finished. | |
3946 */ | |
3947 static long sub_nsubs; /* total number of substitutions */ | |
3948 static linenr_T sub_nlines; /* total number of lines changed */ | |
3949 | 3941 |
3950 /* do_sub() | 3942 /* do_sub() |
3951 * | 3943 * |
3952 * Perform a substitution from line eap->line1 to line eap->line2 using the | 3944 * Perform a substitution from line eap->line1 to line eap->line2 using the |
3953 * command pointed to by eap->arg which should be of the form: | 3945 * command pointed to by eap->arg which should be of the form: |
4827 /* | 4819 /* |
4828 * Give message for number of substitutions. | 4820 * Give message for number of substitutions. |
4829 * Can also be used after a ":global" command. | 4821 * Can also be used after a ":global" command. |
4830 * Return TRUE if a message was given. | 4822 * Return TRUE if a message was given. |
4831 */ | 4823 */ |
4832 static int | 4824 int |
4833 do_sub_msg(count_only) | 4825 do_sub_msg(count_only) |
4834 int count_only; /* used 'n' flag for ":s" */ | 4826 int count_only; /* used 'n' flag for ":s" */ |
4835 { | 4827 { |
4836 int len = 0; | 4828 int len = 0; |
4837 | 4829 |