forked from aniani/vim
patch 7.4.1009
Problem: There are still #ifdefs for ARCHIE. Solution: Remove references to ARCHIE, the code was removed in Vim 5.
This commit is contained in:
@@ -1570,7 +1570,7 @@ make_filter_cmd(cmd, itmp, otmp)
|
|||||||
char_u *buf;
|
char_u *buf;
|
||||||
long_u len;
|
long_u len;
|
||||||
|
|
||||||
#if defined(UNIX) && !defined(ARCHIE)
|
#if defined(UNIX)
|
||||||
int is_fish_shell;
|
int is_fish_shell;
|
||||||
char_u *shell_name = get_isolated_shell_name();
|
char_u *shell_name = get_isolated_shell_name();
|
||||||
|
|
||||||
@@ -1590,7 +1590,7 @@ make_filter_cmd(cmd, itmp, otmp)
|
|||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
#if defined(UNIX) && !defined(ARCHIE)
|
#if defined(UNIX)
|
||||||
/*
|
/*
|
||||||
* Put braces around the command (for concatenated commands) when
|
* Put braces around the command (for concatenated commands) when
|
||||||
* redirecting input and/or output.
|
* redirecting input and/or output.
|
||||||
|
|||||||
@@ -7835,7 +7835,7 @@ alist_new()
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (!defined(UNIX) && !defined(__EMX__)) || defined(ARCHIE) || defined(PROTO)
|
#if (!defined(UNIX) && !defined(__EMX__)) || defined(PROTO)
|
||||||
/*
|
/*
|
||||||
* Expand the file names in the global argument list.
|
* Expand the file names in the global argument list.
|
||||||
* If "fnum_list" is not NULL, use "fnum_list[fnum_len]" as a list of buffer
|
* If "fnum_list" is not NULL, use "fnum_list[fnum_len]" as a list of buffer
|
||||||
|
|||||||
@@ -3510,7 +3510,7 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
|
|||||||
/*
|
/*
|
||||||
* Get information about original file (if there is one).
|
* Get information about original file (if there is one).
|
||||||
*/
|
*/
|
||||||
#if defined(UNIX) && !defined(ARCHIE)
|
#if defined(UNIX)
|
||||||
st_old.st_dev = 0;
|
st_old.st_dev = 0;
|
||||||
st_old.st_ino = 0;
|
st_old.st_ino = 0;
|
||||||
perm = -1;
|
perm = -1;
|
||||||
@@ -4126,7 +4126,7 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(UNIX) && !defined(ARCHIE)
|
#if defined(UNIX)
|
||||||
/* When using ":w!" and the file was read-only: make it writable */
|
/* When using ":w!" and the file was read-only: make it writable */
|
||||||
if (forceit && perm >= 0 && !(perm & 0200) && st_old.st_uid == getuid()
|
if (forceit && perm >= 0 && !(perm & 0200) && st_old.st_uid == getuid()
|
||||||
&& vim_strchr(p_cpo, CPO_FWRITE) == NULL)
|
&& vim_strchr(p_cpo, CPO_FWRITE) == NULL)
|
||||||
|
|||||||
12
src/main.c
12
src/main.c
@@ -74,7 +74,8 @@ typedef struct
|
|||||||
char_u *serverStrEnc; /* encoding of serverStr */
|
char_u *serverStrEnc; /* encoding of serverStr */
|
||||||
char_u *servername; /* allocated name for our server */
|
char_u *servername; /* allocated name for our server */
|
||||||
#endif
|
#endif
|
||||||
#if (!defined(UNIX) && !defined(__EMX__)) || defined(ARCHIE)
|
#if !defined(UNIX) && !defined(__EMX__)
|
||||||
|
# define EXPAND_FILENAMES
|
||||||
int literal; /* don't expand file names */
|
int literal; /* don't expand file names */
|
||||||
#endif
|
#endif
|
||||||
#ifdef MSWIN
|
#ifdef MSWIN
|
||||||
@@ -401,7 +402,7 @@ main
|
|||||||
|
|
||||||
if (GARGCOUNT > 0)
|
if (GARGCOUNT > 0)
|
||||||
{
|
{
|
||||||
#if (!defined(UNIX) && !defined(__EMX__)) || defined(ARCHIE)
|
#ifdef EXPAND_FILENAMES
|
||||||
/*
|
/*
|
||||||
* Expand wildcards in file names.
|
* Expand wildcards in file names.
|
||||||
*/
|
*/
|
||||||
@@ -987,6 +988,7 @@ vim_main2(int argc UNUSED, char **argv UNUSED)
|
|||||||
* main loop. */
|
* main loop. */
|
||||||
{
|
{
|
||||||
int default_regname = 0;
|
int default_regname = 0;
|
||||||
|
|
||||||
adjust_clip_reg(&default_regname);
|
adjust_clip_reg(&default_regname);
|
||||||
set_reg_var(default_regname);
|
set_reg_var(default_regname);
|
||||||
}
|
}
|
||||||
@@ -1879,7 +1881,7 @@ command_line_scan(parmp)
|
|||||||
}
|
}
|
||||||
else if (STRNICMP(argv[0] + argv_idx, "literal", 7) == 0)
|
else if (STRNICMP(argv[0] + argv_idx, "literal", 7) == 0)
|
||||||
{
|
{
|
||||||
#if (!defined(UNIX) && !defined(__EMX__)) || defined(ARCHIE)
|
#ifdef EXPAND_FILENAMES
|
||||||
parmp->literal = TRUE;
|
parmp->literal = TRUE;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -2456,7 +2458,7 @@ scripterror:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
alist_add(&global_alist, p,
|
alist_add(&global_alist, p,
|
||||||
#if (!defined(UNIX) && !defined(__EMX__)) || defined(ARCHIE)
|
#ifdef EXPAND_FILENAMES
|
||||||
parmp->literal ? 2 : 0 /* add buffer nr after exp. */
|
parmp->literal ? 2 : 0 /* add buffer nr after exp. */
|
||||||
#else
|
#else
|
||||||
2 /* add buffer number now and use curbuf */
|
2 /* add buffer number now and use curbuf */
|
||||||
@@ -3268,7 +3270,7 @@ usage()
|
|||||||
|
|
||||||
mch_msg(_("\n\nArguments:\n"));
|
mch_msg(_("\n\nArguments:\n"));
|
||||||
main_msg(_("--\t\t\tOnly file names after this"));
|
main_msg(_("--\t\t\tOnly file names after this"));
|
||||||
#if (!defined(UNIX) && !defined(__EMX__)) || defined(ARCHIE)
|
#ifdef EXPAND_FILENAMES
|
||||||
main_msg(_("--literal\t\tDon't expand wildcards"));
|
main_msg(_("--literal\t\tDon't expand wildcards"));
|
||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_OLE
|
#ifdef FEAT_OLE
|
||||||
|
|||||||
@@ -4211,7 +4211,7 @@ findswapname(buf, dirp, old_fname)
|
|||||||
#endif
|
#endif
|
||||||
char_u *buf_fname = buf->b_fname;
|
char_u *buf_fname = buf->b_fname;
|
||||||
|
|
||||||
#if !defined(SHORT_FNAME) && (!defined(UNIX) || defined(ARCHIE))
|
#if !defined(SHORT_FNAME) && !defined(UNIX)
|
||||||
# define CREATE_DUMMY_FILE
|
# define CREATE_DUMMY_FILE
|
||||||
FILE *dummyfd = NULL;
|
FILE *dummyfd = NULL;
|
||||||
|
|
||||||
@@ -4271,7 +4271,7 @@ findswapname(buf, dirp, old_fname)
|
|||||||
fname = NULL;
|
fname = NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#if defined(UNIX) && !defined(ARCHIE) && !defined(SHORT_FNAME)
|
#if defined(UNIX) && !defined(SHORT_FNAME)
|
||||||
/*
|
/*
|
||||||
* Some systems have a MS-DOS compatible filesystem that use 8.3 character
|
* Some systems have a MS-DOS compatible filesystem that use 8.3 character
|
||||||
* file names. If this is the first try and the swap file name does not fit in
|
* file names. If this is the first try and the swap file name does not fit in
|
||||||
|
|||||||
@@ -2296,15 +2296,11 @@ static struct vimoption
|
|||||||
# else
|
# else
|
||||||
# if defined(WIN3264)
|
# if defined(WIN3264)
|
||||||
(char_u *)"", /* set in set_init_1() */
|
(char_u *)"", /* set in set_init_1() */
|
||||||
# else
|
|
||||||
# if defined(ARCHIE)
|
|
||||||
(char_u *)"gos",
|
|
||||||
# else
|
# else
|
||||||
(char_u *)"sh",
|
(char_u *)"sh",
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# endif
|
|
||||||
#endif /* VMS */
|
#endif /* VMS */
|
||||||
(char_u *)0L} SCRIPTID_INIT},
|
(char_u *)0L} SCRIPTID_INIT},
|
||||||
{"shellcmdflag","shcf", P_STRING|P_VI_DEF|P_SECURE,
|
{"shellcmdflag","shcf", P_STRING|P_VI_DEF|P_SECURE,
|
||||||
@@ -2321,11 +2317,7 @@ static struct vimoption
|
|||||||
(char_u *)&p_sp, PV_NONE,
|
(char_u *)&p_sp, PV_NONE,
|
||||||
{
|
{
|
||||||
#if defined(UNIX)
|
#if defined(UNIX)
|
||||||
# ifdef ARCHIE
|
|
||||||
(char_u *)"2>",
|
|
||||||
# else
|
|
||||||
(char_u *)"| tee",
|
(char_u *)"| tee",
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
(char_u *)">",
|
(char_u *)">",
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1532,9 +1532,6 @@ static char *(key_names[]) =
|
|||||||
"Co",
|
"Co",
|
||||||
#endif
|
#endif
|
||||||
"ku", "kd", "kr", "kl",
|
"ku", "kd", "kr", "kl",
|
||||||
# ifdef ARCHIE
|
|
||||||
"su", "sd", /* Termcap code made up! */
|
|
||||||
# endif
|
|
||||||
"#2", "#4", "%i", "*7",
|
"#2", "#4", "%i", "*7",
|
||||||
"k1", "k2", "k3", "k4", "k5", "k6",
|
"k1", "k2", "k3", "k4", "k5", "k6",
|
||||||
"k7", "k8", "k9", "k;", "F1", "F2",
|
"k7", "k8", "k9", "k;", "F1", "F2",
|
||||||
|
|||||||
@@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
1009,
|
||||||
/**/
|
/**/
|
||||||
1008,
|
1008,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user