diff options
author | Per Bothner <per@bothner.com> | 2001-01-21 13:50:37 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2001-01-21 13:50:37 -0800 |
commit | a4796c80627e34e3fa2828225c70dfc3b65c62e6 (patch) | |
tree | 5f463667ec157bb3f84a00b486e3f79eb8080f7e /gcc/java/jcf.h | |
parent | b5c4fed92cb6d5fe30e6eac39d1299b2cf998c9d (diff) | |
download | gcc-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/jcf.h')
-rw-r--r-- | gcc/java/jcf.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h index eaeb905..5bb53b0 100644 --- a/gcc/java/jcf.h +++ b/gcc/java/jcf.h @@ -83,6 +83,8 @@ typedef struct CPool { jword* data; } CPool; +struct ZipDirectory; + /* JCF encapsulates the state of reading a Java Class File. */ typedef struct JCF { @@ -90,19 +92,19 @@ typedef struct JCF { unsigned char *buffer_end; unsigned char *read_ptr; unsigned char *read_end; - int seen_in_zip; int java_source; - long zip_offset; jcf_filbuf_t filbuf; void *read_state; const char *filename; const char *classname; - void *zipd; /* Directory entry where it was found */ + struct ZipDirectory *zipd; /* Directory entry where it was found */ JCF_u2 access_flags, this_class, super_class; CPool cpool; } JCF; /*typedef JCF* JCF_FILE;*/ +#define JCF_SEEN_IN_ZIP(JCF) ((JCF)->zipd != NULL) + /* The CPOOL macros take a (pointer to a) CPool. The JPOOL macros take a (pointer to a) JCF. Some of the latter should perhaps be deprecated or removed. */ |