Mercurial > vim
comparison src/os_mswin.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 | 9836b701afd9 |
comparison
equal
deleted
inserted
replaced
11126:48599a3eae0b | 11127:506f5d8b7d8b |
---|---|
452 return; | 452 return; |
453 while (*p) | 453 while (*p) |
454 { | 454 { |
455 if (*p == psepcN) | 455 if (*p == psepcN) |
456 *p = psepc; | 456 *p = psepc; |
457 mb_ptr_adv(p); | 457 MB_PTR_ADV(p); |
458 } | 458 } |
459 } | 459 } |
460 | 460 |
461 /* Use 64-bit stat functions if available. */ | 461 /* Use 64-bit stat functions if available. */ |
462 #ifdef HAVE_STAT64 | 462 #ifdef HAVE_STAT64 |
598 char_u *p; | 598 char_u *p; |
599 | 599 |
600 vim_strncpy((char_u *)buf, (char_u *)name, sizeof(buf) - 1); | 600 vim_strncpy((char_u *)buf, (char_u *)name, sizeof(buf) - 1); |
601 p = buf + STRLEN(buf); | 601 p = buf + STRLEN(buf); |
602 if (p > buf) | 602 if (p > buf) |
603 mb_ptr_back(buf, p); | 603 MB_PTR_BACK(buf, p); |
604 | 604 |
605 /* Remove trailing '\\' except root path. */ | 605 /* Remove trailing '\\' except root path. */ |
606 if (p > buf && (*p == '\\' || *p == '/') && p[-1] != ':') | 606 if (p > buf && (*p == '\\' || *p == '/') && p[-1] != ':') |
607 *p = NUL; | 607 *p = NUL; |
608 | 608 |
718 * dos_expandpath(). | 718 * dos_expandpath(). |
719 */ | 719 */ |
720 int | 720 int |
721 mch_has_exp_wildcard(char_u *p) | 721 mch_has_exp_wildcard(char_u *p) |
722 { | 722 { |
723 for ( ; *p; mb_ptr_adv(p)) | 723 for ( ; *p; MB_PTR_ADV(p)) |
724 { | 724 { |
725 if (vim_strchr((char_u *)"?*[", *p) != NULL | 725 if (vim_strchr((char_u *)"?*[", *p) != NULL |
726 || (*p == '~' && p[1] != NUL)) | 726 || (*p == '~' && p[1] != NUL)) |
727 return TRUE; | 727 return TRUE; |
728 } | 728 } |
734 * shortened file name). | 734 * shortened file name). |
735 */ | 735 */ |
736 int | 736 int |
737 mch_has_wildcard(char_u *p) | 737 mch_has_wildcard(char_u *p) |
738 { | 738 { |
739 for ( ; *p; mb_ptr_adv(p)) | 739 for ( ; *p; MB_PTR_ADV(p)) |
740 { | 740 { |
741 if (vim_strchr((char_u *) | 741 if (vim_strchr((char_u *) |
742 # ifdef VIM_BACKTICK | 742 # ifdef VIM_BACKTICK |
743 "?*$[`" | 743 "?*$[`" |
744 # else | 744 # else |