This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Java runtime patch: compile resource files into executables
- To: green at cygnus dot com
- Subject: Re: Java runtime patch: compile resource files into executables
- From: Per Bothner <per at bothner dot com>
- Date: 02 Sep 2001 20:02:26 -0700
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- References: <200109030108.SAA02067@fencer.cygnus.com>
Anthony Green <green@redhat.com> writes:
> http://gcc.gnu.org/ml/gcc-patches/2001-09/msg00026.html
>
> This patch introduces the "core" protocol handler. This is useful for
> binding resource files to executables.
Note that we also want to be able to add resource files to shared
libraries. Some of these shared libraries will be associated with
their own classloaders, and in that case the name of the resource
is local to the classloader. (I'm referring to my SharedLibLoader
class, which I need to check in!)
+typedef struct core_chain_struct
+{
+ int name_length;
+ char *name;
+ int data_length;
+ char *data;
Should this be:
jint name_length;
const char *name;
jint data_length;
const void *data;
+ cc->name_length = ((int *)rptr)[0];
+ cc->data_length = ((int *)rptr)[1];
In which case these should be jints, of course.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/