Mercurial > vim
comparison src/os_amiga.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 | c9da7f9137af |
children | ac42c4b11dbc |
comparison
equal
deleted
inserted
replaced
11126:48599a3eae0b | 11127:506f5d8b7d8b |
---|---|
1565 * Return TRUE if "p" has wildcards that can be expanded by mch_expandpath(). | 1565 * Return TRUE if "p" has wildcards that can be expanded by mch_expandpath(). |
1566 */ | 1566 */ |
1567 int | 1567 int |
1568 mch_has_exp_wildcard(char_u *p) | 1568 mch_has_exp_wildcard(char_u *p) |
1569 { | 1569 { |
1570 for ( ; *p; mb_ptr_adv(p)) | 1570 for ( ; *p; MB_PTR_ADV(p)) |
1571 { | 1571 { |
1572 if (*p == '\\' && p[1] != NUL) | 1572 if (*p == '\\' && p[1] != NUL) |
1573 ++p; | 1573 ++p; |
1574 else if (vim_strchr((char_u *)"*?[(#", *p) != NULL) | 1574 else if (vim_strchr((char_u *)"*?[(#", *p) != NULL) |
1575 return TRUE; | 1575 return TRUE; |
1578 } | 1578 } |
1579 | 1579 |
1580 int | 1580 int |
1581 mch_has_wildcard(char_u *p) | 1581 mch_has_wildcard(char_u *p) |
1582 { | 1582 { |
1583 for ( ; *p; mb_ptr_adv(p)) | 1583 for ( ; *p; MB_PTR_ADV(p)) |
1584 { | 1584 { |
1585 if (*p == '\\' && p[1] != NUL) | 1585 if (*p == '\\' && p[1] != NUL) |
1586 ++p; | 1586 ++p; |
1587 else | 1587 else |
1588 if (vim_strchr((char_u *) | 1588 if (vim_strchr((char_u *) |