From 4f65832d5c08d16601c8271909c5e1f9deca23ed Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 5 Apr 1999 13:09:45 +0000 Subject: 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 --- gcc/java/gjavah.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gcc/java/gjavah.c') 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 + #include "jcf.h" +#include "tree.h" +#include "java-tree.h" #include "java-opcodes.h" -#include /* 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; -- cgit v1.1