summaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@gcc.gnu.org>1998-10-22 13:06:56 +0000
committerTom Tromey <tromey@gcc.gnu.org>1998-10-22 13:06:56 +0000
commit257fafbbe31fc0363c3e1169a574fd523512fac4 (patch)
treeeeaa5ffdc176f3394569c210009ab613d43aa196 /gcc/java/jcf-parse.c
parent8603f9c5b022356e3993539be8c70358d935c710 (diff)
downloadgcc-257fafbbe31fc0363c3e1169a574fd523512fac4.tar.gz
[multiple changes]
1998-10-22 Tom Tromey <tromey@cygnus.com> * config-lang.in (stagestuff): Added jcf-dump and jv-scan. Sun Oct 11 10:31:52 1998 Anthony Green <green@cygnus.com> * Make-lang.in (java): Depend on jcf-dump and jv-scan. (JV_SCAN_SOURCES): New macro. (JCF_DUMP_SOURCES): Likewise. (jcf-dump$(exeext)): New target. (jv-scan$(exeext)): New target. 1998-10-22 Tom Tromey <tromey@cygnus.com> * Makefile.in (LEX): Removed. (LEXFLAGS): Likewise. (SET_BISON): New macro. (BISON): Removed. ($(PARSE_C)): Use SET_BISON. Run bison from srcdir to avoid spurious diffs in parse.c. ($(PARSE_SCAN_C)): Likewise. (PARSE_DIR): New macro. (PARSE_C): Use it. (PARSE_SCAN_C): Likewise. (PARSE_RELDIR): New macro. From-SVN: r23220
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 81a1528e750..609a80c4d31 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -61,11 +61,6 @@ tree current_class = NULL_TREE;
/* The class we started with. */
tree main_class = NULL_TREE;
-/* 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 FIELD_DECL for the current field. */
static tree current_field = NULL_TREE;
@@ -721,8 +716,11 @@ yyparse ()
if (list[0])
{
char *value, len;
+ extern int saw_java_source; /* FIXME: temporary. */
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;