patch 8.0.1236: Mac features are confusing
Problem: Mac features are confusing.
Solution: Make feature names more consistent, add "osxdarwin". Rename
feature flags, cleanup Mac code. (Kazunobu Kuriyama, closes #2178)
diff --git a/src/misc1.c b/src/misc1.c
index eb893f6..f33fd3b 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -4334,12 +4334,8 @@
}
/* remove trailing path separator */
-#ifndef MACOS_CLASSIC
- /* With MacOS path (with colons) the final colon is required */
- /* to avoid confusion between absolute and relative path */
if (pend > p && after_pathsep(p, pend))
--pend;
-#endif
#ifdef MACOS_X
if (p == exe_name || p == p_hf)
@@ -4499,9 +4495,9 @@
expand_T *xp UNUSED,
int idx)
{
-# if defined(AMIGA) || defined(__MRC__) || defined(__SC__)
+# if defined(AMIGA)
/*
- * No environ[] on the Amiga and on the Mac (using MPW).
+ * No environ[] on the Amiga.
*/
return NULL;
# else
@@ -10996,9 +10992,6 @@
{
char_u *t = backslash_halve_save(p);
-#if defined(MACOS_CLASSIC)
- slash_to_colon(t);
-#endif
/* When EW_NOTFOUND is used, always add files and dirs. Makes
* "vim c:/" work. */
if (flags & EW_NOTFOUND)