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
ecb36604
Commit
ecb36604
authored
Apr 19, 2000
by
Tom Tromey
Committed by
Tom Tromey
Apr 19, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gjavah.c (cxx_keyword_subst): Avoid potential infinite loop.
From-SVN: r33261
parent
f64bedbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
gcc/java/ChangeLog
+4
-0
gcc/java/gjavah.c
+7
-4
No files found.
gcc/java/ChangeLog
View file @
ecb36604
2000-04-19 Tom Tromey <tromey@cygnus.com>
* gjavah.c (cxx_keyword_subst): Avoid potential infinite loop.
2000-04-18 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (maybe_make_nested_class_name): Use `obstack_grow0'.
...
...
gcc/java/gjavah.c
View file @
ecb36604
...
...
@@ -407,12 +407,15 @@ cxx_keyword_subst (str, length)
{
int
last
=
sizeof
(
cxx_keywords
)
/
sizeof
(
const
char
*
);
int
first
=
0
;
int
mid
,
r
;
int
mid
=
(
last
+
first
)
/
2
;
int
old
=
-
1
;
while
(
last
!=
first
)
for
(
mid
=
(
last
+
first
)
/
2
;
mid
!=
old
;
old
=
mid
,
mid
=
(
last
+
first
)
/
2
)
{
mid
=
(
last
+
first
)
/
2
;
r
=
utf8_cmp
(
str
,
length
,
cxx_keywords
[
mid
]);
int
r
=
utf8_cmp
(
str
,
length
,
cxx_keywords
[
mid
])
;
if
(
r
==
0
)
{
char
*
str
=
xmalloc
(
9
+
strlen
(
cxx_keywords
[
mid
]));
...
...
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