0
0
mirror of https://github.com/vim/vim.git synced 2025-10-21 08:24:06 -04:00

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 <rolfkopman@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Ola Söder
2025-10-16 18:48:21 +00:00
committed by Christian Brabandt
parent 761a484e12
commit 1c9135a362
2 changed files with 25 additions and 23 deletions

View File

@@ -41,10 +41,10 @@
#endif #endif
#ifndef DFLT_RUNTIMEPATH #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 #endif
#ifndef CLEAN_RUNTIMEPATH #ifndef CLEAN_RUNTIMEPATH
# define CLEAN_RUNTIMEPATH "$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after" # define CLEAN_RUNTIMEPATH "VIM:vimfiles,VIM:,VIM:vimfiles/after"
#endif #endif
#ifndef BASENAMELEN #ifndef BASENAMELEN
@@ -110,63 +110,63 @@ typedef long off_t;
* Some of these may have been defined in the makefile. * Some of these may have been defined in the makefile.
*/ */
#ifndef SYS_VIMRC_FILE #ifndef SYS_VIMRC_FILE
# define SYS_VIMRC_FILE "$VIM/vimrc" # define SYS_VIMRC_FILE "VIM:vimrc"
#endif #endif
#ifndef SYS_GVIMRC_FILE #ifndef SYS_GVIMRC_FILE
# define SYS_GVIMRC_FILE "$VIM/gvimrc" # define SYS_GVIMRC_FILE "VIM:gvimrc"
#endif #endif
#ifndef SYS_MENU_FILE #ifndef SYS_MENU_FILE
# define SYS_MENU_FILE "$VIMRUNTIME/menu.vim" # define SYS_MENU_FILE "VIM:menu.vim"
#endif #endif
#ifndef DFLT_HELPFILE #ifndef DFLT_HELPFILE
# define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt" # define DFLT_HELPFILE "VIM:doc/help.txt"
#endif #endif
#ifndef SYNTAX_FNAME #ifndef SYNTAX_FNAME
# define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim" # define SYNTAX_FNAME "VIM:syntax/%s.vim"
#endif #endif
#ifndef USR_EXRC_FILE #ifndef USR_EXRC_FILE
# define USR_EXRC_FILE "s:.exrc" # define USR_EXRC_FILE "HOME:.exrc"
#endif #endif
#ifndef USR_EXRC_FILE2 #ifndef USR_EXRC_FILE2
# define USR_EXRC_FILE2 "home:.exrc" # define USR_EXRC_FILE2 "VIM:.exrc"
#endif #endif
#ifndef USR_VIMRC_FILE #ifndef USR_VIMRC_FILE
# define USR_VIMRC_FILE "s:.vimrc" # define USR_VIMRC_FILE "HOME:.vimrc"
#endif #endif
#ifndef USR_VIMRC_FILE2 #ifndef USR_VIMRC_FILE2
# define USR_VIMRC_FILE2 "home:.vimrc" # define USR_VIMRC_FILE2 "VIM:.vimrc"
#endif #endif
#ifndef USR_VIMRC_FILE3 #ifndef USR_VIMRC_FILE3
# define USR_VIMRC_FILE3 "home:vimfiles:vimrc" # define USR_VIMRC_FILE3 "HOME:vimfiles/vimrc"
#endif #endif
#ifndef USR_VIMRC_FILE4 #ifndef USR_VIMRC_FILE4
# define USR_VIMRC_FILE4 "$VIM/.vimrc" # define USR_VIMRC_FILE4 "S:.vimrc"
#endif #endif
#ifndef VIM_DEFAULTS_FILE #ifndef VIM_DEFAULTS_FILE
# define VIM_DEFAULTS_FILE "$VIMRUNTIME/defaults.vim" # define VIM_DEFAULTS_FILE "VIM:defaults.vim"
#endif #endif
#ifndef EVIM_FILE #ifndef EVIM_FILE
# define EVIM_FILE "$VIMRUNTIME/evim.vim" # define EVIM_FILE "VIM:evim.vim"
#endif #endif
#ifndef USR_GVIMRC_FILE #ifndef USR_GVIMRC_FILE
# define USR_GVIMRC_FILE "s:.gvimrc" # define USR_GVIMRC_FILE "HOME:.gvimrc"
#endif #endif
#ifndef USR_GVIMRC_FILE2 #ifndef USR_GVIMRC_FILE2
# define USR_GVIMRC_FILE2 "home:.gvimrc" # define USR_GVIMRC_FILE2 "VIM:.gvimrc"
#endif #endif
#ifndef USR_GVIMRC_FILE3 #ifndef USR_GVIMRC_FILE3
# define USR_GVIMRC_FILE3 "home:vimfiles:gvimrc" # define USR_GVIMRC_FILE3 "HOME:vimfiles/gvimrc"
#endif #endif
#ifndef USR_GVIMRC_FILE4 #ifndef USR_GVIMRC_FILE4
# define USR_GVIMRC_FILE4 "$VIM/.gvimrc" # define USR_GVIMRC_FILE4 "S:.gvimrc"
#endif #endif
#ifdef FEAT_VIMINFO #ifdef FEAT_VIMINFO
# ifndef VIMINFO_FILE # ifndef VIMINFO_FILE
# define VIMINFO_FILE "s:.viminfo" # define VIMINFO_FILE "VIM:.viminfo"
# endif # endif
#endif #endif
@@ -183,15 +183,15 @@ typedef long off_t;
#endif #endif
#ifndef DFLT_BDIR #ifndef DFLT_BDIR
# define DFLT_BDIR ".,t:" // default for 'backupdir' # define DFLT_BDIR "T:" // default for 'backupdir'
#endif #endif
#ifndef DFLT_DIR #ifndef DFLT_DIR
# define DFLT_DIR ".,t:" // default for 'directory' # define DFLT_DIR "T:" // default for 'directory'
#endif #endif
#ifndef DFLT_VDIR #ifndef DFLT_VDIR
# define DFLT_VDIR "home:vimfiles/view" // default for 'viewdir' # define DFLT_VDIR "HOME:vimfiles/view" // default for 'viewdir'
#endif #endif
#ifndef DFLT_MAXMEM #ifndef DFLT_MAXMEM

View File

@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1861,
/**/ /**/
1860, 1860,
/**/ /**/