Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2926947a
Commit
2926947a
authored
May 29, 2008
by
Stefan Monnier
Browse files
(relative_filename): Treat "///" like "/" in filenames.
parent
dfb4dab1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
lib-src/ChangeLog
lib-src/ChangeLog
+4
-0
lib-src/etags.c
lib-src/etags.c
+7
-1
No files found.
lib-src/ChangeLog
View file @
2926947a
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.
...
...
lib-src/etags.c
View file @
2926947a
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment