Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
45ad788b
Commit
45ad788b
authored
Jun 29, 1992
by
Charles Hannum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
entered into RCS
From-SVN: r1340
parent
878fb2ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gcc/protoize.c
+5
-5
No files found.
gcc/protoize.c
View file @
45ad788b
...
...
@@ -172,7 +172,7 @@ extern size_t strlen ()
#endif
extern
int
strncmp
();
extern
char
*
strncpy
();
extern
char
*
strrchr
();
extern
char
*
rindex
();
/* Fork is not declared because the declaration caused a conflict
on the HPPA. */
...
...
@@ -802,7 +802,7 @@ file_could_be_converted (const char *path)
char *dir_last_slash;
strcpy (dir_name, path);
dir_last_slash =
strrchr
(dir_name, '/');
dir_last_slash =
rindex
(dir_name, '/');
if (dir_last_slash)
*dir_last_slash = '\0';
else
...
...
@@ -836,7 +836,7 @@ file_normally_convertible (const char *path)
char *dir_last_slash;
strcpy (dir_name, path);
dir_last_slash =
strrchr
(dir_name, '/');
dir_last_slash =
rindex
(dir_name, '/');
if (dir_last_slash)
*dir_last_slash = '\0';
else
...
...
@@ -2272,7 +2272,7 @@ start_over: ;
char
*
dir_end
;
aux_info_relocated_name
=
xmalloc
(
base_len
+
(
p
-
invocation_filename
));
strcpy
(
aux_info_relocated_name
,
base_source_filename
);
dir_end
=
strrchr
(
aux_info_relocated_name
,
'/'
);
dir_end
=
rindex
(
aux_info_relocated_name
,
'/'
);
if
(
dir_end
)
dir_end
++
;
else
...
...
@@ -4463,7 +4463,7 @@ main (argc, argv)
int
c
;
const
char
*
params
=
""
;
pname
=
strrchr
(
argv
[
0
],
'/'
);
pname
=
rindex
(
argv
[
0
],
'/'
);
pname
=
pname
?
pname
+
1
:
argv
[
0
];
cwd_buffer
=
getpwd
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment