Mercurial > hg > xemacs-beta
comparison src/realpath.c @ 380:8626e4521993 r21-2-5
Import from CVS: tag r21-2-5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:07:10 +0200 |
parents | e11d67e05968 |
children | 74fd4e045ea6 |
comparison
equal
deleted
inserted
replaced
379:76b7d63099ad | 380:8626e4521993 |
---|---|
85 max_path = copy_path + PATH_MAX - 2; | 85 max_path = copy_path + PATH_MAX - 2; |
86 #ifdef WINDOWSNT | 86 #ifdef WINDOWSNT |
87 /* | 87 /* |
88 ** In NT we have two different cases: (1) the path name begins | 88 ** In NT we have two different cases: (1) the path name begins |
89 ** with a drive letter, e.g., "C:"; and (2) the path name begins | 89 ** with a drive letter, e.g., "C:"; and (2) the path name begins |
90 ** with just a slash, which roots to the current drive. In the | 90 ** with just a slash, which roots to the current drive. In the |
91 ** first case we are going to leave things alone, in the second | 91 ** first case we are going to leave things alone, in the second |
92 ** case we will prepend the drive letter to the given path. | 92 ** case we will prepend the drive letter to the given path. |
93 ** Note: So far in testing, I'm only seeing case #1, even though | 93 ** Note: So far in testing, I'm only seeing case #1, even though |
94 ** I've tried to get the other cases to happen. | 94 ** I've tried to get the other cases to happen. |
95 ** August Hill, 31 Aug 1997. | 95 ** August Hill, 31 Aug 1997. |
96 ** | 96 ** |
97 ** Check for a driver letter...C:/... | 97 ** Check for a driver letter...C:/... |
98 */ | 98 */ |
99 if (*(path + 1) == ':') | 99 if (*(path + 1) == ':') |