comparison src/memline.c @ 11127:506f5d8b7d8b v8.0.0451

patch 8.0.0451: some macros are in lower case commit https://github.com/vim/vim/commit/91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 12 19:22:36 2017 +0100 patch 8.0.0451: some macros are in lower case Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice.
author Christian Brabandt <cb@256bit.org>
date Sun, 12 Mar 2017 19:30:05 +0100
parents 2f041b367cd9
children 501f46f7644c
comparison
equal deleted inserted replaced
11126:48599a3eae0b 11127:506f5d8b7d8b
2026 { 2026 {
2027 s = alloc((unsigned)(STRLEN(f) + 1)); 2027 s = alloc((unsigned)(STRLEN(f) + 1));
2028 if (s != NULL) 2028 if (s != NULL)
2029 { 2029 {
2030 STRCPY(s, f); 2030 STRCPY(s, f);
2031 for (d = s; *d != NUL; mb_ptr_adv(d)) 2031 for (d = s; *d != NUL; MB_PTR_ADV(d))
2032 if (vim_ispathsep(*d)) 2032 if (vim_ispathsep(*d))
2033 *d = '%'; 2033 *d = '%';
2034 d = concat_fnames(dir, s, TRUE); 2034 d = concat_fnames(dir, s, TRUE);
2035 vim_free(s); 2035 vim_free(s);
2036 } 2036 }
4013 else 4013 else
4014 retval = concat_fnames(dname, tail, TRUE); 4014 retval = concat_fnames(dname, tail, TRUE);
4015 4015
4016 #ifdef WIN3264 4016 #ifdef WIN3264
4017 if (retval != NULL) 4017 if (retval != NULL)
4018 for (t = gettail(retval); *t != NUL; mb_ptr_adv(t)) 4018 for (t = gettail(retval); *t != NUL; MB_PTR_ADV(t))
4019 if (*t == ':') 4019 if (*t == ':')
4020 *t = '%'; 4020 *t = '%';
4021 #endif 4021 #endif
4022 4022
4023 return retval; 4023 return retval;
4152 4152
4153 buf_fname = vim_strsave(buf_fname); 4153 buf_fname = vim_strsave(buf_fname);
4154 if (buf_fname == NULL) 4154 if (buf_fname == NULL)
4155 buf_fname = buf->b_fname; 4155 buf_fname = buf->b_fname;
4156 else 4156 else
4157 for (t = gettail(buf_fname); *t != NUL; mb_ptr_adv(t)) 4157 for (t = gettail(buf_fname); *t != NUL; MB_PTR_ADV(t))
4158 if (*t == ':') 4158 if (*t == ':')
4159 *t = '%'; 4159 *t = '%';
4160 } 4160 }
4161 # endif 4161 # endif
4162 4162