diff options
| author | Stefan Monnier | 2008-05-29 20:18:07 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-05-29 20:18:07 +0000 |
| commit | 2926947a670b0679a34f90841fa7abc3f788474e (patch) | |
| tree | 7107101400efee9a8dec8ab9c503061a3e92aa36 /lib-src | |
| parent | dfb4dab1a22926befbef30fb9f2105f515374e46 (diff) | |
| download | emacs-2926947a670b0679a34f90841fa7abc3f788474e.tar.gz emacs-2926947a670b0679a34f90841fa7abc3f788474e.zip | |
(relative_filename): Treat "///" like "/" in filenames.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 4 | ||||
| -rw-r--r-- | lib-src/etags.c | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 2dd6fb6bfa8..dc0d597e500 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-05-29 Tom Tromey <tromey@redhat.com> | ||
| 2 | |||
| 3 | * etags.c (relative_filename): Treat "///" like "/" in filenames. | ||
| 4 | |||
| 1 | 2008-05-09 Eli Zaretskii <eliz@gnu.org> | 5 | 2008-05-09 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * ntlib.c: Include sys/types.h, sys/stat.h, and errno.h. | 7 | * ntlib.c: Include sys/types.h, sys/stat.h, and errno.h. |
diff --git a/lib-src/etags.c b/lib-src/etags.c index d18ee6c9f92..675e926f203 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -6790,8 +6790,14 @@ relative_filename (file, dir) | |||
| 6790 | 6790 | ||
| 6791 | /* Build a sequence of "../" strings for the resulting relative file name. */ | 6791 | /* Build a sequence of "../" strings for the resulting relative file name. */ |
| 6792 | i = 0; | 6792 | i = 0; |
| 6793 | while (*dp == '/') | ||
| 6794 | ++dp; | ||
| 6793 | while ((dp = etags_strchr (dp + 1, '/')) != NULL) | 6795 | while ((dp = etags_strchr (dp + 1, '/')) != NULL) |
| 6794 | i += 1; | 6796 | { |
| 6797 | i += 1; | ||
| 6798 | while (*dp == '/') | ||
| 6799 | ++dp; | ||
| 6800 | } | ||
| 6795 | res = xnew (3*i + strlen (fp + 1) + 1, char); | 6801 | res = xnew (3*i + strlen (fp + 1) + 1, char); |
| 6796 | res[0] = '\0'; | 6802 | res[0] = '\0'; |
| 6797 | while (i-- > 0) | 6803 | while (i-- > 0) |