Mercurial > hg > xemacs-beta
comparison src/fileio.c @ 988:5df795348f45
[xemacs-hg @ 2002-09-01 22:13:52 by andyp]
apply various 21.4 patches
author | andyp |
---|---|
date | Sun, 01 Sep 2002 22:14:58 +0000 |
parents | 79c6ff3eef26 |
children | 25e260cb7994 |
comparison
equal
deleted
inserted
replaced
987:7ffc86e44409 | 988:5df795348f45 |
---|---|
1346 Bytecount elen = XSTRING_LENGTH (expanded_name); | 1346 Bytecount elen = XSTRING_LENGTH (expanded_name); |
1347 Ibyte *path; | 1347 Ibyte *path; |
1348 Ibyte *p; | 1348 Ibyte *p; |
1349 | 1349 |
1350 LISP_STRING_TO_ALLOCA (expanded_name, path); | 1350 LISP_STRING_TO_ALLOCA (expanded_name, path); |
1351 | |
1352 #if defined(WIN32_FILENAMES) && defined(CYGWIN) | |
1353 /* When using win32 filenames in cygwin we want file-truename to | |
1354 detect that c:/windows == /windows for example. */ | |
1355 if ((IS_DIRECTORY_SEP (path[0]) | |
1356 && (elen == 1 || !IS_DIRECTORY_SEP (path[1]))) | |
1357 || (isalpha (path[0]) | |
1358 && (elen == 1 || !IS_DEVICE_SEP (path[1])))) { | |
1359 int ltwff2 = | |
1360 cygwin_posix_to_win32_path_list_buf_size (path); | |
1361 p = (Ibyte *) alloca (ltwff2); | |
1362 cygwin_posix_to_win32_path_list (path, p); | |
1363 path = p; | |
1364 } | |
1365 #endif | |
1351 p = path; | 1366 p = path; |
1352 | 1367 |
1353 /* Try doing it all at once. */ | 1368 /* Try doing it all at once. */ |
1354 if (!qxe_realpath (path, resolved_path)) | 1369 if (!qxe_realpath (path, resolved_path)) |
1355 { | 1370 { |