This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Java runtime patch: compile resource files into executables


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]