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
9663100e
Commit
9663100e
authored
Mar 14, 1997
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add prototypes, remove unsed cplus_match, make mystrstr static
From-SVN: r13702
parent
38c37a0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
19 deletions
+16
-19
gcc/cplus-dem.c
+16
-19
No files found.
gcc/cplus-dem.c
View file @
9663100e
/* Demangler for GNU C++
/* Demangler for GNU C++
Copyright 1989, 1991, 1994, 1995, 1996 Free Software Foundation, Inc.
Copyright 1989, 1991, 1994, 1995, 1996
, 1997
Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.uucp)
Written by James Clark (jjc@jclark.uucp)
Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling
Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling
...
@@ -39,11 +39,13 @@ Boston, MA 02111-1307, USA. */
...
@@ -39,11 +39,13 @@ Boston, MA 02111-1307, USA. */
extern
char
*
xmalloc
PARAMS
((
unsigned
));
extern
char
*
xmalloc
PARAMS
((
unsigned
));
extern
char
*
xrealloc
PARAMS
((
char
*
,
unsigned
));
extern
char
*
xrealloc
PARAMS
((
char
*
,
unsigned
));
char
*
static
const
char
*
mystrstr
PARAMS
((
const
char
*
,
const
char
*
));
static
const
char
*
mystrstr
(
s1
,
s2
)
mystrstr
(
s1
,
s2
)
char
*
s1
,
*
s2
;
c
onst
c
har
*
s1
,
*
s2
;
{
{
register
char
*
p
=
s1
;
register
c
onst
c
har
*
p
=
s1
;
register
int
len
=
strlen
(
s2
);
register
int
len
=
strlen
(
s2
);
for
(;
(
p
=
strchr
(
p
,
*
s2
))
!=
0
;
p
++
)
for
(;
(
p
=
strchr
(
p
,
*
s2
))
!=
0
;
p
++
)
...
@@ -223,6 +225,16 @@ demangle_template PARAMS ((struct work_stuff *work, const char **, string *,
...
@@ -223,6 +225,16 @@ demangle_template PARAMS ((struct work_stuff *work, const char **, string *,
string
*
));
string
*
));
static
int
static
int
arm_pt
PARAMS
((
struct
work_stuff
*
,
const
char
*
,
int
,
const
char
**
,
const
char
**
));
static
void
demangle_arm_pt
PARAMS
((
struct
work_stuff
*
,
const
char
**
,
int
,
string
*
));
static
int
demangle_class_name
PARAMS
((
struct
work_stuff
*
,
const
char
**
,
string
*
));
static
int
demangle_qualified
PARAMS
((
struct
work_stuff
*
,
const
char
**
,
string
*
,
demangle_qualified
PARAMS
((
struct
work_stuff
*
,
const
char
**
,
string
*
,
int
,
int
));
int
,
int
));
...
@@ -472,21 +484,6 @@ cplus_mangle_opname (opname, options)
...
@@ -472,21 +484,6 @@ cplus_mangle_opname (opname, options)
return
(
0
);
return
(
0
);
}
}
/* Check to see whether MANGLED can match TEXT in the first TEXT_LEN
characters. */
int
cplus_match
(
mangled
,
text
,
text_len
)
const
char
*
mangled
;
char
*
text
;
int
text_len
;
{
if
(
strncmp
(
mangled
,
text
,
text_len
)
!=
0
)
{
return
(
0
);
/* cannot match either */
}
else
{
return
(
1
);
/* matches mangled, may match demangled */
}
}
/* char *cplus_demangle (const char *mangled, int options)
/* char *cplus_demangle (const char *mangled, int options)
If MANGLED is a mangled function name produced by GNU C++, then
If MANGLED is a mangled function name produced by GNU C++, then
...
...
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