aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1998-10-14 12:54:59 +0000
committerTom Tromey <tromey@gcc.gnu.org>1998-10-14 12:54:59 +0000
commitfc45c7efec9457a616b27caab813322c93481b9d (patch)
tree6c0b69ec67e30f1aa5ef34301b4a5eba2beec889 /gcc/java/jcf.h
parentbf94d1ecc773351392f54859e697f557ba097ed8 (diff)
downloadgcc-fc45c7efec9457a616b27caab813322c93481b9d.zip
gcc-fc45c7efec9457a616b27caab813322c93481b9d.tar.gz
gcc-fc45c7efec9457a616b27caab813322c93481b9d.tar.bz2
jcf-write.c (write_classfile): Add output class file as target.
* jcf-write.c (write_classfile): Add output class file as target. * lang-options.h: Added -MD, -MMD, -M, and -MM. * jcf.h: Added declarations for dependency-tracking functions. * lang-specs.h: Handle -M, -MM, MD, and -MMD. * lang.c (lang_decode_option): Recognize -MD and -MMD. (finish_parse): Call jcf_dependency_write. (dependency_tracking): New global. (DEPEND_SET_FILE): New define. (DEPEND_ENABLE): New define. (init_parse): Enable dependency tracking if required. Include "flags.h". * Makefile.in (JAVA_OBJS): Added jcf-depend.o. (../jcf-dump$(exeext)): Depend on and link with jcf-depend.o. (../gcjh$(exeext)): Likewise. (jcf-depend.o): New target. * Make-lang.in (JAVA_SRCS): Added jcf-depend.c. (GCJH_SOURCES): Likewise. * jcf-io.c (open_class): Call jcf_dependency_add_file. Added dep_name argument. (find_classfile): Added dep_name argument. (find_class): Compute name of dependency. (open_in_zip): Call jcf_dependency_add_file. * gjavah.c (output_file): No longer global. (usage): Don't mention "gjavah". (help): Likewise. (java_no_argument): Likewise. (version): Likewise. (main): Recognize and handle -M family of options. (print_mangled_classname): Return is void. (process_file): Handle case where output is suppressed. (HANDLE_END_FIELD): Likewise. (HANDLE_METHOD): Likewise. * jcf-depend.c: New file. From-SVN: r23085
Diffstat (limited to 'gcc/java/jcf.h')
-rw-r--r--gcc/java/jcf.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h
index 5e82387..f88ff10 100644
--- a/gcc/java/jcf.h
+++ b/gcc/java/jcf.h
@@ -1,6 +1,6 @@
/* Utility macros to read Java(TM) .class files and byte codes.
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1998 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -226,7 +226,7 @@ extern char *classpath;
#define DEFAULT_CLASS_PATH "."
extern char *find_class PROTO ((const char *, int, JCF*, int));
-extern char *find_classfile PROTO ((char *, JCF*));
+extern char *find_classfile PROTO ((char *, JCF*, char *));
extern int jcf_filbuf_from_stdio PROTO ((JCF *jcf, int count));
extern void jcf_out_of_synch PROTO((JCF *));
extern int jcf_unexpected_eof PROTO ((JCF*, int));
@@ -257,4 +257,13 @@ extern int quiet_flag;
#define SOURCE_FRONTEND_DEBUG(X)
#endif
+/* Declarations for dependency code. */
+extern void jcf_dependency_reset PROTO ((void));
+extern void jcf_dependency_set_target PROTO ((char *));
+extern void jcf_dependency_add_target PROTO ((char *));
+extern void jcf_dependency_set_dep_file PROTO ((char *));
+extern void jcf_dependency_add_file PROTO ((const char *, int));
+extern void jcf_dependency_write PROTO ((void));
+extern void jcf_dependency_init PROTO ((int));
+
#endif