# HG changeset patch # User Richard M. Stallman # Date 803230258 0 # Node ID 4fa8c6b3f192d8d1bf6c80d39f68a8859bf44fb5 # Parent f92938c6b7c9fc1d078c557c9c925b58e5b7d9e7 (process_file,absolute_filename): Handle filenames starting with a drive letter. diff -r f92938c6b7c9 -r 4fa8c6b3f192 lib-src/etags.c --- 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, "");