diff options
author | Brendan Kehoe <brendan@lisa.cygnus.com> | 1997-11-01 19:50:18 +0000 |
---|---|---|
committer | Brendan Kehoe <brendan@gcc.gnu.org> | 1997-11-01 14:50:18 -0500 |
commit | b2bb2710f3e0eebda82bd3153d9fa1a32a950e7a (patch) | |
tree | 552c84754cf24106f6d18cba13ee2e7c7c0fa3c7 /gcc/cp/repo.c | |
parent | 5a0fa1de62991de26dd6819a0e67341cf23826c0 (diff) | |
download | gcc-b2bb2710f3e0eebda82bd3153d9fa1a32a950e7a.zip gcc-b2bb2710f3e0eebda82bd3153d9fa1a32a950e7a.tar.gz gcc-b2bb2710f3e0eebda82bd3153d9fa1a32a950e7a.tar.bz2 |
lex.c (FILE_NAME_NONDIRECTORY): Delete macro.
* lex.c (FILE_NAME_NONDIRECTORY): Delete macro.
(file_name_nondirectory): New function, doing the same as the macro.
(set_typedecl_interface_info): Use it instead of the macro.
(check_newline): Likewise.
(handle_cp_pragma): Likewise.
* repo.c (get_base_filename): Cast result of rindex to char*.
(open_repo_file): Likewise.
* xref.c (open_xref_file): Likewise.
* error.c (dump_char): Make its arg int, not char.
bring over the changes that went in yesterday to fix irix6 native cc
build problems
From-SVN: r16261
Diffstat (limited to 'gcc/cp/repo.c')
-rw-r--r-- | gcc/cp/repo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c index 001a943..e029f90 100644 --- a/gcc/cp/repo.c +++ b/gcc/cp/repo.c @@ -277,7 +277,7 @@ get_base_filename (filename) return NULL; } - p = rindex (filename, '/'); + p = (char *) rindex (filename, '/'); if (p) return p+1; else @@ -294,10 +294,10 @@ open_repo_file (filename) if (s == NULL) return; - p = rindex (s, '/'); + p = (char *) rindex (s, '/'); if (! p) p = s; - p = rindex (p, '.'); + p = (char *) rindex (p, '.'); if (! p) p = s + strlen (s); |