diff options
author | Anthony Green <green@redhat.com> | 2000-11-11 20:19:42 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2000-11-11 20:19:42 +0000 |
commit | ac51395dc07e1fb8b1e66e996724e440cb30a8fc (patch) | |
tree | ffc15d57441d6203cd2b675420e8fdc103bb9169 /gcc | |
parent | da909756e6d7b1758756c02c35875d3cd68427bb (diff) | |
download | gcc-ac51395dc07e1fb8b1e66e996724e440cb30a8fc.zip gcc-ac51395dc07e1fb8b1e66e996724e440cb30a8fc.tar.gz gcc-ac51395dc07e1fb8b1e66e996724e440cb30a8fc.tar.bz2 |
jcf-parse.c (process_zip_dir): Add finput parameter.
2000-11-11 Anthony Green <green@redhat.com>
* jcf-parse.c (process_zip_dir): Add finput parameter.
(jcf_figure_file_type): Call process_zip_dir with appropriate
argument.
From-SVN: r37390
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/java/jcf-parse.c | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 0a59c09..19579448 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,9 @@ +2000-11-11 Anthony Green <green@redhat.com> + + * jcf-parse.c (process_zip_dir): Add finput parameter. + (jcf_figure_file_type): Call process_zip_dir with appropriate + argument. + 2000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * decl.c (copy_lang_decl): Use memcpy, not bcopy. diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index be9e7b9..82c92ee 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -82,7 +82,7 @@ static struct JCF main_jcf[1]; /* Declarations of some functions used here. */ static tree give_name_to_class PARAMS ((JCF *jcf, int index)); static void parse_zip_file_entries PARAMS ((void)); -static void process_zip_dir PARAMS ((void)); +static void process_zip_dir PARAMS ((FILE *)); static void parse_source_file PARAMS ((tree, FILE *)); static void jcf_parse_source PARAMS ((void)); static int jcf_figure_file_type PARAMS ((JCF *)); @@ -965,7 +965,8 @@ parse_zip_file_entries (void) /* Read all the entries of the zip file, creates a class and a JCF. Sets the jcf up for further processing and link it to the created class. */ -static void process_zip_dir() +static void +process_zip_dir (FILE *finput) { int i; ZipDirectory *zdir; @@ -1070,7 +1071,8 @@ DEFUN(jcf_figure_file_type, (jcf), { localToFile = ALLOC (sizeof (struct ZipFileCache)); memcpy (localToFile, SeenZipFiles, sizeof (struct ZipFileCache)); - process_zip_dir (); /* Register all the class defined there */ + /* Register all the class defined there. */ + process_zip_dir (jcf->read_state); return JCF_ZIP; } |