comparison src/memline.c @ 7408:1886f2863437 v7.4.1008

commit https://github.com/vim/vim/commit/e7fedb6ebe72d9a475aa65109b77d5ed4667067a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 31 19:07:19 2015 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Thu, 31 Dec 2015 19:15:05 +0100
parents c0a23e04c929
children 08e62c4fc17d
comparison
equal deleted inserted replaced
7407:829dfc144dd4 7408:1886f2863437
4209 #ifndef SHORT_FNAME 4209 #ifndef SHORT_FNAME
4210 int r; 4210 int r;
4211 #endif 4211 #endif
4212 char_u *buf_fname = buf->b_fname; 4212 char_u *buf_fname = buf->b_fname;
4213 4213
4214 #if !defined(SHORT_FNAME) \ 4214 #if !defined(SHORT_FNAME) && (!defined(UNIX) || defined(ARCHIE))
4215 && ((!defined(UNIX) && !defined(OS2)) || defined(ARCHIE))
4216 # define CREATE_DUMMY_FILE 4215 # define CREATE_DUMMY_FILE
4217 FILE *dummyfd = NULL; 4216 FILE *dummyfd = NULL;
4218 4217
4219 # ifdef WIN3264 4218 # ifdef WIN3264
4220 if (buf_fname != NULL && !mch_isFullName(buf_fname) 4219 if (buf_fname != NULL && !mch_isFullName(buf_fname)
4270 { 4269 {
4271 vim_free(fname); 4270 vim_free(fname);
4272 fname = NULL; 4271 fname = NULL;
4273 break; 4272 break;
4274 } 4273 }
4275 #if (defined(UNIX) || defined(OS2)) && !defined(ARCHIE) && !defined(SHORT_FNAME) 4274 #if defined(UNIX) && !defined(ARCHIE) && !defined(SHORT_FNAME)
4276 /* 4275 /*
4277 * Some systems have a MS-DOS compatible filesystem that use 8.3 character 4276 * Some systems have a MS-DOS compatible filesystem that use 8.3 character
4278 * file names. If this is the first try and the swap file name does not fit in 4277 * file names. If this is the first try and the swap file name does not fit in
4279 * 8.3, detect if this is the case, set shortname and try again. 4278 * 8.3, detect if this is the case, set shortname and try again.
4280 */ 4279 */
4321 f1 = mch_open((char *)fname, O_RDONLY | O_EXTRA, 0); 4320 f1 = mch_open((char *)fname, O_RDONLY | O_EXTRA, 0);
4322 if (f1 < 0) 4321 if (f1 < 0)
4323 { 4322 {
4324 f1 = mch_open_rw((char *)fname, 4323 f1 = mch_open_rw((char *)fname,
4325 O_RDWR|O_CREAT|O_EXCL|O_EXTRA); 4324 O_RDWR|O_CREAT|O_EXCL|O_EXTRA);
4326 #if defined(OS2)
4327 if (f1 < 0 && errno == ENOENT)
4328 same = TRUE;
4329 #endif
4330 created1 = TRUE; 4325 created1 = TRUE;
4331 } 4326 }
4332 if (f1 >= 0) 4327 if (f1 >= 0)
4333 { 4328 {
4334 f2 = mch_open((char *)fname2, O_RDONLY | O_EXTRA, 0); 4329 f2 = mch_open((char *)fname2, O_RDONLY | O_EXTRA, 0);