aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/zipfile.h
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2001-01-21 13:50:37 -0800
committerPer Bothner <bothner@gcc.gnu.org>2001-01-21 13:50:37 -0800
commita4796c80627e34e3fa2828225c70dfc3b65c62e6 (patch)
tree5f463667ec157bb3f84a00b486e3f79eb8080f7e /gcc/java/zipfile.h
parentb5c4fed92cb6d5fe30e6eac39d1299b2cf998c9d (diff)
downloadgcc-a4796c80627e34e3fa2828225c70dfc3b65c62e6.zip
gcc-a4796c80627e34e3fa2828225c70dfc3b65c62e6.tar.gz
gcc-a4796c80627e34e3fa2828225c70dfc3b65c62e6.tar.bz2
Various fixes to allow compiling a compressed .jar/.zip archive.
From-SVN: r39175
Diffstat (limited to 'gcc/java/zipfile.h')
-rw-r--r--gcc/java/zipfile.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/java/zipfile.h b/gcc/java/zipfile.h
index bf76a2a..f0be3cc 100644
--- a/gcc/java/zipfile.h
+++ b/gcc/java/zipfile.h
@@ -22,11 +22,15 @@ of Sun Microsystems, Inc. in the United States and other countries.
The Free Software Foundation is independent of Sun Microsystems, Inc. */
struct ZipFile {
+ char *name;
int fd;
long size;
long count;
long dir_size;
char *central_directory;
+
+ /* Chain together in SeenZipFiles. */
+ struct ZipFile *next;
};
typedef struct ZipFile ZipFile;
@@ -38,6 +42,7 @@ struct ZipDirectory {
unsigned size; /* length of file */
unsigned uncompressed_size; /* length of uncompressed data */
unsigned filestart; /* start of file in archive */
+ ZipFile *zipf;
int filename_length;
/* char mid_padding[...]; */
/* char filename[filename_length]; */
@@ -46,13 +51,7 @@ struct ZipDirectory {
typedef struct ZipDirectory ZipDirectory;
-struct ZipFileCache {
- struct ZipFile z;
- struct ZipFileCache *next;
- char *name;
-};
-
-extern struct ZipFileCache *SeenZipFiles;
+extern struct ZipFile *SeenZipFiles;
#define ZIPDIR_FILENAME(ZIPD) ((char*)(ZIPD)+(ZIPD)->filename_offset)
#define ZIPDIR_NEXT(ZIPD) \
@@ -62,6 +61,7 @@ extern struct ZipFileCache *SeenZipFiles;
extern ZipFile * opendir_in_zip PARAMS ((const char *, int));
extern int read_zip_archive PARAMS ((ZipFile *));
#ifdef JCF_ZIP
+extern int read_zip_member PARAMS ((JCF*, ZipDirectory*, ZipFile *));
extern int open_in_zip PARAMS ((struct JCF *, const char *,
const char *, int));
#endif