Commit 1ba305b5 by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

jcf-parse.c (saw_java_source): Global variable removed.

Wed Nov 24 17:33:26 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * jcf-parse.c (saw_java_source): Global variable removed.
        (read_class): Don't use `saw_java_source'. Added extra braces.
        (yyparse): Code setting `saw_java_source' removed.

From-SVN: r30809
parent 732f2ac9
...@@ -13,6 +13,12 @@ Tue Nov 30 12:28:34 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> ...@@ -13,6 +13,12 @@ Tue Nov 30 12:28:34 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
check. check.
* expr.c (expand_java_arraystore): Likewise. * expr.c (expand_java_arraystore): Likewise.
Wed Nov 24 17:33:26 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* jcf-parse.c (saw_java_source): Global variable removed.
(read_class): Don't use `saw_java_source'. Added extra braces.
(yyparse): Code setting `saw_java_source' removed.
1999-11-24 Mark Mitchell <mark@codesourcery.com> 1999-11-24 Mark Mitchell <mark@codesourcery.com>
* except.c (emit_handlers): Zero catch_clauses after emitting them. * except.c (emit_handlers): Zero catch_clauses after emitting them.
......
...@@ -57,11 +57,6 @@ extern struct obstack *saveable_obstack; ...@@ -57,11 +57,6 @@ extern struct obstack *saveable_obstack;
extern struct obstack temporary_obstack; extern struct obstack temporary_obstack;
extern struct obstack permanent_obstack; extern struct obstack permanent_obstack;
/* This is true if the user specified a `.java' file on the command
line. Otherwise it is 0. FIXME: this is temporary, until our
.java parser is fully working. */
int saw_java_source = 0;
/* The class we are currently processing. */ /* The class we are currently processing. */
tree current_class = NULL_TREE; tree current_class = NULL_TREE;
...@@ -482,24 +477,21 @@ read_class (name) ...@@ -482,24 +477,21 @@ read_class (name)
/* Search in current zip first. */ /* Search in current zip first. */
if (find_in_current_zip (IDENTIFIER_POINTER (name), &jcf) == 0) if (find_in_current_zip (IDENTIFIER_POINTER (name), &jcf) == 0)
/* FIXME: until the `.java' parser is fully working, we only {
look for a .java file when one was mentioned on the if (find_class (IDENTIFIER_POINTER (name), IDENTIFIER_LENGTH (name),
command line. This lets us test the .java parser fairly &this_jcf, 1) == 0)
easily, without compromising our ability to use the {
.class parser without fear. */ pop_obstacks (); /* FIXME: one pop_obstack() per function */
if (find_class (IDENTIFIER_POINTER (name), IDENTIFIER_LENGTH (name), return 0;
&this_jcf, saw_java_source) == 0) }
{ else
pop_obstacks (); /* FIXME: one pop_obstack() per function */ {
return 0; this_jcf.seen_in_zip = 0;
} current_jcf = &this_jcf;
else if (this_jcf.outofsynch)
{ jcf_out_of_synch (current_jcf);
this_jcf.seen_in_zip = 0; }
current_jcf = &this_jcf; }
if (this_jcf.outofsynch)
jcf_out_of_synch (current_jcf);
}
else else
current_jcf = jcf; current_jcf = jcf;
...@@ -800,10 +792,6 @@ yyparse () ...@@ -800,10 +792,6 @@ yyparse ()
int twice = 0; int twice = 0;
int len = strlen (list); int len = strlen (list);
/* FIXME: this test is only needed until our .java parser is
fully capable. */
if (len > 5 && ! strcmp (&list[len - 5], ".java"))
saw_java_source = 1;
if (*list != '/' && several_files) if (*list != '/' && several_files)
obstack_grow (&temporary_obstack, "./", 2); obstack_grow (&temporary_obstack, "./", 2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment