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
This commit is contained in:
parent
2b9dc906d0
commit
46c0450177
3 changed files with 9 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
|||
1998-07-12 Klaus Kaempf (kkaempf@progis.de)
|
||||
|
||||
* repo.c (get_base_filename): Use file_name_nondirectory ().
|
||||
(open_repo_file): Ditto.
|
||||
* cp-tree.h (file_name_nondirectory): Add prototype.
|
||||
|
||||
1998-07-12 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* friend.c (do_friend): Pull the identifier out of declarator.
|
||||
|
|
|
@ -2574,6 +2574,7 @@ extern tree build_vec_delete PROTO((tree, tree, tree, tree, int));
|
|||
/* in input.c */
|
||||
|
||||
/* in lex.c */
|
||||
extern char *file_name_nondirectory PROTO((char *));
|
||||
extern tree make_pointer_declarator PROTO((tree, tree));
|
||||
extern tree make_reference_declarator PROTO((tree, tree));
|
||||
extern tree make_call_declarator PROTO((tree, tree, tree, tree));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue