Mercurial > emacs
changeset 12242:4fa8c6b3f192
(process_file,absolute_filename): Handle filenames
starting with a drive letter.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 15 Jun 1995 15:30:58 +0000 |
parents | f92938c6b7c9 |
children | ef2749cf206f |
files | lib-src/etags.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/etags.c Thu Jun 15 15:30:15 1995 +0000 +++ b/lib-src/etags.c Thu Jun 15 15:30:58 1995 +0000 @@ -1033,7 +1033,11 @@ { char *filename; +#ifdef DOS_NT + if (file[0] == '/' || (isalpha (file[0]) && file[1] == ':')) +#else if (file[0] == '/') +#endif { /* file is an absolute filename. Canonicalise it. */ filename = absolute_filename (file, cwd); @@ -3747,7 +3751,11 @@ { char *slashp, *cp, *res; +#ifdef DOS_NT + if (file[0] == '/' || (isalpha (file[0]) && file[1] == ':')) +#else if (file[0] == '/') +#endif res = concat (file, "", ""); else res = concat (cwd, file, "");