aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/gjavah.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-04-05 13:09:45 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-04-05 13:09:45 +0000
commit4f65832d5c08d16601c8271909c5e1f9deca23ed (patch)
treeb9b66e4fab448bc92781caec3bf1299deb89910a /gcc/java/gjavah.c
parent4504ead1db50e758e107f9b3a42975afbe1e8106 (diff)
downloadgcc-4f65832d5c08d16601c8271909c5e1f9deca23ed.zip
gcc-4f65832d5c08d16601c8271909c5e1f9deca23ed.tar.gz
gcc-4f65832d5c08d16601c8271909c5e1f9deca23ed.tar.bz2
Makefile.in (gjavah.o): Depend on $(JAVA_TREE_H).
* Makefile.in (gjavah.o): Depend on $(JAVA_TREE_H). * gjavah.c: Include math.h earlier. Include tree.h/java-tree.h. (main_jcf): Don't define. (process_file): Don't set `main_jcf'. * java-tree.h (main_jcf): Don't declare. * jcf-parse.c (main_jcf): Add static definition. * lang.c (main_jcf): Don't define. From-SVN: r26204
Diffstat (limited to 'gcc/java/gjavah.c')
-rw-r--r--gcc/java/gjavah.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index 8fbcc2c..faf2c9e 100644
--- a/gcc/java/gjavah.c
+++ b/gcc/java/gjavah.c
@@ -26,9 +26,12 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "config.h"
#include "system.h"
+#include <math.h>
+
#include "jcf.h"
+#include "tree.h"
+#include "java-tree.h"
#include "java-opcodes.h"
-#include <math.h>
/* The output file. */
FILE *out = NULL;
@@ -72,7 +75,6 @@ int verbose = 0;
int stubs = 0;
struct JCF *current_jcf;
-struct JCF *main_jcf;
/* This holds access information for the last field we examined. They
let us generate "private:", "public:", and "protected:" properly.
@@ -1169,7 +1171,7 @@ DEFUN(process_file, (jcf, out),
int code, i;
uint32 field_start, method_end, method_start;
- current_jcf = main_jcf = jcf;
+ current_jcf = jcf;
last_access = -1;