diff options
author | Klaus Kaempf <kkaempf@progis.de> | 1998-07-12 01:53:48 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-07-11 21:53:48 -0400 |
commit | 46c045017763050f3dade95993aa2100554fdae7 (patch) | |
tree | 5a9540fc5605625ace82f6554694026f64f1a905 /gcc/cp/repo.c | |
parent | 2b9dc906d0445906387fa231ee5081bb4f3a7abc (diff) | |
download | gcc-46c045017763050f3dade95993aa2100554fdae7.zip gcc-46c045017763050f3dade95993aa2100554fdae7.tar.gz gcc-46c045017763050f3dade95993aa2100554fdae7.tar.bz2 |
repo.c (get_base_filename): Use file_name_nondirectory ().
* repo.c (get_base_filename): Use file_name_nondirectory ().
(open_repo_file): Ditto.
* cp-tree.h (file_name_nondirectory): Add prototype.
From-SVN: r21069
Diffstat (limited to 'gcc/cp/repo.c')
-rw-r--r-- | gcc/cp/repo.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c index a1ac79c..742250d 100644 --- a/gcc/cp/repo.c +++ b/gcc/cp/repo.c @@ -259,11 +259,7 @@ get_base_filename (filename) return NULL; } - p = rindex (filename, '/'); - if (p) - return p+1; - else - return filename; + return file_name_nondirectory (filename); } static void @@ -276,9 +272,7 @@ open_repo_file (filename) if (s == NULL) return; - p = rindex (s, '/'); - if (! p) - p = s; + p = file_name_nondirectory (s); p = rindex (p, '.'); if (! p) p = s + strlen (s); |