vim-patch:8.0.1236: Mac features are confusing #10837

Problem:    Mac features are confusing.
Solution:   Make feature names more consistent, add "osxdarwin". Rename
            feature flags, cleanup Mac code. (Kazunobu Kuriyama, closes vim/vim#2178)
d057301b1f
This commit is contained in:
Jan Edmund Lazo
2019-08-24 03:04:08 -04:00
committed by Justin M. Keyes
parent 82aaac5baa
commit 34e4166673
2 changed files with 2 additions and 1 deletions

View File

@@ -11241,6 +11241,7 @@ static void f_has(typval_T *argvars, typval_T *rettv, FunPtr fptr)
"mac", "mac",
"macunix", "macunix",
"osx", "osx",
"osxdarwin",
#endif #endif
"menu", "menu",
"mksession", "mksession",

View File

@@ -109,7 +109,7 @@
// MB_COPY_CHAR(f, t): copy one char from "f" to "t" and advance the pointers. // MB_COPY_CHAR(f, t): copy one char from "f" to "t" and advance the pointers.
// PTR2CHAR(): get character from pointer. // PTR2CHAR(): get character from pointer.
// Get the length of the character p points to // Get the length of the character p points to, including composing chars.
# define MB_PTR2LEN(p) mb_ptr2len(p) # define MB_PTR2LEN(p) mb_ptr2len(p)
// Advance multi-byte pointer, skip over composing chars. // Advance multi-byte pointer, skip over composing chars.
# define MB_PTR_ADV(p) (p += mb_ptr2len((char_u *)p)) # define MB_PTR_ADV(p) (p += mb_ptr2len((char_u *)p))