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
f83d4617
Commit
f83d4617
authored
May 22, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mystrstr): Replacement for strstr.
From-SVN: r9773
parent
2a6d5ce0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
gcc/cplus-dem.c
+4
-7
No files found.
gcc/cplus-dem.c
View file @
f83d4617
...
@@ -35,11 +35,9 @@ Cambridge, MA 02139, USA. */
...
@@ -35,11 +35,9 @@ Cambridge, MA 02139, USA. */
extern
char
*
xmalloc
PARAMS
((
unsigned
));
extern
char
*
xmalloc
PARAMS
((
unsigned
));
extern
char
*
xrealloc
PARAMS
((
char
*
,
unsigned
));
extern
char
*
xrealloc
PARAMS
((
char
*
,
unsigned
));
extern
char
*
strstr
();
#ifndef POSIX
char
*
char
*
strstr
(
s1
,
s2
)
my
strstr
(
s1
,
s2
)
char
*
s1
,
*
s2
;
char
*
s1
,
*
s2
;
{
{
register
char
*
p
=
s1
;
register
char
*
p
=
s1
;
...
@@ -59,7 +57,6 @@ strstr (s1, s2)
...
@@ -59,7 +57,6 @@ strstr (s1, s2)
}
}
return
(
0
);
return
(
0
);
}
}
#endif
/* In order to allow a single demangler executable to demangle strings
/* In order to allow a single demangler executable to demangle strings
using various common values of CPLUS_MARKER, as well as any specific
using various common values of CPLUS_MARKER, as well as any specific
...
@@ -1102,7 +1099,7 @@ arm_pt (work, mangled, n, anchor, args)
...
@@ -1102,7 +1099,7 @@ arm_pt (work, mangled, n, anchor, args)
const
char
**
anchor
,
**
args
;
const
char
**
anchor
,
**
args
;
{
{
/* ARM template? */
/* ARM template? */
if
(
ARM_DEMANGLING
&&
(
*
anchor
=
strstr
(
mangled
,
"__pt__"
)))
if
(
ARM_DEMANGLING
&&
(
*
anchor
=
mystrstr
(
mangled
,
"__pt__"
)))
{
{
int
len
;
int
len
;
*
args
=
*
anchor
+
6
;
*
args
=
*
anchor
+
6
;
...
@@ -1318,7 +1315,7 @@ demangle_prefix (work, mangled, declp)
...
@@ -1318,7 +1315,7 @@ demangle_prefix (work, mangled, declp)
/* This block of code is a reduction in strength time optimization
/* This block of code is a reduction in strength time optimization
of:
of:
scan = strstr (*mangled, "__"); */
scan =
my
strstr (*mangled, "__"); */
{
{
scan
=
*
mangled
;
scan
=
*
mangled
;
...
@@ -1388,7 +1385,7 @@ demangle_prefix (work, mangled, declp)
...
@@ -1388,7 +1385,7 @@ demangle_prefix (work, mangled, declp)
{
{
scan
++
;
scan
++
;
}
}
if
((
scan
=
strstr
(
scan
,
"__"
))
==
NULL
||
(
*
(
scan
+
2
)
==
'\0'
))
if
((
scan
=
my
strstr
(
scan
,
"__"
))
==
NULL
||
(
*
(
scan
+
2
)
==
'\0'
))
{
{
/* No separator (I.E. "__not_mangled"), or empty signature
/* No separator (I.E. "__not_mangled"), or empty signature
(I.E. "__not_mangled_either__") */
(I.E. "__not_mangled_either__") */
...
...
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