Mercurial > emacs
diff lib-src/etags.c @ 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 | e550e0d13e83 |
children | 7e7941d8cceb |
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, "");