Mercurial > emacs
comparison src/fileio.c @ 15124:b2c682fcd3ef
(Fexpand_file_name) [DOS_NT]: Correct the `if' clause
to compile on all platforms.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 01 May 1996 23:24:44 +0000 |
parents | b801c02f3e92 |
children | 0fad77a676b7 |
comparison
equal
deleted
inserted
replaced
15123:d6106d651a71 | 15124:b2c682fcd3ef |
---|---|
1162 #endif /* DOS_NT */ | 1162 #endif /* DOS_NT */ |
1163 | 1163 |
1164 /* Finally, if no prefix has been specified and nm is not absolute, | 1164 /* Finally, if no prefix has been specified and nm is not absolute, |
1165 then it must be expanded relative to default_directory. */ | 1165 then it must be expanded relative to default_directory. */ |
1166 | 1166 |
1167 if ( | 1167 if (1 |
1168 #ifndef DOS_NT | 1168 #ifndef DOS_NT |
1169 /* /... alone is not absolute on DOS and Windows. */ | 1169 /* /... alone is not absolute on DOS and Windows. */ |
1170 !IS_DIRECTORY_SEP (nm[0]) | 1170 && !IS_DIRECTORY_SEP (nm[0]) |
1171 #endif | 1171 #endif |
1172 #ifdef WINDOWSNT | 1172 #ifdef WINDOWSNT |
1173 !(IS_DIRECTORY_SEP (nm[0]) && IS_DIRECTORY_SEP (nm[1])) | 1173 && !(IS_DIRECTORY_SEP (nm[0]) && IS_DIRECTORY_SEP (nm[1])) |
1174 #endif | 1174 #endif |
1175 #ifdef VMS | 1175 #ifdef VMS |
1176 && !index (nm, ':') | 1176 && !index (nm, ':') |
1177 #endif | 1177 #endif |
1178 && !newdir) | 1178 && !newdir) |