patch 9.1.1861: Amiga: Locating runtime dir and rc files can be simplified

Commit: 
https://github.com/vim/vim/commit/1c9135a362a1058f12c05d8496ff4ef0888f83d8
Author: Ola Söder <[email protected]>
Date:   Thu Oct 16 18:48:21 2025 +0000

    patch 9.1.1861: Amiga: Locating runtime dir and rc files can be simplified
    
    Problem:  Amiga: Locating runtime directory and rc files can be
              simplified.
    Solution: Use assigns since it's simpler and more in line with
              how other Amiga applications work (Ola Söder).
    
    closes: #18581
    
    Signed-off-by: Ola Söder <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/os_amiga.h b/src/os_amiga.h
index 5e2631e2a..ba1444398 100644
--- a/src/os_amiga.h
+++ b/src/os_amiga.h
@@ -41,10 +41,10 @@
 #endif
 
 #ifndef        DFLT_RUNTIMEPATH
-# define DFLT_RUNTIMEPATH 
"home:vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,home:vimfiles/after"
+# define DFLT_RUNTIMEPATH "VIM:vimfiles,VIM:,VIM:vimfiles/after"
 #endif
 #ifndef        CLEAN_RUNTIMEPATH
-# define CLEAN_RUNTIMEPATH "$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after"
+# define CLEAN_RUNTIMEPATH "VIM:vimfiles,VIM:,VIM:vimfiles/after"
 #endif
 
 #ifndef        BASENAMELEN
@@ -110,63 +110,63 @@ typedef long off_t;
  * Some of these may have been defined in the makefile.
  */
 #ifndef SYS_VIMRC_FILE
-# define SYS_VIMRC_FILE "$VIM/vimrc"
+# define SYS_VIMRC_FILE "VIM:vimrc"
 #endif
 #ifndef SYS_GVIMRC_FILE
-# define SYS_GVIMRC_FILE "$VIM/gvimrc"
+# define SYS_GVIMRC_FILE "VIM:gvimrc"
 #endif
 #ifndef SYS_MENU_FILE
-# define SYS_MENU_FILE "$VIMRUNTIME/menu.vim"
+# define SYS_MENU_FILE "VIM:menu.vim"
 #endif
 #ifndef DFLT_HELPFILE
-# define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
+# define DFLT_HELPFILE "VIM:doc/help.txt"
 #endif
 #ifndef SYNTAX_FNAME
-# define SYNTAX_FNAME  "$VIMRUNTIME/syntax/%s.vim"
+# define SYNTAX_FNAME  "VIM:syntax/%s.vim"
 #endif
 
 #ifndef USR_EXRC_FILE
-# define USR_EXRC_FILE "s:.exrc"
+# define USR_EXRC_FILE "HOME:.exrc"
 #endif
 #ifndef USR_EXRC_FILE2
-# define USR_EXRC_FILE2        "home:.exrc"
+# define USR_EXRC_FILE2        "VIM:.exrc"
 #endif
 
 #ifndef USR_VIMRC_FILE
-# define USR_VIMRC_FILE        "s:.vimrc"
+# define USR_VIMRC_FILE        "HOME:.vimrc"
 #endif
 #ifndef USR_VIMRC_FILE2
-# define USR_VIMRC_FILE2 "home:.vimrc"
+# define USR_VIMRC_FILE2 "VIM:.vimrc"
 #endif
 #ifndef USR_VIMRC_FILE3
-# define USR_VIMRC_FILE3 "home:vimfiles:vimrc"
+# define USR_VIMRC_FILE3 "HOME:vimfiles/vimrc"
 #endif
 #ifndef USR_VIMRC_FILE4
-# define USR_VIMRC_FILE4 "$VIM/.vimrc"
+# define USR_VIMRC_FILE4 "S:.vimrc"
 #endif
 #ifndef VIM_DEFAULTS_FILE
-# define VIM_DEFAULTS_FILE "$VIMRUNTIME/defaults.vim"
+# define VIM_DEFAULTS_FILE "VIM:defaults.vim"
 #endif
 #ifndef EVIM_FILE
-# define EVIM_FILE     "$VIMRUNTIME/evim.vim"
+# define EVIM_FILE     "VIM:evim.vim"
 #endif
 
 #ifndef USR_GVIMRC_FILE
-# define USR_GVIMRC_FILE "s:.gvimrc"
+# define USR_GVIMRC_FILE "HOME:.gvimrc"
 #endif
 #ifndef USR_GVIMRC_FILE2
-# define USR_GVIMRC_FILE2 "home:.gvimrc"
+# define USR_GVIMRC_FILE2 "VIM:.gvimrc"
 #endif
 #ifndef USR_GVIMRC_FILE3
-# define USR_GVIMRC_FILE3 "home:vimfiles:gvimrc"
+# define USR_GVIMRC_FILE3 "HOME:vimfiles/gvimrc"
 #endif
 #ifndef USR_GVIMRC_FILE4
-# define USR_GVIMRC_FILE4 "$VIM/.gvimrc"
+# define USR_GVIMRC_FILE4 "S:.gvimrc"
 #endif
 
 #ifdef FEAT_VIMINFO
 # ifndef VIMINFO_FILE
-#  define VIMINFO_FILE "s:.viminfo"
+# define VIMINFO_FILE  "VIM:.viminfo"
 # endif
 #endif
 
@@ -183,15 +183,15 @@ typedef long off_t;
 #endif
 
 #ifndef DFLT_BDIR
-# define DFLT_BDIR     ".,t:"          // default for 'backupdir'
+# define DFLT_BDIR     "T:"            // default for 'backupdir'
 #endif
 
 #ifndef DFLT_DIR
-# define DFLT_DIR      ".,t:"          // default for 'directory'
+# define DFLT_DIR      "T:"            // default for 'directory'
 #endif
 
 #ifndef DFLT_VDIR
-# define DFLT_VDIR     "home:vimfiles/view"    // default for 'viewdir'
+# define DFLT_VDIR     "HOME:vimfiles/view"    // default for 'viewdir'
 #endif
 
 #ifndef DFLT_MAXMEM
diff --git a/src/version.c b/src/version.c
index 913077e2a..19e717510 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1861,
 /**/
     1860,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1v9TCn-001Ht6-Qi%40256bit.org.

Raspunde prin e-mail lui