Java runtime patch: compile resource files into executables

Per Bothner per@bothner.com
Sun Sep 2 20:01:00 GMT 2001


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/



More information about the Java-patches mailing list