Commit 2926947a authored by Stefan Monnier's avatar Stefan Monnier

(relative_filename): Treat "///" like "/" in filenames.

parent dfb4dab1
2008-05-29 Tom Tromey <tromey@redhat.com>
* etags.c (relative_filename): Treat "///" like "/" in filenames.
2008-05-09 Eli Zaretskii <eliz@gnu.org>
* ntlib.c: Include sys/types.h, sys/stat.h, and errno.h.
......
......@@ -6790,8 +6790,14 @@ relative_filename (file, dir)
/* Build a sequence of "../" strings for the resulting relative file name. */
i = 0;
while (*dp == '/')
++dp;
while ((dp = etags_strchr (dp + 1, '/')) != NULL)
i += 1;
{
i += 1;
while (*dp == '/')
++dp;
}
res = xnew (3*i + strlen (fp + 1) + 1, char);
res[0] = '\0';
while (i-- > 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment