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
47fd14f4
Commit
47fd14f4
authored
Jan 18, 1996
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add const where appropriate
From-SVN: r11064
parent
841faeed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
gcc/cplus-dem.c
+5
-5
gcc/demangle.h
+4
-4
No files found.
gcc/cplus-dem.c
View file @
47fd14f4
/* Demangler for GNU C++
Copyright 1989, 1991, 1994, 1995 Free Software Foundation, Inc.
Copyright 1989, 1991, 1994, 1995
, 1996
Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.uucp)
Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling
...
...
@@ -323,7 +323,7 @@ consume_count (type)
int
cplus_demangle_opname
(
opname
,
result
,
options
)
char
*
opname
;
c
onst
c
har
*
opname
;
char
*
result
;
int
options
;
{
...
...
@@ -450,9 +450,9 @@ cplus_demangle_opname (opname, result, options)
If OPTIONS & DMGL_ANSI == 1, return the ANSI name;
if OPTIONS & DMGL_ANSI == 0, return the old GNU name. */
char
*
c
onst
c
har
*
cplus_mangle_opname
(
opname
,
options
)
char
*
opname
;
c
onst
c
har
*
opname
;
int
options
;
{
int
i
;
...
...
@@ -464,7 +464,7 @@ cplus_mangle_opname (opname, options)
if
(
strlen
(
optable
[
i
].
out
)
==
len
&&
(
options
&
DMGL_ANSI
)
==
(
optable
[
i
].
flags
&
DMGL_ANSI
)
&&
memcmp
(
optable
[
i
].
out
,
opname
,
len
)
==
0
)
return
((
char
*
)
optable
[
i
].
in
)
;
return
optable
[
i
].
in
;
}
return
(
0
);
}
...
...
gcc/demangle.h
View file @
47fd14f4
/* Defs for interface to demanglers.
Copyright 1992, 1995 Free Software Foundation, Inc.
Copyright 1992, 1995
, 1996
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -95,10 +95,10 @@ extern char *
cplus_demangle
PARAMS
((
const
char
*
mangled
,
int
options
));
extern
int
cplus_demangle_opname
PARAMS
((
char
*
opname
,
char
*
result
,
int
options
));
cplus_demangle_opname
PARAMS
((
c
onst
c
har
*
opname
,
char
*
result
,
int
options
));
extern
char
*
cplus_mangle_opname
PARAMS
((
char
*
opname
,
int
options
));
extern
c
onst
c
har
*
cplus_mangle_opname
PARAMS
((
c
onst
c
har
*
opname
,
int
options
));
/* Note: This sets global state. FIXME if you care about multi-threading. */
...
...
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