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
9e46226d
Commit
9e46226d
authored
Aug 14, 2003
by
Kaveh R. Ghazi
Committed by
Kaveh Ghazi
Aug 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* protoize.c (substr): Delete, callers changed to `strstr'.
From-SVN: r70430
parent
c5d19037
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
26 deletions
+7
-26
gcc/ChangeLog
+4
-0
gcc/protoize.c
+3
-26
No files found.
gcc/ChangeLog
View file @
9e46226d
2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* protoize.c (substr): Delete, callers changed to `strstr'.
2003-08-13 Zack Weinberg <zack@codesourcery.com>
* config.gcc (iq2000*-*-elf*): Don't set xm_file.
...
...
gcc/protoize.c
View file @
9e46226d
...
...
@@ -79,7 +79,6 @@ extern void fancy_abort (void) ATTRIBUTE_NORETURN;
static
void
notice
(
const
char
*
,
...)
ATTRIBUTE_PRINTF_1
;
static
char
*
savestring
(
const
char
*
,
unsigned
int
);
static
char
*
dupnstr
(
const
char
*
,
size_t
);
static
const
char
*
substr
(
const
char
*
,
const
char
*
const
);
static
int
safe_read
(
int
,
void
*
,
int
);
static
void
safe_write
(
int
,
void
*
,
int
,
const
char
*
);
static
void
save_pointers
(
void
);
...
...
@@ -548,28 +547,6 @@ dupnstr (const char *s, size_t n)
ret_val
[
n
]
=
'\0'
;
return
ret_val
;
}
/* Return a pointer to the first occurrence of s2 within s1 or NULL if s2
does not occur within s1. Assume neither s1 nor s2 are null pointers. */
static
const
char
*
substr
(
const
char
*
s1
,
const
char
*
const
s2
)
{
for
(;
*
s1
;
s1
++
)
{
const
char
*
p1
;
const
char
*
p2
;
int
c
;
for
(
p1
=
s1
,
p2
=
s2
;
(
c
=
*
p2
);
p1
++
,
p2
++
)
if
(
*
p1
!=
c
)
goto
outer
;
return
s1
;
outer
:
;
}
return
0
;
}
/* Read LEN bytes at PTR from descriptor DESC, for file FILENAME,
retrying if necessary. Return the actual number of bytes read. */
...
...
@@ -2516,7 +2493,7 @@ find_extern_def (const def_dec_info *head, const def_dec_info *user)
char
*
p
;
strcpy
(
needed
,
user
->
ansi_decl
);
p
=
(
NONCONST
char
*
)
sub
str
(
needed
,
user
->
hash_entry
->
symbol
)
p
=
str
str
(
needed
,
user
->
hash_entry
->
symbol
)
+
strlen
(
user
->
hash_entry
->
symbol
)
+
2
;
/* Avoid having ??? in the string. */
*
p
++
=
'?'
;
...
...
@@ -2875,7 +2852,7 @@ other_variable_style_function (const char *ansi_header)
/* See if we have a stdarg function, or a function which has stdarg style
parameters or a stdarg style return type. */
return
s
ub
str
(
ansi_header
,
"..."
)
!=
0
;
return
s
tr
str
(
ansi_header
,
"..."
)
!=
0
;
#else
/* !defined (UNPROTOIZE) */
...
...
@@ -2889,7 +2866,7 @@ other_variable_style_function (const char *ansi_header)
{
const
char
*
candidate
;
if
((
candidate
=
s
ub
str
(
p
,
varargs_style_indicator
))
==
0
)
if
((
candidate
=
s
tr
str
(
p
,
varargs_style_indicator
))
==
0
)
return
0
;
else
if
(
!
is_id_char
(
candidate
[
-
1
])
&&
!
is_id_char
(
candidate
[
len
]))
...
...
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