Mercurial > hg > xemacs-beta
comparison src/fileio.c @ 189:489f57a838ef r20-3b21
Import from CVS: tag r20-3b21
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:57:07 +0200 |
parents | 3d6bfa290dbd |
children | a2f645c6b9f8 |
comparison
equal
deleted
inserted
replaced
188:e29a8e7498d9 | 189:489f57a838ef |
---|---|
971 } | 971 } |
972 } | 972 } |
973 } | 973 } |
974 #endif /* DOS_NT */ | 974 #endif /* DOS_NT */ |
975 | 975 |
976 /* We *don't* want to handle // and /~ that way. */ | |
977 #if 0 | |
976 /* Handle // and /~ in middle of file name | 978 /* Handle // and /~ in middle of file name |
977 by discarding everything through the first / of that sequence. */ | 979 by discarding everything through the first / of that sequence. */ |
978 p = nm; | 980 p = nm; |
979 while (*p) | 981 while (*p) |
980 { | 982 { |
996 if (IS_DIRECTORY_SEP (p[0]) && p[1] == '~') | 998 if (IS_DIRECTORY_SEP (p[0]) && p[1] == '~') |
997 nm = p + 1; | 999 nm = p + 1; |
998 | 1000 |
999 p++; | 1001 p++; |
1000 } | 1002 } |
1003 #endif | |
1001 | 1004 |
1002 /* If nm is absolute, flush ...// and detect /./ and /../. | 1005 /* If nm is absolute, flush ...// and detect /./ and /../. |
1003 If no /./ or /../ we can return right away. */ | 1006 If no /./ or /../ we can return right away. */ |
1004 if ( | 1007 if ( |
1005 IS_DIRECTORY_SEP (nm[0]) | 1008 IS_DIRECTORY_SEP (nm[0]) |