diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-22 12:06:05 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-22 12:06:05 +0000 |
commit | bb9b756cf81ed964550ca8ec0b165271e80ab3fe (patch) | |
tree | 9b6b5425af73b8159f8c9b6dcf195daebe2e6914 /gcc/java/jcf.h | |
parent | 27de689d2aca6a69360f4c81a5a6f175bfc24941 (diff) | |
download | gcc-bb9b756cf81ed964550ca8ec0b165271e80ab3fe.tar.gz |
* jcf-io.c (find_class): Use saw_java_source to determine when to
look for `.java' file.
* jcf-parse.c (saw_java_source): New global.
(yyparse): Set it if `.java' file seen.
* Make-lang.in (JAVA_SRCS): Added jcf-path.c.
(GCJH_SOURCES): Likewise.
* Makefile.in (datadir): New macro.
(libjava_zip): Likewise.
(JAVA_OBJS): Added jcf-path.o.
(../jcf-dump$(exeext)): Depend on and link with jcf-depend.o.
(../gcjh$(exeext)): Likewise.
(jcf-path.o): New target.
* java-tree.h (fix_classpath): Removed decl.
* jcf-parse.c (fix_classpath): Removed.
(load_class): Don't call fix_classpath.
* parse.y (read_import_dir): Don't call fix_classpath.
* lex.h: Don't mention classpath.
* lex.c (java_init_lex): Don't initialize classpath.
* jcf-io.c (classpath): Removed global.
(find_class): Use jcf_path iteration functions. Correctly search
class path for .java file.
(open_in_zip): New argument `is_system'.
* jcf-dump.c (main): Call jcf_path_init. Recognize all new
classpath-related options.
* lang.c (lang_decode_option): Handle -fclasspath, -fCLASSPATH,
and -I.
(lang_init): Call jcf_path_init.
* lang-options.h: Mention -I, -fclasspath, and -fCLASSPATH.
* lang-specs.h: Handle -I. Minor cleanup to -M options.
Correctly put braces around second string in each entry.
* gjavah.c (main): Call jcf_path_init. Recognize all the new
classpath-related options.
(help): Updated for new options.
* jcf.h: Declare functions from jcf-path.c. Don't mention
`classpath' global.
* jcf-path.c: New file.
* jcf-depend.c: Include jcf.h.
* jcf-write.c (localvar_alloc): Returns `void'.
(localvar_free): Removed unused variable.
* lang.c (OBJECT_SUFFIX): Define if not already defined.
(init_parse): Use OBJECT_SUFFIX, not ".o".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23219 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf.h')
-rw-r--r-- | gcc/java/jcf.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h index f88ff1041c7..3f98814ea5a 100644 --- a/gcc/java/jcf.h +++ b/gcc/java/jcf.h @@ -222,7 +222,6 @@ typedef struct JCF { #define CONSTANT_Utf8 1 #define CONSTANT_Unicode 2 -extern char *classpath; #define DEFAULT_CLASS_PATH "." extern char *find_class PROTO ((const char *, int, JCF*, int)); @@ -261,9 +260,22 @@ extern int quiet_flag; 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_set_dep_file PROTO ((const 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)); +/* Declarations for path handling code. */ +extern void jcf_path_init PROTO ((void)); +extern void jcf_path_classpath_arg PROTO ((char *)); +extern void jcf_path_CLASSPATH_arg PROTO ((char *)); +extern void jcf_path_include_arg PROTO ((char *)); +extern void jcf_path_seal PROTO ((void)); +extern void *jcf_path_start PROTO ((void)); +extern void *jcf_path_next PROTO ((void *)); +extern char *jcf_path_name PROTO ((void *)); +extern int jcf_path_is_zipfile PROTO ((void *)); +extern int jcf_path_is_system PROTO ((void *)); +extern int jcf_path_max_len PROTO ((void)); + #endif |