Mercurial > vim
comparison src/os_unix.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 | 3b36da20ad73 |
children | f4ea50924c6d |
comparison
equal
deleted
inserted
replaced
11126:48599a3eae0b | 11127:506f5d8b7d8b |
---|---|
6520 * expand. | 6520 * expand. |
6521 */ | 6521 */ |
6522 int | 6522 int |
6523 mch_has_exp_wildcard(char_u *p) | 6523 mch_has_exp_wildcard(char_u *p) |
6524 { | 6524 { |
6525 for ( ; *p; mb_ptr_adv(p)) | 6525 for ( ; *p; MB_PTR_ADV(p)) |
6526 { | 6526 { |
6527 if (*p == '\\' && p[1] != NUL) | 6527 if (*p == '\\' && p[1] != NUL) |
6528 ++p; | 6528 ++p; |
6529 else | 6529 else |
6530 if (vim_strchr((char_u *) | 6530 if (vim_strchr((char_u *) |
6544 * Don't recognize '~' at the end as a wildcard. | 6544 * Don't recognize '~' at the end as a wildcard. |
6545 */ | 6545 */ |
6546 int | 6546 int |
6547 mch_has_wildcard(char_u *p) | 6547 mch_has_wildcard(char_u *p) |
6548 { | 6548 { |
6549 for ( ; *p; mb_ptr_adv(p)) | 6549 for ( ; *p; MB_PTR_ADV(p)) |
6550 { | 6550 { |
6551 if (*p == '\\' && p[1] != NUL) | 6551 if (*p == '\\' && p[1] != NUL) |
6552 ++p; | 6552 ++p; |
6553 else | 6553 else |
6554 if (vim_strchr((char_u *) | 6554 if (vim_strchr((char_u *) |