mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.1008
Problem: The OS/2 code pollutes the source while nobody uses it these days. Solution: Drop the support for OS/2.
This commit is contained in:
12
src/fileio.c
12
src/fileio.c
@@ -445,7 +445,7 @@ readfile(fname, sfname, from, lines_to_skip, lines_to_read, eap, flags)
|
||||
return FAIL;
|
||||
}
|
||||
#endif
|
||||
#if defined(MSDOS) || defined(MSWIN) || defined(OS2)
|
||||
#if defined(MSDOS) || defined(MSWIN)
|
||||
/*
|
||||
* MS-Windows allows opening a device, but we will probably get stuck
|
||||
* trying to read it.
|
||||
@@ -526,7 +526,7 @@ readfile(fname, sfname, from, lines_to_skip, lines_to_read, eap, flags)
|
||||
file_readonly = FALSE;
|
||||
if (read_stdin)
|
||||
{
|
||||
#if defined(MSDOS) || defined(MSWIN) || defined(OS2)
|
||||
#if defined(MSDOS) || defined(MSWIN)
|
||||
/* Force binary I/O on stdin to avoid CR-LF -> LF conversion. */
|
||||
setmode(0, O_BINARY);
|
||||
#endif
|
||||
@@ -3553,7 +3553,7 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
|
||||
}
|
||||
if (c == NODE_WRITABLE)
|
||||
{
|
||||
# if defined(MSDOS) || defined(MSWIN) || defined(OS2)
|
||||
# if defined(MSDOS) || defined(MSWIN)
|
||||
/* MS-Windows allows opening a device, but we will probably get stuck
|
||||
* trying to write to it. */
|
||||
if (!p_odev)
|
||||
@@ -6055,7 +6055,7 @@ shorten_fname(full_path, dir_name)
|
||||
if (fnamencmp(dir_name, full_path, len) == 0)
|
||||
{
|
||||
p = full_path + len;
|
||||
#if defined(MSDOS) || defined(MSWIN) || defined(OS2)
|
||||
#if defined(MSDOS) || defined(MSWIN)
|
||||
/*
|
||||
* MSDOS: when a file is in the root directory, dir_name will end in a
|
||||
* slash, since C: by itself does not define a specific dir. In this
|
||||
@@ -6072,7 +6072,7 @@ shorten_fname(full_path, dir_name)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#if defined(MSDOS) || defined(MSWIN) || defined(OS2)
|
||||
#if defined(MSDOS) || defined(MSWIN)
|
||||
/*
|
||||
* When using a file in the current drive, remove the drive name:
|
||||
* "A:\dir\file" -> "\dir\file". This helps when moving a session file on
|
||||
@@ -6330,7 +6330,7 @@ buf_modname(shortname, fname, ext, prepend_dot)
|
||||
else if ((int)STRLEN(e) + extlen > 4)
|
||||
s = e + 4 - extlen;
|
||||
}
|
||||
#if defined(OS2) || defined(USE_LONG_FNAME) || defined(WIN3264)
|
||||
#if defined(USE_LONG_FNAME) || defined(WIN3264)
|
||||
/*
|
||||
* If there is no file name, and the extension starts with '.', put a
|
||||
* '_' before the dot, because just ".ext" may be invalid if it's on a
|
||||
|
Reference in New Issue
Block a user