diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-02 19:03:59 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-02 19:03:59 +0000 |
commit | 78dbff7cf909ce370d16c2b4c185ec01e419fe4c (patch) | |
tree | 79fd392a778483e0dba0d31c32d9d005dc4fdeeb /gcc/gcov.c | |
parent | a3f30566986f897fcef17b98f722a0227de49492 (diff) | |
download | ppe42-gcc-78dbff7cf909ce370d16c2b4c185ec01e419fe4c.tar.gz ppe42-gcc-78dbff7cf909ce370d16c2b4c185ec01e419fe4c.zip |
* collect2.c (main, write_c_file_stat), gcc.c (translate_options,
process_command, main), gcov.c (open_files, output_data), tlink.c
(frob_extension, scan_linker_output), toplev.c
(file_name_nondirectory): Use strchr () and strrchr () instead of
index () and rindex ().
cp:
* dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c
(build_overload_value), repo.c (open_repo_file), xref.c
(open_xref_file): Use strchr () and strrchr () instead of index ()
and rindex ().
f:
* com.c (open_include_file, ffecom_open_include_): Use strchr ()
and strrchr () instead of index () and rindex ().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37206 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r-- | gcc/gcov.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/gcov.c b/gcc/gcov.c index d10108dd411..a1c57e52441 100644 --- a/gcc/gcov.c +++ b/gcc/gcov.c @@ -376,7 +376,7 @@ open_files () strcat (bbg_file_name, "/"); } - cptr = rindex (input_file_name, '/'); + cptr = strrchr (input_file_name, '/'); if (cptr) { strcat (da_file_name, cptr + 1); @@ -397,19 +397,19 @@ open_files () strcpy (bbg_file_name, input_file_name); } - cptr = rindex (bb_file_name, '.'); + cptr = strrchr (bb_file_name, '.'); if (cptr) strcpy (cptr, ".bb"); else strcat (bb_file_name, ".bb"); - cptr = rindex (da_file_name, '.'); + cptr = strrchr (da_file_name, '.'); if (cptr) strcpy (cptr, ".da"); else strcat (da_file_name, ".da"); - cptr = rindex (bbg_file_name, '.'); + cptr = strrchr (bbg_file_name, '.'); if (cptr) strcpy (cptr, ".bbg"); else @@ -1249,7 +1249,7 @@ output_data () } count = strlen (source_file_name); - cptr = rindex (s_ptr->name, '/'); + cptr = strrchr (s_ptr->name, '/'); if (cptr) cptr = cptr + 1; else @@ -1258,7 +1258,7 @@ output_data () { gcov_file_name = xmalloc (count + 7 + strlen (input_file_name)); - cptr = rindex (input_file_name, '/'); + cptr = strrchr (input_file_name, '/'); if (cptr) strcpy (gcov_file_name, cptr + 1); else @@ -1266,7 +1266,7 @@ output_data () strcat (gcov_file_name, "."); - cptr = rindex (source_file_name, '/'); + cptr = strrchr (source_file_name, '/'); if (cptr) strcat (gcov_file_name, cptr + 1); else @@ -1275,7 +1275,7 @@ output_data () else { gcov_file_name = xmalloc (count + 6); - cptr = rindex (source_file_name, '/'); + cptr = strrchr (source_file_name, '/'); if (cptr) strcpy (gcov_file_name, cptr + 1); else |